Can't seem to get a spin, keypress to work.

Ask gaming related questions (AHK v1.1 and older)
Emo_Cheesecake
Posts: 1
Joined: 21 Aug 2018, 19:58

Can't seem to get a spin, keypress to work.

21 Aug 2018, 20:23

So I setup a code to spin, it works in some games but not others.
I have tried running as admin but still nothing. It will run in menus though, just not during a game.
I've tried two different codes here they are.

~NumLock::Suspend, toggle
~*Q::
while GetKeyState("Q") ;<--- Spin Right
{
MouseMove, 215, 0.001, 2, R
}
~*E::
while GetKeyState("E") ;<--- Spin Left
{
MouseMove, -235, 0.001, 2, R
}

The second code is:

#MaxHotkeysPerInterval 10000
~NumLock::Suspend, toggle
~*Q::

{
SetMouseDelay -1
while GetKeyState("Q")
{
MouseMove, 3, 0, 1, R ;<--- Change MouseMove, X to change speed.
Delay(0.001)
}
Delay( D=0.001 )
{
Static Q

Critical
Q ? Q : DllCall( "QueryPerformanceFrequency", Int64P,Q )
DllCall( "QueryPerformanceCounter", Int64P,pTick ), cTick := pTick
While( ( (Tick:=(pTick-cTick)/Q)) < D ) {
DllCall( "QueryPerformanceCounter", Int64P,pTick )
Sleep -1
}
Return Round( Tick,3 )
}
}

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 45 guests