Created
March 10, 2019 23:54
-
-
Save TLMcode/b362dc50f68814d79903fc4a6a91135a to your computer and use it in GitHub Desktop.
app launcher & screen placement script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if !( SndVolId := WinExist( "ahk_exe SndVol.exe" ) ) | |
{ | |
Run, SndVol.exe,,, SndVolPid | |
WinWait % "ahk_pid " SndVolPid | |
SndVolId := WinExist( "ahk_pid " SndVolPid ) | |
} | |
WinSet AlwaysOnTop, On, % "ahk_id " SndVolId | |
WinMove, % "ahk_id " SndVolId,, % A_ScreenWidth, % A_ScreenHeight+100 | |
WinGetPos, SndVolX,, SndVolW, SndVolH, % "ahk_id " SndVolId | |
Run osk.exe | |
While !( OskId := WinExist( "ahk_class OSKMainClass" ) ) | |
Continue | |
WinWait, % "ahk_id " OskId | |
WinMove, % "ahk_id " OskId,, % SndVolX+SndVolW, % A_ScreenHeight+100 | |
ExitApp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment