Sign in to follow this  
Followers 0
Hasher

Coords and different screen sizes

1 post in this topic

#1 ·  Posted (edited)

THANKS FOR LOOKING BUT I FOUND THE SOLUTION ON THE BOARD AT :

http://www.autoitscript.com/forum/index.ph...n++screen++size

THANKS AGAIN!!!

Hi

I have made a simple script that is in my startup folder to make a vote on a website each time my computer starts. As you can see from the source below its based on screen postions as the website is based on flash . This method works fine on the machine I coded and tested it on. When the script is run on another machine it clicks in the totally wrong places and the script fails. I know this is because of screen settings ........is there a coding way of getting around this probelm ?

#include <IE.au3>
;Open website 
$oIE = _IECreate("http://www.monopoly.com.au/",0,1,1,1)
;maximize the window
WinSetState("monopoly", "", @SW_MAXIMIZE)
;wait till website is loaded
_IELoadWait ($oIE)
;Click the "skip intro"
MouseClick("left", 1079, 696, 2)
sleep(1000)
;Click on "Western Australia" link
MouseClick("left", 268, 396, 1)
sleep(1000)
;Click on "Cast my vote"
MouseClick("left", 872, 654, 1)
sleep(1000)
;Exit script
_IEQuit ($oIE)
sleep(2000)

Any help is appricaited :)

Paul

Edited by Hasher

Firefox's secret is the same as Jessica Simpson's: its effortless, glamorous style is the result of — shhh — extensions!

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