"If Window active" issue

Ask gaming related questions (AHK v1.1 and older)
fluoridefree
Posts: 2
Joined: 27 Mar 2020, 19:20

"If Window active" issue

27 Mar 2020, 19:43

So im using xpadder to control my living room computer with a controller and I also play video games. I have different xpadder profiles depending on the game im playing or if im just browsing internet.

i have a specific xpadder profile to run depending on which app window is opened. Its something like this :

Code: Select all

#Persistent
SetTitleMatchMode 2
Profile=0
SetTimer, ActivateProfile, 1000
return

ActivateProfile:
{
    IfWinActive, Xpadder
{
    }
    Else IfWinActive, Elder Scrolls Online
    {
        if Profile <> 2
        {
            Profile=2
            Run, D:\Xpadder\ESO.xpadderprofile
        }
    
    }
 Else
    {
        if Profile <> 1
        {
            Profile=1
            Run, D:\Xpadder\Windows.xpadderprofile
        }
    }
}
Return
[Mod edit: [code][/code] tags added]


OK so this script works just fine now my issue is when im on an internet browser tab called : Elder scrolls online , it also switches my xpadder profile...

How can i make this script not react to browser name tabs?
fluoridefree
Posts: 2
Joined: 27 Mar 2020, 19:20

Re: "If Window active" issue

28 Mar 2020, 14:44

ok never mind ive found the problem. For the script to be unaffected by browser tabs name or titles I had to use : If winactive, ahk_exe (enter app exe here)

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 95 guests