Code: Select all
+#c::
Gui, 8: Show, w120 h170, CoachView
Gui, 8: Add, Text ,, Team Select
Gui, 8: Add, Button, g1, Jason
Gui, 8: Add, Button, g2, Wanda
Gui, 8: Add, Button, g3, CW
Gui, 8: Add, Edit, w50 vCustom hwndhCustom
Gui, 8: Add, Button, x65 y111 gCustom, Select
Return
Placeholder(hCustom, "Custom")
1:
SUP = jwf160
;MsgBox % SUP
ifWinExist ahk_exe iexplore.exe
{
WinActivate, ahk_exe iexplore.exe
WinWaitActive, ahk_exe iexplore.exe
SendPlay, ^t
SendPlay, http://google.com/%SUP% {Enter}
Return
}
Else
{
Run, "C:\Program Files\Internet Explorer\iexplore.exe"
WinWait ahk_exe iexplore.exe
;SendPlay, ^t
SendPlay, http://google.com/%SUP% {Enter}
}
Return
2: ;;(Similar)
3: ;;(Similar)
Custom:
;;(similar but with
;;Custom:
;;Gui, Submit, NoHide
;;SUP := Custom
;;IfWinExist, ahk_exe iexplore.exe
;;Send, ^t
;;Send, http://coachview.ftr.com/CoachView/?id=%SUP%
;;Return
8GuiClose:
Gui, 8:Destroy
Return