elmoi0010 Posted November 21, 2014 Posted November 21, 2014 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.
MikahS Posted November 21, 2014 Posted November 21, 2014 (edited) why not just do something like this $3 = _IEGetObjById($2, "Wait") _IEAction($3, "scrollintoview") _IEAction($3, "focus") just a suggestion. Edited November 21, 2014 by MikahS Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy 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
elmoi0010 Posted November 21, 2014 Author Posted November 21, 2014 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.
MikahS Posted November 21, 2014 Posted November 21, 2014 If your trying to click on the element just do this after it gets scrolled _IEAction($3, "click") Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy 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
elmoi0010 Posted November 21, 2014 Author Posted November 21, 2014 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.
MikahS Posted November 21, 2014 Posted November 21, 2014 i tryed that too bro.. But nope, dont work. Hmm, weird. Both worked for me. I will give some more thought. Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy 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
elmoi0010 Posted November 21, 2014 Author Posted November 21, 2014 Hmm, weird. Both worked for me. I will give some more thought. All your help is appreciated. Thanks<3
Moderators SmOke_N Posted November 21, 2014 Moderators Posted November 21, 2014 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.
elmoi0010 Posted November 21, 2014 Author Posted November 21, 2014 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.
Moderators SmOke_N Posted November 21, 2014 Moderators Posted November 21, 2014 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.
elmoi0010 Posted November 21, 2014 Author Posted November 21, 2014 (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 November 21, 2014 by elmoi0010
Moderators Melba23 Posted November 22, 2014 Moderators Posted November 22, 2014 elmoi0010, i just need to click the LikeWe do not support clicking "Like" buttons - thread locked. M23 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Recommended Posts