I have trouble with my code, it just won't work. I changed it several times and it still won't do what I want it to. I want it to automatically pause some scripts, whileI'm running the emulators RetroArch, PCSX 2, Dolphin and Project 64. If none of these is running, I'd like it to reactivate the Scripts.
That's how my Script looks at the moment, maybe You can find the problem:
#Persistent
DetectHiddenWindows On
SetTitleMatchMode 2
If WinExist, PCSX 2
{
PostMessage, 0x111, 65306,,, Joy1Mouse.ahk - AutoHotkey ; Pause On
PostMessage, 0x111, 65306,,, Joy2Mouse.ahk - AutoHotkey ; Pause On
return
}
else
{
PostMessage, 0x111, 65306,,, Joy1Mouse.ahk - AutoHotkey ; Pause Off
PostMessage, 0x111, 65306,,, Joy2Mouse.ahk - AutoHotkey ; Pause Off
return
}
By the way, I just started with AutoHotKey so thank you for the patience.
Automaticaly Pausing Scripts Topic is solved
-
- Posts: 141
- Joined: 19 Jul 2017, 09:59
Re: Automaticaly Pausing Scripts
I am doing similar stuff with changing resolution but using much simpler approach. There are commands "run" and "exitapp".
You can do conditions with them, if emulator detected, exitapp. if emulator closed, run scripts ;d
You can do conditions with them, if emulator detected, exitapp. if emulator closed, run scripts ;d
Who is online
Users browsing this forum: No registered users and 70 guests