KuroiMatoO Posted February 18, 2015 Posted February 18, 2015 Hi there. I wanted create auto login script, but by some reason only few lines of script are working. WinWaitActive("[CLASS:ApolloRuntimeContentWindow]","") Mousemove (260, 362) MsgBox(1,"123","321") Strange thing that MsgBox works, but mouse move doesn't work.
Bert Posted February 18, 2015 Posted February 18, 2015 Opt("MouseCoordMode", 1) ;1=absolute, 0=relative, 2=client perhaps? The Vollatran project My blog: http://www.vollysinterestingshit.com/
KuroiMatoO Posted February 18, 2015 Author Posted February 18, 2015 On 2/18/2015 at 12:33 PM, Bert said: Opt("MouseCoordMode", 1) ;1=absolute, 0=relative, 2=client perhaps? I noob at autoit, so can you please explain? I need type Opt("MouseCoordMode", 1) before mousemove? If yes, it still don't work.
SorryButImaNewbie Posted February 18, 2015 Posted February 18, 2015 (edited) Opts like that usually (not sure if all the time, but bert will clean that part up i think ) are changeing the script in to somekind of mode. An example is like: Opt("TrayIconDebug", 1) (default value is 0) which if you set to 1 a little trayicon will show up while you run the code, and it will tell you where the code is at the moment. Also AutoItSetOption in the help file should contain all the information you need about them. (Autoit help file is VERY good) If you want more help, you have to post more of your code, and/or tell us what you exactly want to achive with it. Edit: Ohh and I usually put the Opts somewhere at the beginning of the script, personally I put them before the #includes and the global variables/arrays Edited February 18, 2015 by SorryButImaNewbie
KuroiMatoO Posted February 18, 2015 Author Posted February 18, 2015 On 2/18/2015 at 2:10 PM, SorryButImaNewbie said: Opts like that usually (not sure if all the time, but bert will clean that part up i think ) are changeing the script in to somekind of mode. An example is like: Opt("TrayIconDebug", 1) (default value is 0) which if you set to 1 a little trayicon will show up while you run the code, and it will tell you where the code is at the moment. Also AutoItSetOption in the help file should contain all the information you need about them. (Autoit help file is VERY good) If you want more help, you have to post more of your code, and/or tell us what you exactly want to achive with it. Edit: Ohh and I usually put the Opts somewhere at the beginning of the script, personally I put them before the #includes and the global variables/arrays Thanks, but now I'm little bit confused. How this will help to solve my problem? I just want to write a simple script for login in game (league of legends), when I open client. There is my code: AutoItSetOption("MouseCoordMode", 2) WinWaitActive("[CLASS:ApolloRuntimeContentWindow]","") Sleep (4000) Mousemove (260, 362) Send ("login") Send ("pass") Send ("{ENTER}") Script just wait 4 sec of sleep and then shut down without any errors.
Moderators JLogan3o13 Posted February 18, 2015 Moderators Posted February 18, 2015 KuroiMatoO, you appear to have ignored the Forum Rules (Lower right hand corner of every page) on your way in, especially the part where discussion of Game Automation and Interaction is off limits. I suggest you read them now, and you'll see why you will get no help on this topic. "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!
KuroiMatoO Posted February 18, 2015 Author Posted February 18, 2015 On 2/18/2015 at 3:52 PM, JLogan3o13 said: KuroiMatoO, you appear to have ignored the Forum Rules (Lower right hand corner of every page) on your way in, especially the part where discussion of Game Automation and Interaction is off limits. I suggest you read them now, and you'll see why you will get no help on this topic. Sorry, I thinked only ingame scripts restricted =(
Recommended Posts