Run code after program launch Topic is solved

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

Run code after program launch  Topic is solved

22 Apr 2017, 14:32

i made a simple script for move a window

Code: Select all

WinMove, League of Legends (TM) Client,, -3, -26
WinSet, AlwaysOnTop, on, League of Legends (TM) Client
(it's bugged and get placed in the wrong position recently)
but i have to launch the ahk every time...
how i can detect when the client start and run the code 1 time (untill the next restart?)
HappyMajor
Posts: 6
Joined: 07 Mar 2017, 11:59

Re: Run code after program launch

24 Apr 2017, 07:27

Use WinWait, League of Legends (TM) Client or better use
WinWaitActive, League of Legends (TM) Client

`

Code: Select all

WinWaitActive,  League of Legends (TM) Client
WinSet, AlwaysOnTop, on, League of Legends (TM) Client`
WinMove, League of Legends (TM) Client,, -3, -26

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 62 guests