Sign in to follow this  
Followers 0
Guest duckmancornfed

Ini Read Mousemove...

4 posts in this topic

Hey, I am having difficulty using the INIread command. I understand how to use the command when it comes to entering stuff such as automatically logging into an account. My question is can you use INI read command and get it to work with mousemove

Anyhow is a sectoin of the scripts:

Here is the INI file:

[Global]

mm=(x,y,t)

--- And change x and y and time manually before running script.

Here is the actual .au3 script:

$mm = IniRead("settings.ini", "Global", "mm", "RuneScape - the massive online adventure game by Jagex Ltd - Microsoft Internet Explorer")

mousemove($mm)

-- I am trying to get the script to read what is in the INI file and use in mouse movement command.

Thank you.

Share this post


Link to post
Share on other sites



The MouseMove() command takes 3 arguments, which must be numbers. You have provided MouseMove with a single argumet that is a string that contains the following: "(x,y,t)" (being whatever was in that ini entry.)

What you have to do is parse out that line from the ini file to get 3 seperate numbers, and supply those variables to the MouseMove command.


[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

Share this post


Link to post
Share on other sites

Suggestion: make the INI file look like this instead:

[Global]
mm=x,y,t

Then you can say this in the code

;read the ini file for mouse position
    $mm = IniRead("settings.ini", "Global", "mm", "0,0,0")
;parse mouse position
    $aMM = StringSplit($mm, ",")
;move there
    MouseMove($aMM[1], $aMM[2], $aMM[3])

Share this post


Link to post
Share on other sites

got it working! Thank you everyone for your help :ph34r:

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0