Sign in to follow this  
Followers 0
decadude

pixelsearch screenshots form button

5 posts in this topic

#1 ·  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

Share this post


Link to post
Share on other sites



#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

Share this post


Link to post
Share on other sites

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


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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

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