I use WInWait & WinWaitClose into all of my AHK files and works nicely to close AHK when I shut down my games.
I would like to take this a step further and shut down additional programs in the same way....
Example: A number of my games utilize FOV adjustment programs that currently need to be manually closed once I am back
at the Desktop. It would be cool if when the game was exited, not only AHK would close, but any other applications that are
no longer necessary as well.
Research led me to ----> https://autohotkey.com/board/topic/6056 ... t-once-th/<---
seems to be on the right track, but not sure how to implement into my own script for the above action
WinWaitClose to close additional programs / windows Topic is solved
WinWaitClose to close additional programs / windows
I have a bit of experience opening and sending commands to game console and CMD.exe... just ask
Re: WinWaitClose to close additional programs / windows Topic is solved
read please:
winclose?
winKill?
functions
winclose?
winKill?
functions
github>g_IntelliSense + next improvements + forum
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: WinWaitClose to close additional programs / windows
YOU DA MAN*
my NEW script....
---------------------------------------------------------------------------------------------------------------------
#IfWinActive ahk_exe Borderlands.exe
WinWait, ahk_exe Borderlands.exe
WinWaitClose, ahk_exe Borderlands.exe
Process, Close, BorderlandsNumPlayersSetter.exe
ExitApp
return
$F1::
run "G:\Games\Borderlands\Game of The Year Edition\Binaries\BorderlandsNumPlayersSetter.exe"
return
-----------------------------------------------------------------------------------------------------------------------
I use F1 to launch the difficulty slider after the save has been loaded and gameplay started. It
needs to read memory before it can be set and this action collapses game to Desktop, so it works perfect
Took a few attempts of WinKill, WinClose to find Process, Close is the way to go
Many thanks
PS> Funny.... I have several games in which I already use Process, Close, but in a different context. It had not occurred
to me to use it this way
PPS> *Maybe you are a babe, I dunno, but many thanks anyway!
my NEW script....
---------------------------------------------------------------------------------------------------------------------
#IfWinActive ahk_exe Borderlands.exe
WinWait, ahk_exe Borderlands.exe
WinWaitClose, ahk_exe Borderlands.exe
Process, Close, BorderlandsNumPlayersSetter.exe
ExitApp
return
$F1::
run "G:\Games\Borderlands\Game of The Year Edition\Binaries\BorderlandsNumPlayersSetter.exe"
return
-----------------------------------------------------------------------------------------------------------------------
I use F1 to launch the difficulty slider after the save has been loaded and gameplay started. It
needs to read memory before it can be set and this action collapses game to Desktop, so it works perfect
Took a few attempts of WinKill, WinClose to find Process, Close is the way to go
Many thanks
PS> Funny.... I have several games in which I already use Process, Close, but in a different context. It had not occurred
to me to use it this way
PPS> *Maybe you are a babe, I dunno, but many thanks anyway!
I have a bit of experience opening and sending commands to game console and CMD.exe... just ask
Who is online
Users browsing this forum: sharin and 46 guests