Sign in to follow this  
Followers 0
zantrick

script help

2 posts in this topic

HotKeySet("{F4}", "ExitProg")

HotKeySet("{F5}", "StartStop")

$On = False

While 1

While $On = True

sleep (1000)

$coor = PixelSearch (690,866, 883,945, 723749)

while @error=0

MouseClick ("Left", 777, 883)

sleep (5000)

MouseClick ("Left", 777, 883)

sleep (5000)

MouseClick ("Left", 777, 883)

sleep (5000)

MouseClick ("Left", 777, 883)

sleep (5000)

MouseClick ("Left", 777, 883)

sleep (5000)

MouseClick ("Left", 777, 883)

sleep (5000)

MouseClick ("Left", 777, 883)

sleep (5000)

if $coor = PixelSearch (690,866, 883,945, 723749) Then

sleep (3000)

EndIf

WEnd

MouseClick ("Left", 199,193, 1, 50)

Sleep (3000)

MouseClick ("Left", 712, 501)

sleep (1000)

MouseClick ("Left", 712, 501)

SLEEP (1000)

MouseClick ("Left", 712, 501)

SLEEP (1000)

MouseClick ("Left", 351, 501) <<<< problem area. I need to somehow lower the y corrdinate value every 12 cycles on this line of the code. Thanks.

sleep (2000)

MouseClick ("Left", 470, 304)

sleep (2000)

MouseClick ("Left", 470, 304)

sleep (2000)

MouseClick ("Left", 470, 304)

sleep (2000)

MouseClick ("Left", 470, 304)

sleep (2000)

MouseClick ("Left", 495,364)

sleep (2000)

MouseClick ("Left",146,292)

sleep (2000)

MouseClick ("Left", 311, 314)

sleep (2000)

MouseClick ("Left", 496, 306)

sleep (2000)

MouseClick ("lEFT", 836, 681)

SLEEP (3000)

WEnd

Sleep(100)

WEnd

Func StartStop()

If $On = False Then

$On = True

Else

$On = False

EndIf

EndFunc

Func ExitProg()

Exit

EndFunc

Share this post


Link to post
Share on other sites



$yval = 501
$ystep = 5
$12count = 0

while 1
 $12count = $12count + 1
 if $12count > 10 then
    $12count = 0
    $yval = $yval - $ystep
 EndIf
 MouseClick ("Left", 351, $yval) 
Wend


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0