summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--winii.ahk24
1 files changed, 9 insertions, 15 deletions
diff --git a/winii.ahk b/winii.ahk
index de84cc0..bd905ab 100644
--- a/winii.ahk
+++ b/winii.ahk
@@ -296,21 +296,15 @@ RunAndActivate(Target)
WinShow ahk_pid %mypid%
}
-TestFunction()
+ShowPIDBox()
{
- global
-
- plop := foobar
- if ( plop > -1 )
- TrayTip, , "Plop is more than 0 : %plop%", 1
-; if ( foobar > 0 )
-; bleh = 0
-;; TrayTip, , "Foobar is more than 0 : %foobar%", 1
-; else
-; foobar = 0
- if ! (foobar > 0)
-; foobar = 0
- foobar := foobar + 2
+ InputBox, mypid, Enter pid of the program you want to show
+ if ErrorLevel
+ return
+
+ TrayTip, , "Activating window of process %ahk_pid%", 1
+ WinShow ahk_pid %mypid%
+ WinShow ahk_pid %mypid%
}
RemoveTrayTip:
@@ -328,7 +322,7 @@ return
!F1::RunOrActivateClass(minttyPath, "mintty")
!F2::RunOrActivateClass(firefoxPath, "MozillaWindowClass")
!F11::RunOrActivateClass(resmonPath, "WdcWindow")
-!F8::TestFunction()
+!F8::ShowPIDBox()
!F10::WinActivate, ahk_class CommunicatorMainWindowClass
!Backspace::