Page 1 of 1

need help for gaming question

Posted: 18 May 2018, 01:29
by Bic-ahk
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

Re: need help for gaming question

Posted: 18 May 2018, 02:05
by Louis Tully
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

Re: need help for gaming question

Posted: 18 May 2018, 02:33
by Bic-ahk
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

Re: need help for gaming question

Posted: 18 May 2018, 02:42
by Louis Tully
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?

Re: need help for gaming question

Posted: 22 May 2018, 04:03
by grant
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