Skip to content

Commit

Permalink
Add OpenInpro
Browse files Browse the repository at this point in the history
Opens case details in Inprotech Web
  • Loading branch information
mattjbray committed Sep 6, 2012
1 parent 0020ed9 commit 9066663
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions OpenInpro.ahk
@@ -0,0 +1,43 @@
; Activated by Win+z
#z::

; Get the input, exit if user cancels
InputBox, IRN, Open Inprotech Case, Enter tag,,,,,,,,%IRN%
if ErrorLevel
return

SetTitleMatchMode, RegEx

; Get the Google Chrome window
IfWinNotExist, Google Chrome
{
return
}

WinActivate
WinMaximize

WinWaitActive, Google Chrome,,5
if ErrorLevel
return

; Select the Inprotech tab
Send ^3

Sleep 100

; Minimize existing windows
Send ^A

Sleep 100

; Click in the search box
CoordMode Mouse, Relative
Click 220, 190

; Select all text
Send ^a

Send %IRN%{Enter}

return

0 comments on commit 9066663

Please sign in to comment.