Ps. This isn't my first script and this took me like 1 minute to make, but I thought it would be useful for some people.
I will be editing it to make it better and hopefully the mouse faster, haha.
SetDefaultMouseSpeed, 0 ; Sets the delay of mouse speed to instant w::MouseMove, 0, -25, 100, R ; when you press w, mouse will move up 25 pixels s::MouseMove, 0, 25, 100, R ; when you press s, mouse will move down 25 pixels a::MouseMove, -25, 0, 100, R ; when you press a, mouse will move left 25 pixels d::MouseMove, 25, 0, 100, R ; when you press d, mouse will move right 25 pixels q::MouseClick, left ; when you press q, mouse will left click e::MouseClick, right ; when you press e, mouse will right click x::MouseClick, WheelDown ; when you press x, mouse will scroll down 2::MouseClick, WheelUp ; when you press 2, mouse will scroll up ^!z::ExitApp ; when you press ctrl+alt+z, the app will exit
If anyone could help me making the mouse move faster, that would be great. Also I will be editing this to make it much easier to use.
Why this was made you may ask?... Well I have a wireless mouse and sometimes it bugs out on me, so I figured this could help if my mouse ever bugs out again.
Note: I suggest making an autohoykey script like this, so you can open it when you need it, cause if your mouse bugs out like mine, then how are you suppose to get to the program and open it?
^!a::Run scriptname.ahk ; will run the script on ctrl+alt+a
I hope you enjoy this, and maybe someone could help me make the mouse move quicker, because 100 is the highest speed, and 0 is no delay.