I'm very new to AHK, but i wanted to make a script for a game that i play.
The script is this
7::
Send {Shift down}{LButton down}
Send {Shift up}{LButton up}
CoordMode, Mouse, Screen
MouseGetPos, px, py
Mousemove, 5, 5, R
Sleep, 250
MouseClick, left
Mousemove, px,py, R
Sleep, 250
MouseClick, left
return
As I said i'm new to AHK so i looked around for help making this script and everything seems to be working properly for me except the MouseMove. No matter what value i put in it will always move my mouse to the top left corner of the window i'm in and it does the same at the desktop. Im not too sure if this is a bug or if something is wrong with my script but any help would be appreciated. Thanks
Is something wrong with my script?
Re: Is something wrong with my script?
This might help you: Mousemove, 5, 5,, R
P.s.: This is wrong forum!
P.s.: This is wrong forum!
Re: Is something wrong with my script?
You did the MouseMove wrong.Unaash wrote:I'm very new to AHK, but i wanted to make a script for a game that i play.
The script is this
7::
Send {Shift down}{LButton down}
Send {Shift up}{LButton up}
CoordMode, Mouse, Screen
MouseGetPos, px, py
Mousemove, 5, 5, R
Sleep, 250
MouseClick, left
Mousemove, px,py, R
Sleep, 250
MouseClick, left
return
As I said i'm new to AHK so i looked around for help making this script and everything seems to be working properly for me except the MouseMove. No matter what value i put in it will always move my mouse to the top left corner of the window i'm in and it does the same at the desktop. Im not too sure if this is a bug or if something is wrong with my script but any help would be appreciated. Thanks
So its fine
Code: Select all
7::
Send {Shift down}{LButton down}
Send {Shift up}{LButton up}
CoordMode, Mouse, Screen
MouseGetPos, px, py
Mousemove, 5, 5, 50, R
Sleep, 250
MouseClick, left
Mousemove, px,py, R
Sleep, 250
MouseClick, left
return
Re: Is something wrong with my script?
Thanks for the Help Reloaded and Rommmcek, and sorry for posting on the wrong forum as I said i'm very new to this and i greatly appreciate the help.
Re: Is something wrong with my script?
Thanks for the Help Reloaded and Rommmcek, and sorry for posting on the wrong forum as I said i'm very new to this and i greatly appreciate the help.
Who is online
Users browsing this forum: Google [Bot] and 95 guests