need help for gaming question

Ask gaming related questions (AHK v1.1 and older)
Bic-ahk
Posts: 4
Joined: 15 Dec 2017, 00:26

need help for gaming question

18 May 2018, 01:29

Hi, hello people :thumbup:

Im trying to figure out how to make a script that looks pretty simple but i dont get it to work as i want to, so the main idea is making wheelmouse up and down sending a skill with certain sleep and move the character foward or backward without getting stuck at the center just spamming the skill... this is my code hahaha

Wheelup::
Loop, 1
{
Send, {F9}
Sleep, 100
Send ,{2}
mouseclick, left
mouseclick, left
mouseclick, left
}
return

Wheeldown::
Loop, 1
{
Send, {F9}
Sleep, 100
Send ,{2}
mouseclick, left
mouseclick, left
mouseclick, left
}
return

i used to put mouseclick left as a move but dont always make the move, any help will be appreciated thanks in advance
Louis Tully
Posts: 42
Joined: 25 Apr 2018, 03:03

Re: need help for gaming question

18 May 2018, 02:05

What game are you playing?


Maybe try this:

Code: Select all

Wheelup::

Send, {F9}
Sleep, 100
Send ,{2}
Send, {Lbutton 3}
return

Wheeldown::

Send, {F9}
Sleep, 100
Send ,{2}
Send, {Lbutton 3}
return
Bic-ahk
Posts: 4
Joined: 15 Dec 2017, 00:26

Re: need help for gaming question

18 May 2018, 02:33

Louis Tully wrote:What game are you playing?


Maybe try this:

Code: Select all

Wheelup::

Send, {F9}
Sleep, 100
Send ,{2}
Send, {Lbutton 3}
return

Wheeldown::

Send, {F9}
Sleep, 100
Send ,{2}
Send, {Lbutton 3}
return
it didnt work :(
the game that i am playing right now is kind of old hahaha known as ragnarok online, if you could know something about this game i can send a video for pm to show you what i want to do
Louis Tully
Posts: 42
Joined: 25 Apr 2018, 03:03

Re: need help for gaming question

18 May 2018, 02:42

Sure, that might help. I've never played it but I just checked the controls for it and Left-Click is for movement.
Movement: Left-click a cell to move to it. Hold down the left mouse button for continuous movement. If the cell is not highlighted or is highlighted in red, that place is impossible to reach

So, in the script, are those 3 left-clicks you're wanting supposed to be at a specific place on-screen?
grant
Posts: 323
Joined: 14 Oct 2015, 17:27

Re: need help for gaming question

22 May 2018, 04:03

My guess is that you are sending the keys too fast as games take a while to register that you are pressing a key. You do not press a key at near instantaneous speeds so your program needs to do the same.

Code: Select all

~::
send, {a down}
sleep, 75
send {a up}
return

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Rohwedder and 35 guests