Skip to content

Instantly share code, notes, and snippets.

@TLMcode
Created March 10, 2019 23:54
Show Gist options
  • Save TLMcode/b362dc50f68814d79903fc4a6a91135a to your computer and use it in GitHub Desktop.
Save TLMcode/b362dc50f68814d79903fc4a6a91135a to your computer and use it in GitHub Desktop.
app launcher & screen placement script
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