Warframe Autofire

Ask gaming related questions (AHK v1.1 and older)
Asneakyfatcat
Posts: 4
Joined: 15 Aug 2017, 11:41

Warframe Autofire

15 Aug 2017, 11:53

Been fooling around overnight in an attempt to make a working script for this game. At first I was having trouble where LButton prompts appeared to be skipping. I timed this against a logitech script I set up (from my mouse), and it was definitely slower than it should have been. I tried some other stuff, and though I haven't timed it again, I think i've managed to fix that problem, at least somewhat. Now though, I'm having a problem where the LButton becomes "sticky", where it will seemingly at random continue firing when I am not pressing LButton.

Here is the script I am currently using:

j::pause, toggle
*~Lbutton::
ifWinActive, WARFRAME
if(GetKeyState("Lbutton", "D"))
Loop
{
Sleep, -1
SendInput {click Left}
GetKeyState, LbuttonState, Lbutton, P
if Lbuttonstate = U
break
}
return


Any help would be greatly appreciated. I'm sure it's a jumbled mess. After writing jumbled, I also realized that the toggle works outside of the game, preventing me from using the key. Fixing that would be nice too.
User avatar
evilC
Posts: 4823
Joined: 27 Feb 2014, 12:30

Re: Warframe Autofire

16 Aug 2017, 11:01

OK, a bunch of issues with this code.

1) Pointless use of IfWinActive, use #IfWinActive instead
2) GetKeyState passed "D" as a param, which is invalid
3) Duplicate checks for state of Lbutton, when only one is needed
4) Your sleep value is probably way too low

Code: Select all

#ifWinActive, WARFRAME ; Fixes (1)
j::pause, toggle
*~Lbutton:: 
	while (GetKeyState("Lbutton", "P")) ; Fixes (2) and (3)
	{
		SendInput {click Left}
		; Sleep -1 changed to sleep 10, as Sleep -1 will chew WAY too much CPU for no practical benefit
		; You probably need to change this to sleep 50, else the game may not register ANY presses
		Sleep 10	; Fixes (4)
	}
	return
If you want an autoclicker script, you may want to try my Fire Control script. This was designed for MWO, but should work with other games
Asneakyfatcat
Posts: 4
Joined: 15 Aug 2017, 11:41

Re: Warframe Autofire

17 Aug 2017, 13:11

Thank you for the help! This fixed a lot of things, but now pressing j does not pause the script. Any reason as to why this is happening?
Asneakyfatcat
Posts: 4
Joined: 15 Aug 2017, 11:41

Re: Warframe Autofire

17 Aug 2017, 13:14

Changed pause to suspend. The key is sticking again now.
Asneakyfatcat
Posts: 4
Joined: 15 Aug 2017, 11:41

Re: Warframe Autofire

17 Aug 2017, 13:17

Tried this:
#ifWinActive, WARFRAME
j::suspend, toggle
*~Lbutton::
while (GetKeyState("Lbutton", "P"))
{
SendInput {click Left}

Sleep 10
}
return

Everything seems to be in order now. I'll respond again if I notice anything.
User avatar
evilC
Posts: 4823
Joined: 27 Feb 2014, 12:30

Re: Warframe Autofire

17 Aug 2017, 16:28

If you want to be able to turn it on / off, you do not need to suspend

One way of doing it, only really useful if block is off (eg ~LButton::)

Code: Select all

macro_on := 0
#ifWinActive, WARFRAME

j::
	macro_on := !macro_on
	return

*~Lbutton:: 
	while (macro_on && GetKeyState("Lbutton", "P"))
	{
		SendInput {click Left}
		; Sleep -1 changed to sleep 10, as Sleep -1 will chew WAY too much CPU for no practical benefit
		; You probably need to change this to sleep 50, else the game may not register ANY presses
		Sleep 10
	}
	return
This method completely disables the hotkey if variable is not set to 1):

Code: Select all

macro_on := 0
#ifWinActive, WARFRAME

j::
	macro_on := !macro_on
	return

#if macro_on
*~Lbutton:: 
	while (macro_on && GetKeyState("Lbutton", "P"))
	{
		SendInput {click Left}
		; Sleep -1 changed to sleep 10, as Sleep -1 will chew WAY too much CPU for no practical benefit
		; You probably need to change this to sleep 50, else the game may not register ANY presses
		Sleep 10
	}
	return
User avatar
Maped
Posts: 23
Joined: 08 Jul 2018, 15:52

Re: Warframe Autofire

13 Oct 2019, 08:04

Somehow this script does not work for me. I modified it to set a random time (for avoiding anticheat purposes) and probably I did something wrong. The script does not unsuspend after clicking XButton2 again. Please tell me what am I doing wrong.

Code: Select all

XButton2::pause, toggle ;https://www.autohotkey.com/boards/viewtopic.php?t=35876
*~Lbutton::
while (GetKeyState("LButton", "P"))
{
	Random, time, 15, 25
	SendInput {click Left}
	Sleep, time
}
Return
EDIT:
I did just found this post from DE developers - https forums.warframe.com /topic/436368-psa-autohotkey-ban-qualification/ Broken Link for safety
Apparently using autoclicker in Warframe is not bannable.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 72 guests