Jump to content

Send tab until find an id by _IEGetObjMyID?


 Share

Recommended Posts

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

 

Link to comment
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

 

Link to comment
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

 

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
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.

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
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.

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
Link to comment
Share on other sites

  • Moderators

elmoi0010,

 

i just need to click the Like

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

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see 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

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...