Happy new year
I hope someone can help me.
I need a script that starts with press a 1 time and move mouse to ( used windows spy from autohotkey ) Screen: 1862, 852 and then right click, and then move the mouse to Screen: 2026, 984 and left click, and then press a again and move the mouse to Screen: 1341, 590.
It just need to do it one time, and start button could be F1 if possible.
Really hope someone can help me
Regards
B.P
Script for game, with mouse move and click.
-
- Posts: 7
- Joined: 23 Dec 2019, 20:19
-
- Posts: 7
- Joined: 23 Dec 2019, 20:19
Re: Script for game, with mouse move and click.
I found this : viewtopic.php?f=94&t=121766&p=541180&hilit=diablo#p541180 thanks to the owner for that script.
And modify it a little, and it works, but then the speed changed, now its way to fast, so the game can not complete the left click ( SendInput "{Click 1863 855 Left}" ) but it worked fine for 30 min
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]
And modify it a little, and it works, but then the speed changed, now its way to fast, so the game can not complete the left click ( SendInput "{Click 1863 855 Left}" ) but it worked fine for 30 min
Code: Select all
#HotIf WinActive("ahk_exe Diablo IV.exe")
+Tab::Tab
F1::
{
LB := GetKeyState("LButton" , "P")
RB := GetKeyState("RButton" , "P")
MouseGetPos &xpos, &ypos
SendInput "a"
SendInput "{Click 2160 980 Right}"
SendInput "{Click 1863 855 Left}"
SendInput "i"
SendInput "{Click 1730 1230 Right}"
SendInput "{Click 1800 1230 Right}"
SendInput "{Click 1725 1014 Right}"
SendInput "i"
SendInput "q"
MouseMove xpos, ypos
If LB
SendInput("{LButton down}")
If RB
SendInput("{RButton down}")
}
#HotIf
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]
Re: Script for game, with mouse move and click.
@TheLionKing — Please use [code][/code] tags when posting code on the forum. Thank you.
Who is online
Users browsing this forum: jooolius and 14 guests