This is the script I use for opening all the programs when I play poker. It does the following:
- Open PT, moves it to my second screen and maximizes it, starts autoimport on party and opens ring game statistics. You might need to change some values depending on your screensize.
- Opens Party, logs in, closes welcome screen and moves the client to the other screen
- Opens PAHUD
- Opens FPHG
- Opens betpot script and shortcut scripts for keyboard and gamepad
- Opens an excel sheet with statistics about my sessions which I update after every session
You'll need to change the paths so they'll point to the right files.
Code:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
;;;;;;;;;;;;;;;;;;;;;;;;;;
; Begin PokerTracker Stuff
; Delete this if you don't use PT
;;;;;;;;;;;;;;;;;;;;;;;;;;
Process, Exist, ptrack2.exe
ptpid = %ErrorLevel%
if ptpid <> 0
{
IfWinExist Poker Tracker
{
WinActivate
}
}
else
{
Run E:\Program Files\Poker Tracker V2\ptrack2.exe
WinWait Poker Tracker
WinActivate
Sleep, 3000 ; Let it check for a newer version
Click 1560, 10 ;
Sleep, 500 ;
WinMove -1000,500 ; Moves it to second screen.
WinMaximize Poker Tracker ;
Sleep, 500
Click 300, 64 ;
Sleep, 500 ; Starts auto-import.
ControlClick, Button11, Poker Tracker
Click 495, 65 ; Opens ring game statistics.
}
;;;;;;;;;;;;;;;;;;;;;;;;;;
; End PT Stuff
;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;
; Begin Party Stuff
;;;;;;;;;;;;;;;;;;;;;;;;;;
Process, Exist, PartyGaming.exe
partyid = %ErrorLevel%
if partyid <> 0
{
; do nothing
WinActivate
}
else
{
Run E:\Program Files\PartyGaming\PartyGaming.exe -P=PartyPoker
WinWait PartyAccount Login
WinActivate PartyAccount Login
Send {Enter}
WinWait Message from
WinActivate Message from
Send {Enter}
Sleep, 500
WinMove, PartyPoker, ,-788, 436
}
;;;;;;;;;;;;;;;;;;;;;;;;;;
; End Party Stuff
;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;
; Begin PokerAce HUD Stuff
; Delete this if you don't use PAHUD
;;;;;;;;;;;;;;;;;;;;;;;;;;
Process, Exist, PAHud.exe
papid = %ErrorLevel%
if papid <> 0
{
if WinExist PokerAce Hud
{
WinActivate
}
}
else
{
Run E:\Program Files\PokerAce Hud\PAHud.exe
WinWait PokerAce Hud
WinActivate
}
;;;;;;;;;;;;;;;;;;;;;;;;;;
; End PokerAce HUD Stuff
;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;
; Begin FPHG Stuff
; Delete this if you don't use FPHG
;;;;;;;;;;;;;;;;;;;;;;;;;;
Run E:\Program Files\FreePHG\FreePHG.exe, E:\Program Files\FreePHG\
;;;;;;;;;;;;;;;;;;;;;;;;;;
; End FPHG Stuff
;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;
; Begin AutoHotKey Stuff
;
;;;;;;;;;;;;;;;;;;;;;;;;;;
Run E:\Program Files\AutoHotkey\PokerScripts\BetPot\BetPotParty.ahk, E:\Program Files\AutoHotkey\PokerScripts\BetPot\
Run E:\Program Files\AutoHotkey\PokerScripts\BetPot\gamepad.ahk, E:\Program Files\AutoHotkey\PokerScripts\BetPot\
Run E:\Program Files\AutoHotkey\PokerScripts\BetPot\Party4TableShortCuts.ahk, E:\Program Files\AutoHotkey\PokerScripts\BetPot\
;;;;;;;;;;;;;;;;;;;;;;;;;;
; End AutoHotKey Stuff
;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;
; Begin Statistics.xls Stuff
;
;;;;;;;;;;;;;;;;;;;;;;;;;;
Process, Exist, Microsoft Excel
sid = %ErrorLevel%
if sid <> 0
{
if WinExist Microsoft Excel
{
WinActivate
}
}
else
{
Run D:\Mijn documenten\Gokken\Poker\Statistics\Statistics_2008.xls
WinWait Microsoft Excel
WinActivate
}
WinMinimize Microsoft Excel
;;;;;;;;;;;;;;;;;;;;;;;;;;
; End Statistics.xls Stuff
;;;;;;;;;;;;;;;;;;;;;;;;;;