Jump to content

Recommended Posts

Posted (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 by decadude
Posted

#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

  • Developers
Posted

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.
  :)

Posted

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...