decadude Posted September 18, 2011 Share Posted September 18, 2011 (edited) can you set a pixel search to a crop screen shot eg a java form button and have autoit left click it?? like can you crop the image off the page and save it even the the button is not an image or is it needed to do this can you do some kind of pixel recognition and left click otherwise the following is not working for me but the form does fill out fine on the text boxes...i have tried both of the below _IEFormSubmit($oForm) _IEAction ($oButton, "click") ; Click It also just tried and stil not working posted code is below $oInputs = _IETagNameGetCollection ($oIE, "input") For $oInput In $oInputs if $oInput.Value="ctl00$Main$LoginButton" then _IEAction($oInput,"click") Next Edited September 18, 2011 by decadude Link to comment Share on other sites More sharing options...
decadude Posted September 18, 2011 Author Share Posted September 18, 2011 #include <IE.au3> $oIE = _IECreate("https://accounts.wizards.com/amlogin.aspx?p_next_page=ask&AspxAutoDetectCookieSupport=1") _IELoadWait($oIE) $oForm = _IEFormGetObjByName($oIE, "aspnetForm") $oUser = _IEFormElementGetObjByName($oForm, "ctl00$Main$Login") $oPasswd = _IEFormElementGetObjByName($oForm, "ctl00$Main$PSControl$PSPassword") ;$oButton = _IEFormElementGetObjByName($oForm, "ctl00$Main$LoginButton") _IEFormElementSetValue($oUser, "user") _IEFormElementSetValue($oPasswd, "pass") WinWaitActive("Wizards.Com User Administration - Windows Internet Explorer") ;_IEFormSubmit($oForm) ;_IEAction ($oButton, "click") ; Click It $oInputs = _IETagNameGetCollection ($oIE, "input") For $oInput In $oInputs if $oInput.Value="ctl00$Main$LoginButton" then _IEAction($oInput,"click") Next Link to comment Share on other sites More sharing options...
Developers Jos Posted September 18, 2011 Developers Share Posted September 18, 2011 $oIE = _IECreate("https://accounts.wizards.com/amlogin.aspx?p_next_page=ask&AspxAutoDetectCookieSupport=1")Tell me this is not about Game automation because when it is I will have to Ban you since you have been warned about this before. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
decadude Posted September 18, 2011 Author Share Posted September 18, 2011 jos it is not i did read the rules directly after you instructed to do so it also mentions if a moderator says do something pertaining to the forums you do it the code is simply a form on the web Link to comment Share on other sites More sharing options...
JohnOne Posted September 18, 2011 Share Posted September 18, 2011 javascript buttons can be troublesome, search the forums for some ideas, there have been a couple of recent threads about similar. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Recommended Posts