hi guys here goes,
so i have a simple script for running a program
and would like to add a sleep/hibernate and wake script to wake/sleep every 50min.
sorry if there is already post on this kind of thing but i am a real novis at writeing sctipts
any help would be great
so i have a simple script for running a program
Func exitthescript() Exit EndFunc HotKeySet( "q", "exitthescript" ) While 1 ;Dim $box[4] = [0, 0, 10, 10] ;MouseClick("left", Random($box[0], $box[2]), Random($box[1], $box[3])) ;0, 0 = the x,y value of the top left hand corner of the box 10, 10 = the x,y value of the bottom right hand corner of the box MouseClick("left",1081,41);click refresh Sleep(60000);1min MouseClickDrag("left",1671,476,1671,106) Sleep(5000) Dim $box[4] = [396,288,453,295] MouseClick("left", Random($box[0], $box[2]), Random($box[1], $box[3])) Sleep (Random ( 5000, 10000 )) ;5000, 6000=5 seconds, 10 seconds MouseClick("left",1261,215);full screen Sleep(20000);20seconds Dim $box[4] = [1307,847,1333,861] MouseClick("left", Random($box[0], $box[2]), Random($box[1], $box[3])) Sleep (Random ( 5000, 10000 )) ;5000, 6000=5 seconds, 10 seconds Dim $box[4] = [402,1001,447,1015] MouseClick("left", Random($box[0], $box[2]), Random($box[1], $box[3])) Sleep (Random ( 5000, 10000 )) ;5000, 6000=5 seconds, 10 seconds Dim $box[4] = [1456, 311, 1568, 322] MouseClick("left", Random($box[0], $box[2]), Random($box[1], $box[3])) Sleep (Random ( 5000, 10000 )) ;10000, 30000=10 seconds, 30 seconds Dim $box[4] = [879,227,1001,245] MouseClick("left", Random($box[0], $box[2]), Random($box[1], $box[3])) Sleep (Random ( 5000, 10000 )) ;10000, 30000=10 seconds, 30 seconds Dim $box[4] = [981,421,1071,448] MouseClick("left", Random($box[0], $box[2]), Random($box[1], $box[3])) Sleep (Random ( 5000, 10000 )) ;10000, 30000=10 seconds, 30 seconds Dim $box[4] = [626,477,680,532] MouseClick("left", Random($box[0], $box[2]), Random($box[1], $box[3])) Sleep (Random ( 5000, 10000 )) ;10000, 30000=10 seconds, 30 seconds Dim $box[4] = [880,764,993,786] MouseClick("left", Random($box[0], $box[2]), Random($box[1], $box[3])) Sleep (Random ( 5000, 10000 )) ;10000, 30000=10 seconds, 30 seconds For $i = 1 To 24 Dim $box[4] = [769,666,893,689] MouseClick("left", Random($box[0], $box[2]), Random($box[1], $box[3])) Sleep (Random ( 5000 , 7000 )) ;5000, 7000=10 seconds, 15 seconds Next send("{space}",0) Sleep (Random ( 10000, 30000 )) ;10000, 30000=10 seconds, 30 seconds Dim $box[4] = [879,227,1001,245] MouseClick("left", Random($box[0], $box[2]), Random($box[1], $box[3])) Sleep (Random ( 5000, 10000 )) ;10000, 30000=10 seconds, 30 seconds Dim $box[4] = [981,661,1072,688] MouseClick("left", Random($box[0], $box[2]), Random($box[1], $box[3])) Sleep (Random ( 5000, 10000 )) ;10000, 30000=10 seconds, 30 seconds Dim $box[4] = [880,764,993,786] MouseClick("left", Random($box[0], $box[2]), Random($box[1], $box[3])) Sleep (Random ( 5000, 10000 )) ;10000, 30000=10 seconds, 30 seconds For $i = 1 To 37 Dim $box[4] = [769,666,893,689] MouseClick("left", Random($box[0], $box[2]), Random($box[1], $box[3])) Sleep (Random ( 5000 , 7000 )) ;10000, 15000=10 seconds, 15 seconds Next Send("{space}",0) Sleep (Random ( 3300000,3540000 )) ;3300000,3540000=55mins, 59mins WEnd
and would like to add a sleep/hibernate and wake script to wake/sleep every 50min.
sorry if there is already post on this kind of thing but i am a real novis at writeing sctipts
any help would be great
![:thumbsup:](http://aut1.autoit-cdn.com/forum/public/style_emoticons/autoit/thumbsup.gif)