Jump to content

Coords and different screen sizes


Hasher
 Share

Recommended Posts

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!

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