Sign in to follow this  
Followers 0
KuroiMatoO

Script does not working

7 posts in this topic

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.

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by SorryButImaNewbie

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

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 =(

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0