Warframe spam 2 every second need help with the code

Ask gaming related questions (AHK v1.1 and older)
tim_klafke
Posts: 2
Joined: 09 Feb 2018, 17:14

Warframe spam 2 every second need help with the code

09 Feb 2018, 17:21

!x::Suspend
Numpad2::
Loop
{
SetKeyDelay 10
Click
If(GetKeyState("Numpad2","P")=0)
Break
}
That's what I got for the code but I'm sure it's all completely off since I made this like a month ago and then gave up. Anyone who can help get me the right settings just lemme know.
User avatar
Nextron
Posts: 1391
Joined: 01 Oct 2013, 08:23
Location: Netherlands OS: Win10 AHK: Unicode x32

Re: Warframe spam 2 every second need help with the code

09 Feb 2018, 18:03

Try

Code: Select all

Numpad2::
	SetKeyDelay 10
	While GetKeyState("Numpad2","P"){
		Click
		Sleep,2000
	}
Return
tim_klafke
Posts: 2
Joined: 09 Feb 2018, 17:14

Re: Warframe spam 2 every second need help with the code

09 Feb 2018, 22:53

Nextron wrote:Try

Code: Select all

Numpad2::
	SetKeyDelay 10
	While GetKeyState("Numpad2","P"){
		Click
		Sleep,2000
	}
Return
That still didn't work. What I'm tryna do is have it so every second it spams my 2 key to use one of my warframe abilities but it's not working.
User avatar
eventhorizon
Posts: 158
Joined: 27 Oct 2016, 14:22

Re: Warframe spam 2 every second need help with the code

10 Feb 2018, 02:11

Code: Select all

$numpad2::
$numpaddown::
	suspend permit
	breakkey = z ;<- use the z key to break the loop 
	loop
	{	if (getkeystate(breakkey,"p"))
		{	while (getkeystate(breakkey,"p"))
				tooltip, Release the %breakkey% key to exit the loop
			tooltip
			break
		}
		send 2
		sleep 1000
	}
	return
This code is untested. Please note also that this code will not work if your game is set in True Fullscreen mode -- it must be in windowed mode. Even windowed fullscren will work You will know if you are in True Fullscreen because there will be no title bar on the window. There may be a slight delay between pressing the breakkey and the time the keypress is recognized because of the send and the sleep. that's why the tooltip message is there to let you know the break key was detected.
A computer lets you make more mistakes faster than any invention in human history – with the possible exceptions of handguns and tequila.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 143 guests