Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AutoHotKey & Steam Overlay Interaction

Might already be answered but here we go. I wanted to write an AutoRun script using AutoHotKey for DayZ. It basically consists of two keys being constantly pressed and then slept. Easy script. But I want it to do one more thing. I want to be able to shift tab in the standalone to the web browser and still autorun while browsing say, facebook. Is there any way this can be possibly done? Thanks in advance.

Would probably help if I pasted the script to make it more concise.

#NoEnv
SendMode Input
#IfWinActive, DayZ
lctrl::
Send {w Down}
Send {lshift Down}
W::Sleep
return

Super simple. Basically the only issue, as I said, is that when I use the steam overlay to shift + tab to the browser, my keypresses, and therefore, autorun macro, doesn't persist. I am not sure if there's any way to remedy this but any help would be appreciated.

like image 917
Jesse Collins Avatar asked Nov 27 '25 18:11

Jesse Collins


1 Answers

Your keys don't persist because they depend on DayZ being active. When the steam overlay is active, well the game is no longer active.

Use ControlSend, to send keys to inactive windows.

See the following example:

#NoEnv
SendMode Input
lctrl::
ControlSend, , {w Down}, DayZ
ControlSend, , {lshift Down}, DayZ
W::Sleep
return
like image 100
Joe DF Avatar answered Dec 02 '25 04:12

Joe DF



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!