Created
March 28, 2017 04:36
-
-
Save jploudre/838316cce148e9d9a341db34d1015ea3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| ; 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