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.
Warframe Autofire
-
- Posts: 4
- Joined: 15 Aug 2017, 11:41
Re: Warframe Autofire
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
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
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
-
- Posts: 4
- Joined: 15 Aug 2017, 11:41
Re: Warframe Autofire
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?
-
- Posts: 4
- Joined: 15 Aug 2017, 11:41
Re: Warframe Autofire
Changed pause to suspend. The key is sticking again now.
-
- Posts: 4
- Joined: 15 Aug 2017, 11:41
Re: Warframe Autofire
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.
#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.
Re: Warframe Autofire
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::)
This method completely disables the hotkey if variable is not set to 1):
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
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
Re: Warframe Autofire
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.
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.
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
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.
Who is online
Users browsing this forum: No registered users and 63 guests