Issues with ControlSend on inactive windows

Ask gaming related questions (AHK v1.1 and older)
Sharkboy Sarrador
Posts: 2
Joined: 06 Dec 2017, 18:23

Issues with ControlSend on inactive windows

06 Dec 2017, 18:43

So, I'm rather new to AHK and I've been using this script I made to farm but, thing is, staring at a monitor screen for hours and occasionally pausing to collect the loot is kinda boring. So I tried looking up some ways to make the script run while the window was inactive and stumbled upon ControlSend. I've been trying SO HARD to make it work but it simply wont. Not even when the window is actually active. Please help, staring at your character spinning like a blender at a wall is incredibly boring. (But also incredibly rewarding)

Here's the (working) code without ControlSend:

Code: Select all

~LControl & ~r:: Pause, Toggle
return
~q::
loop 10000
{
	Send {w down}
	Send {LControl Down}
	Send {e}
	Send {Lcontrol Up}
	Sleep 250
}

Here's the (not working) code with ControlSend

Code: Select all

~LControl & ~r:: Pause, Toggle
return
~q::
loop 10000
{
	ControlSend,,{w down}, ahk_exe Warframe.x64.exe
	ControlSend,,{LControl Down}, ahk_exe Warframe.x64.exe
	ControlSend,,{e}, ahk_exe Warframe.x64.exe
	ControlSend,,{Lcontrol Up}, ahk_exe Warframe.x64.exe
	Sleep 250
}
TygerByte
Posts: 96
Joined: 12 Aug 2016, 05:22

Re: Issues with ControlSend on inactive windows

06 Dec 2017, 23:15

too bad controlsend just doesn't work sometimes. that's just how it is. you could toss the game into a virtual machine and run it there tho.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 35 guests