Jump to content

pixelsearch screenshots form button


decadude
 Share

Recommended Posts

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

Link to comment
Share on other sites

  • Developers

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

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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