Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Here is the ahk code: File: DoomE_CrouchToggle.ahk
sleep, 1000 ;wait 1 seconds for window to form
settimer, checkforwindow, 2000 ;check every 2 seconds
WinWait, DOOMEternal,
;
;*LSHIFT:: ;previous key that was bound
*z::
GetKeyState, state, z
if state = D
{
;MsgBox LShift key is D ;message box test
sleep 150
Send {z UP}
}
else
{
;MsgBox LShift key is U ;message box test
sleep 150
Send {z Down}
}
checkforwindow:
ifwinnotexist, DOOMEternal,
exitapp
return
I have this coupled with a .bat file so that it starts doom, waits a second before the checking that the DoomEternal window is open and then checks it every 2 seconds. It auto then shuts down the .akh script if the DoomEternal window is shutdown.
Here is the bat I use:
start steam://rungameid/782330
start /d "D:\Program Files (x86)\SteamLibrary\steamapps\common\DOOMEternal" DoomE_CrouchToggle.ahk
I then make a shortcut of the bat on the desktop and change the icon to the DoomEternal, so it looks nice, but not necessary.
Hope this help folks. I know it will be helping me as I too have an none WASD keyboard setup.