Automaticaly Pausing Scripts Topic is solved

Ask gaming related questions (AHK v1.1 and older)
StickingInTheMud

Automaticaly Pausing Scripts  Topic is solved

13 Jan 2018, 09:12

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.
mast4rwang
Posts: 141
Joined: 19 Jul 2017, 09:59

Re: Automaticaly Pausing Scripts

14 Jan 2018, 10:50

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

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 70 guests