bigal12 Posted December 20, 2012 Share Posted December 20, 2012 hi guys here goes, so i have a simple script for running a program expandcollapse popupFunc 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 Link to comment Share on other sites More sharing options...
FireFox Posted December 20, 2012 Share Posted December 20, 2012 Hi, And what is this script for? Link to comment Share on other sites More sharing options...
bigal12 Posted December 20, 2012 Author Share Posted December 20, 2012 it is for a program i have for sending emails Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted December 20, 2012 Moderators Share Posted December 20, 2012 Hi, bigal12. Which email program are you using? There are a lot of script examples for Outlook, GMail, etc., so you may find an easier way to accomplish what you're trying to do. I'm not sure how you're able to send email with all the Random calls in your post, but if you could supply a screenshot of the program you're trying to manipulate, that would be helpful as well. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
BrewManNH Posted December 20, 2012 Share Posted December 20, 2012 it is for a program i have for sending emailsWhat email program would ever work with those mouseclicks? You're randomly clicking all over the place instead of clicking on something specific. What are the mouseclicks supposed to be clicking on if they're in random locations on the screen? If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
bigal12 Posted December 22, 2012 Author Share Posted December 22, 2012 so like the tit i am i just relized that i uploaded the wrong script for you guys to see (uploaded a test script i did for practice lol) and dont have accsess to the one i need to show you at the moment as am on the laptop. i use mozila thunderburd as the emailing program. i came across this script that sleeps my pc great but dont wake up how do i change the time on the script?cheers for anyhelp Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now