Skip to content

Instantly share code, notes, and snippets.

@jploudre
Created March 28, 2017 04:36
Show Gist options
  • Select an option

  • Save jploudre/838316cce148e9d9a341db34d1015ea3 to your computer and use it in GitHub Desktop.

Select an option

Save jploudre/838316cce148e9d9a341db34d1015ea3 to your computer and use it in GitHub Desktop.
; JKP Focus
; Doesn't really work with Citrix
#Persistent
SetTimer, Focus, 100
return
Focus:
if WinActive("focus.ahk") or WinActive("Update Problems -") or WinActive("Update Medications -") or WinActive("Update Orders -") or WinActive("Update Orders -") or WinActive("Append to Document") or WinActive("Assessments Due") or WinActive("Customize Letter") or WinActive("End Update") or WinActive("Care Alert Warning -") or WinActive("New Medication")or WinActive("New Problem")
{
active_window := WinExist("A")
Gui,1: +LastFound -Caption +ToolWindow +Disabled
Gui,1: Color,000000
Gui,1: Show, noactivate w%A_ScreenWidth% h%A_ScreenHeight% x0 y0,FocusWindow
WinGet,windowID,ID
WinSet, Transparent, 150, ahk_id %windowID%
WinActivate,ahk_id %active_window%
}
else {
Gui,1: Cancel
}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment