Sign in to follow this  
Followers 0
elmoi0010

Send tab until find an id by _IEGetObjMyID?

13 posts in this topic

Well am triying to send tab until find a certain ID tag.. I can find the id but i cannot send tab until find it.

$3 = _IEGetObjById($2,"Wait")

and then something like.

Local $i = 0
   while $i <= $3
      Send ("{TAB}")
   Sleep(100)
   $i = $i + 1
   WEnd

is there a way?

Thanks in advanced and sorry for my bad english.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

why not just do something like this

$3 = _IEGetObjById($2, "Wait")

_IEAction($3, "scrollintoview")
_IEAction($3, "focus")

just a suggestion. ;)

Edited by MikahS

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Share this post


Link to post
Share on other sites

why not just do something like this

$3 = _IEGetObjById($2, "Wait")

_IEAction($3, "scrollintoview")
_IEAction($3, "focus")

just a suggestion. ;)

tryed but the focus didnt worked. Sorry :S.

Share this post


Link to post
Share on other sites

If your trying to click on the element just do this after it gets scrolled

_IEAction($3, "click")

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Share this post


Link to post
Share on other sites

 

If your trying to click on the element just do this after it gets scrolled

_IEAction($3, "click")

i tryed that too bro.. But nope, dont work.

Share this post


Link to post
Share on other sites

i tryed that too bro.. But nope, dont work.

Hmm, weird. Both worked for me. I will give some more thought. :sweating:


Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Share this post


Link to post
Share on other sites

Hmm, weird. Both worked for me. I will give some more thought. :sweating:

All your help is appreciated. Thanks<3

Share this post


Link to post
Share on other sites

Here's a silly question.

Why not just use:

_IETagNameGetCollection and do away with needing to manually tab through anything.

That's entirely more work than directly accessing the browsers dom.

Your way, you tab, hope the window catches it, in a perfect world, it works, then you have to see what has focus, then you have to match it to your id list.

Disaster waiting to happen.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

i did it, but... It dont work too.. Look
 

$oDivs = _IETagNameGetCollection ($oIE, "a")
For $oDiv in $oDivs
    If $oDiv.classname == 'wait' Then
           $oLike= $oDiv
_IEAction($oLike,"click")
    EndIf
 Next

Its something like, the button needs to be cliked manually, i tryed all methods e.e! But no one worked for me. If anyone really can help me i can pay if is that the case. Thanks in advanced.

Share this post


Link to post
Share on other sites

In post 1 you are trying to get the id, now you're trying to get the classname.  Which is it?

Better yet, provide the website, you've posted no working code, and no example we can test, now we only guess.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

In post 1 you are trying to get the id, now you're trying to get the classname.  Which is it?

Better yet, provide the website, you've posted no working code, and no example we can test, now we only guess.

Is to click and facebook page like and upload the name of the page via FTP to my homework e.e!

EDIT1: I got all the code and the FTP is working. what i done so far is:

*Connect to FTP

*Get the name

i just need to click the Like. u.u

Edited by elmoi0010

Share this post


Link to post
Share on other sites

Anyone know how ? e.e BUMP<3

Share this post


Link to post
Share on other sites

elmoi0010,

 

i just need to click the Like

We do not support clicking "Like" buttons - thread locked. :naughty:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0