GEOSoft Posted January 1, 2008 Share Posted January 1, 2008 Wow, thanks for the help guys, i mean it. But, this loop will repeat all of the actions below?$i = 1While $i <= 25 MouseClick(25, "Value of $i is:", $i)MouseClick ( "left" , 350, 467 )Sleep(5000) ;five secondsMouseClickDrag ( "left", 1015, 241, 1016, 594 )Sleep(5000) ;five secondsMouseClick ( "left" , 315, 562 )Sleep(5000) ;five secondsMouseClick ( "left" , 400, 584 )Sleep(5000) ;five secondsMouseClickDrag ( "left", 1015, 241, 1016, 594 )Sleep(5000) ;five secondsMouseClick ( "left" , 395, 502 ) $i += 1WEndYes George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
dgarrett8 Posted January 1, 2008 Author Share Posted January 1, 2008 it seems to screw up. i added hotkeys to try to fix it but. program wont start with the hotkeys in the script HotkeySet("1","start") HotkeySet("2","stop") $i = 1 While $i <= 10 MouseClick(25, "Value of $i is:", $i) 417, 470 MouseClick ( "left" , 417, 470 ) Sleep(5000);five seconds MouseClickDrag ( "left", 1015, 241, 1016, 594 ) Sleep(5000);five seconds MouseClick ( "left" , 315, 562 ) Sleep(5000);five seconds MouseClick ( "left" , 400, 584 ) Sleep(5000);five seconds MouseClickDrag ( "left", 1015, 241, 1016, 594 ) Sleep(5000);five seconds MouseClick ( "left" , 395, 502 ) $i += 1 WEnd "I think, therefore I am"[size="1"]René Descartes[/size] Link to comment Share on other sites More sharing options...
LarryDalooza Posted January 2, 2008 Share Posted January 2, 2008 (edited) syntax looks ok ... except this... MouseClick(25, "Value of $i is:", $i) 417, 470 ... this is coded incorrectly.... comment it out and the script should run. Lar. forget HotKeySet ... you're not ready. Lar. Edited January 2, 2008 by LarryDalooza AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
dgarrett8 Posted January 2, 2008 Author Share Posted January 2, 2008 yeah my mistake, took that out a long time ago the 417 thing. anyways i said screw it on that project. its small simple and stupid. im going for the whole shibang in my opinion. this is the current one im doing. opens browser to the site and types username and that stuff. my current problem is that when it drags the scroll bar, the coordinates are mest up and i have to guess them. expandcollapse popupShellExecute("http://theninja-rpg.com/") Sleep(5000);five seconds MouseClick ( "left" , 765, 489 ) $variable = 'enclg' Send($variable & @CRLF) Sleep(5000);five seconds MouseClick ( "left" , 403, 485 ) Sleep(5000);five seconds MouseClickDrag ( "left", 1009, 280, 1009, 418 ) Sleep(5000);five seconds MouseClick ( "left" , 756, 518 ) Sleep(5000);five seconds MouseClick ( "left" , 397, 490 ) Sleep(5000);five seconds $i = 1 While $i <= 25 MouseClick(25, "Value of $i is:", $i) MouseClick ( "left" , 350, 467 ) Sleep(5000);five seconds MouseClickDrag ( "left", 1015, 241, 1016, 594 ) Sleep(5000);five seconds MouseClick ( "left" , 312, 622 ) Sleep(5000);five seconds MouseClick ( "left" , 391, 646 ) Sleep(5000);five seconds MouseClickDrag ( "left", 1015, 241, 1016, 594 ) Sleep(5000);five seconds MouseClick ( "left" , 312, 622 ) Sleep(5000);five seconds MouseClick ( "left" , 391, 646 ) Sleep(5000);five seconds MouseClick ( "left" , 388, 623 ) Sleep(5000);five seconds $i += 1 WEnd "I think, therefore I am"[size="1"]René Descartes[/size] Link to comment Share on other sites More sharing options...
LarryDalooza Posted January 2, 2008 Share Posted January 2, 2008 If you study the capabilities of IE.au3, you will be able to log into your page with direct object interaction... It's about 15 lines of code... tops... starting with... #include <IE.au3> Lar. AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
dgarrett8 Posted January 2, 2008 Author Share Posted January 2, 2008 i will study that thanks but i currently have no problem logging in. "I think, therefore I am"[size="1"]René Descartes[/size] 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