UAC causing problems

Ask gaming related questions (AHK v1.1 and older)
TheRiverShen
Posts: 2
Joined: 05 Dec 2023, 08:58

UAC causing problems

Post by TheRiverShen » 07 Dec 2023, 09:29

Hello!

So I am trying to run a simple program on my game, and it seems to be getting unfocused every so often.

I tried running program as administrator and with UI access and neither seem to help.

Rohwedder
Posts: 7721
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: UAC causing problems

Post by Rohwedder » 08 Dec 2023, 03:48

Hallo,
This additional script keeps Notpad active:

Code: Select all

Loop {
WinWaitNotActive, ahk_class Notepad
WinActivate
}
Alternatively, use a Timer:

Code: Select all

SetTimer, WinActivate, 500
WinActivate:
WinActivate, ahk_class Notepad
Return

TheRiverShen
Posts: 2
Joined: 05 Dec 2023, 08:58

Re: UAC causing problems

Post by TheRiverShen » 08 Dec 2023, 08:51

Well the script stays active, just the tab that script is supposed to run on unfocuses and it well, stops moving

Post Reply

Return to “Gaming Help (v1)”