Open Side Menu Go to the Top

03-06-2006 , 11:32 PM
I did a search but I'm unsure of specific terms so my search was no good. I'm looking for instructions on how to setup a shortcut icon that will open up all my poker apps. If you could point me that way, or tell me what I need to type, I would appreciate it.
Setting Up A Shortcut To Open Multiple Programs Quote
Setting Up A Shortcut To Open Multiple Programs
150% up to $2,000 Welcome Bonus on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
Setting Up A Shortcut To Open Multiple Programs
03-06-2006 , 11:56 PM
u can get auto hotkey or just us a batch script. either way is pretty simple.
Setting Up A Shortcut To Open Multiple Programs Quote
03-07-2006 , 12:23 AM
This is actually functionality I'm planning to add to PartyPlanner eventually.

Otherwise, I second the previous recommendations.
Setting Up A Shortcut To Open Multiple Programs Quote
03-07-2006 , 05:36 AM
Here's my AutoHotkey script for doing this. It will:

* Open Partypoker, click Login, move lobby to upper left, click button to make table list longer.

* Open allSnap.

* Open Pokertracker, start import timer, do a force import, minimize window.

* Start PokerAce Hud minimized.

* Start Auto Resizer, init my preferred settings, move it to secondare monitor, minimize it.

(For Partypoker to work you have to place a shortcut copy (PartyPoker.lnk) in "PartyGaming/PartyPoker" folder.)

Adde
Setting Up A Shortcut To Open Multiple Programs Quote
03-07-2006 , 05:38 AM
; --------------------------------------------------------------------------------------------
;; PARTYPOKER ;;

SetTitleMatchMode, 1
Process, Exist, PartyGaming.exe
if %ErrorLevel% = 0
{
Run, C:\Program\PartyGaming\PartyPoker\PartyPoker.lnk

WinWait, PartyPoker.com: Poker Lobby
WinActivate, PartyPoker.com: Poker Lobby

WinMove, PartyPoker.com: Poker Lobby, , 0, 0
ControlClick , AfxWnd4262 , PartyPoker.com: Poker Lobby

WinWait, PartyAccount Login
WinActivate, PartyAccount Login

Send {TAB}
Send {TAB}
Send {TAB}
Send {SPACE}

}
else
{
WinMove, PartyPoker.com: Poker Lobby, , 0, 0
ControlClick , AfxWnd4262 , PartyPoker.com: Poker Lobby
}
; --------------------------------------------------------------------------------------------



; --------------------------------------------------------------------------------------------
;; ALLSNAP ;;

Process, Exist, allSnap.exe
if %ErrorLevel% = 0
{
Run, "C:\Program\allSnap\allSnap.exe"
}
; --------------------------------------------------------------------------------------------



; --------------------------------------------------------------------------------------------
;; POKERTRACKER ;;

SetTitleMatchMode, 1

Process, Exist, ptrack2.exe
if %ErrorLevel% = 0
{
Run, "C:\Program\Poker Tracker V2\ptrack2.exe", ,max

}

openImport := 0
startImport := 0

IfWinExist, Poker Tracker (Version, Auto-Import Party
{
}
else
{
openImport := 1
}

if openImport = 1
{

WinWait, Poker Tracker (Version
WinActivate, Poker Tracker (Version
WinMenuSelectItem, Poker Tracker, , File, Auto-Import Party
WinWait, Poker Tracker (Version
startImport := 1
}

if startImport = 1
{
WinActivate, Poker Tracker (Version
WinWait, Poker Tracker (Version
Send {TAB}
Send {TAB}
Send {TAB}
Send {TAB}
Send {TAB}
Send {TAB}
Send {TAB}
Send {TAB}
Send {SPACE}
Send {TAB}
Send {SPACE}
WinWait, Poker Tracker (Version, Stop Timer
}

WinMinimize, Poker Tracker (Version

; --------------------------------------------------------------------------------------------



; --------------------------------------------------------------------------------------------
;; POKERACE HUD ;;

Process, Exist, PAHud.exe
if %ErrorLevel% = 0
{
Run, "C:\Program\PokerAce Hud\PAHud.exe", ,min
}
; --------------------------------------------------------------------------------------------



; --------------------------------------------------------------------------------------------
;; AUTO-RESIZER ;;

SetTitleMatchMode, 1
Process, Exist, Party Beta Auto Resizer.exe
if %ErrorLevel% = 0
{
Run, "C:\Documents and Settings\Adde\Mina dokument\# POKER\Party_Beta_Auto_Resizer_v07b\Party Beta Auto Resizer.exe"

WinWait, Auto-Resizer
WinClose, Auto-Resizer

WinWait, Auto-Resizer
WinActivate, Auto-Resizer

Send {SPACE}
Send {TAB}
Send {TAB}
Send {TAB}
Send {SPACE}
Send {TAB}
Send {TAB}
Send {SPACE}
Send {TAB}
Send {TAB}
Send {SPACE}
Send {TAB}
Send {SPACE}

WinMove, Auto-Resizer, , 1600, 0
WinWait, Auto-Resizer
WinMinimize, Auto-Resizer
}
; --------------------------------------------------------------------------------------------
Setting Up A Shortcut To Open Multiple Programs Quote
03-07-2006 , 11:49 AM
here's a quick batch file
1) open up notepad
2) paste in this code (add/remove/change based upon what you want to open)

@echo off
cd "c:\program files\poker tracker v2"
start ptrack2.exe
cd "c:\program files\pokerstove"
start pokerstove.exe

3) save as whatever name you like with a .bat extension
4) create a shortcut on your desktop or wherever you like
5) waaaaalllllaaaaahhhhhh....you're done...

hope it helps


****PS*****
adde...just so i know...how do you run the AHK script? any easy directions or how to modify for stars? i keep seeing the AHK scripts posted but don't have any idea what to do with them...thanks...
Setting Up A Shortcut To Open Multiple Programs Quote
03-07-2006 , 11:58 AM
Hey, I think I will borrow this until I get time to add the ability to remember settings for AutoResizer.

Never thought about making a AHK script to open all the poker utils, but this looks pretty good idea!

Juk
Setting Up A Shortcut To Open Multiple Programs Quote
03-07-2006 , 12:08 PM
Quote:
how do you run the AHK script?
Install AutoHotKey. Save the script as a txt file with the extension ".ahk". Double click on the file.
Quote:
any easy directions or how to modify for stars?
Obviously all the sections like AllSnap and Pokertracker will work fine. For the others, you can just modify the AllSnap section for an easy PStars script.
-Sam
Setting Up A Shortcut To Open Multiple Programs Quote
03-07-2006 , 12:52 PM
Sam,
thanks for the response...actually easier than i thought...maybe i'll play around a little tonight....
i like the idea he had with Party and getting to login screen...
any easy way to do something similar for Stars?
Note: i'm pretty sure i'm following how to just open stars (ie using something similar to the allsnap section)...but curious how to take it the step further like he did with the Party lobby and login....
thanks for your help...love learning new stuff....

also for poker tracker...he has it set to auto import party...would i just have to change where he has party to stars?
Setting Up A Shortcut To Open Multiple Programs Quote
03-07-2006 , 02:07 PM
For Pokerstars, replace "PARTYPOKER" and "POKERTRACKER" with these.

Will not work if Pokerstars puts up a message alert though. I got the alert one time, but every other time I login it won't show up, so I can't test the script to include this.

Adde


; --------------------------------------------------------------------------------------------
;; POKERSTARS ;;

SetTitleMatchMode, 1
Process, Exist, PokerStars.exe
if %ErrorLevel% = 0
{
Run, "C:\Program\PokerStars\PokerStarsUpdate.exe"

WinWait, , Network Status
Loop {
IfWinNotExist , , Network Status
break
}
WinWait, PokerStars Lobby
WinMove, PokerStars Lobby, , 0, 0
WinActivate, PokerStars Lobby
WinMenuSelectItem, PokerStars Lobby, , Lobby , Login
WinWait, , User ID
Send {TAB}
Send {TAB}
Send {TAB}
Send {TAB}
Send {SPACE}
}
; --------------------------------------------------------------------------------------------



; --------------------------------------------------------------------------------------------
;; POKERTRACKER ;;

SetTitleMatchMode, 1

Process, Exist, ptrack2.exe
if %ErrorLevel% = 0
{
Run, "C:\Program\Poker Tracker V2\ptrack2.exe", ,max

}

openImport := 0
startImport := 0

IfWinExist, Poker Tracker (Version, Auto-Import PokerStars
{
}
else
{
openImport := 1
}

if openImport = 1
{

WinWait, Poker Tracker (Version
WinActivate, Poker Tracker (Version
WinMenuSelectItem, Poker Tracker, , File, Auto-Import PokerStars
WinWait, Poker Tracker (Version
startImport := 1
}

if startImport = 1
{
WinActivate, Poker Tracker (Version
WinWait, Poker Tracker (Version
Send {TAB}
Send {TAB}
Send {TAB}
Send {TAB}
Send {TAB}
Send {TAB}
Send {SPACE}
Send {TAB}
Send {SPACE}
WinWait, Poker Tracker (Version, Stop Timer
}

WinMinimize, Poker Tracker (Version

; --------------------------------------------------------------------------------------------
Setting Up A Shortcut To Open Multiple Programs Quote
03-07-2006 , 02:13 PM
Quote:
Hey, I think I will borrow this until I get time to add the ability to remember settings for AutoResizer.

Never thought about making a AHK script to open all the poker utils, but this looks pretty good idea!

Juk
Hey Juk, glad I can help you out for once.

I've just begun to look into Autohotkey. Splendid program! Was planning on constructing a AHK script that would join N tables (with help of waitinglists) and sit out. This way I could click once and get onto 8 tables automatically. I ran out of time though, so this project is up for grabs.

Adde
Setting Up A Shortcut To Open Multiple Programs Quote
03-07-2006 , 02:13 PM
Adde,
thanks so much...i'll give it a try tonight...
Setting Up A Shortcut To Open Multiple Programs Quote
03-07-2006 , 02:24 PM
Adde,
one other quick thing...
i'm using waffle's mods so i'm getting into Poker Stars with his PS.bat...

would i only have to change the line that begins with RUN to have it run PS.Bat rather than the pokerstarsupdate.exe?

i'm not sure what this line does and not sure if need to change it

Process, Exist, PokerStars.exe
I'm assuming it's looking to see if it's running first before launching...i'm also assuming that if you run pokerstarsupdate.exe that in the processes it shows pokerstars.exe? just a guess b/c not at my home pc...

thanks...appreciate the help
Setting Up A Shortcut To Open Multiple Programs Quote
03-07-2006 , 02:25 PM
There's also my old version of this script here. If I were to write it today, I wouldn't use the "Send{Space}, Send{Space}, ..." stuff; just hit the button directly. That qwirk seeped into Adde's code, too.

Quote:
Process, Exist, PokerStars.exe
I'm assuming it's looking to see if it's running first before launching
Right. Note the line after it, checking the error variable. It tells whether the process was found or not.
-Sam
Setting Up A Shortcut To Open Multiple Programs Quote
03-07-2006 , 02:36 PM
sam,
so then am i correct i would only need to change the line that begins with RUN?
Setting Up A Shortcut To Open Multiple Programs Quote
03-07-2006 , 02:49 PM
Quote:
sam,
so then am i correct i would only need to change the line that begins with RUN?
Should be fine. Feel free to experiment, too. You're not going to break anything, and you can always come back to the forum to re-copy the script if you break it.

We can always use more people experimenting with AHK on the forum.
-Sam
Setting Up A Shortcut To Open Multiple Programs Quote
03-07-2006 , 03:32 PM
Hey Sam, that's super! Here's my updated Pokerstars script, with "real" button clicking (and variables for paths at top).

Adde


; CODE BEGINS

pathPokerstars := "C:\Program\PokerStars\PokerStarsUpdate.exe"
pathPokerTracker := "C:\Program\Poker Tracker V2\ptrack2.exe"

doMinimizePokerTracker := 1 ; 1=YES 0=NO


; --------------------------------------------------------------------------------------------
;; POKERSTARS ;;
; --------------------------------------------------------------------------------------------

SetTitleMatchMode, 1
Process, Exist, PokerStars.exe
if %ErrorLevel% = 0
{
Run, %pathPokerstars%
WinWait, , Network Status
Loop {
IfWinNotExist , , Network Status
break
}
WinWait, PokerStars Lobby
WinMove, PokerStars Lobby, , 0, 0
WinActivate, PokerStars Lobby
WinMenuSelectItem, PokerStars Lobby, , Lobby , Login
SetTitleMatchMode, 2
WinWait, Login , User ID
ControlClick, Button4 , Login , User ID
}
; --------------------------------------------------------------------------------------------



; --------------------------------------------------------------------------------------------
;; POKERTRACKER ;;
; --------------------------------------------------------------------------------------------

SetTitleMatchMode, 1
Process, Exist, ptrack2.exe
if %ErrorLevel% = 0
{
Run , %pathPokerTracker% , , max
}

openImportWindow := 0
startImportTimer := 0

IfWinNotExist, Poker Tracker (Version, Auto-Import
{
openImportWindow := 1
}
if openImportWindow = 1
{
WinWait, Poker Tracker (Version
WinActivate, Poker Tracker (Version
WinMenuSelectItem, Poker Tracker, , File, Auto-Import PokerStars
startImportTimer := 1
}
if startImportTimer = 1
{
WinWait, Poker Tracker (Version , Start Timer
ControlClick, Button11 , , Start Timer
WinWait, Poker Tracker (Version, Stop Timer
ControlClick, Button12 , , Force Import
}
if doMinimizePokerTracker
{
WinMinimize, Poker Tracker (Version
}
; --------------------------------------------------------------------------------------------

; CODE ENDS
Setting Up A Shortcut To Open Multiple Programs Quote
03-07-2006 , 03:34 PM
Quote:
sam,
so then am i correct i would only need to change the line that begins with RUN?
Use my updated script and substitute the following lines with the path to the batch file and pokertracker.

pathPokerstars := "C:\Program\PokerStars\PokerStarsUpdate.exe"
pathPokerTracker := "C:\Program\Poker Tracker V2\ptrack2.exe"

Adde
Setting Up A Shortcut To Open Multiple Programs Quote
03-07-2006 , 03:45 PM
Quote:
Quote:
sam,
so then am i correct i would only need to change the line that begins with RUN?
Use my updated script and substitute the following lines with the path to the batch file and pokertracker.

pathPokerstars := "C:\Program\PokerStars\PokerStarsUpdate.exe"
pathPokerTracker := "C:\Program\Poker Tracker V2\ptrack2.exe"

Adde

Adde....great...thanks...i'll check it out tonight...
Setting Up A Shortcut To Open Multiple Programs Quote
03-07-2006 , 03:50 PM
Quote:
I've just begun to look into Autohotkey. Splendid program! Was planning on constructing a AHK script that would join N tables (with help of waitinglists) and sit out. This way I could click once and get onto 8 tables automatically. I ran out of time though, so this project is up for grabs.
If I ever get though my endless list of projects, then maybe I will try to take a look at this too. I have thought about this idea before and it also appeals to me, but not sure how hard it would be to make it robust enough to use without fear of a catastrophe!

Juk
Setting Up A Shortcut To Open Multiple Programs Quote
03-07-2006 , 04:04 PM
Quote:
Quote:
I've just begun to look into Autohotkey. Splendid program! Was planning on constructing a AHK script that would join N tables (with help of waitinglists) and sit out. This way I could click once and get onto 8 tables automatically. I ran out of time though, so this project is up for grabs.
If I ever get though my endless list of projects, then maybe I will try to take a look at this too. I have thought about this idea before and it also appeals to me, but not sure how hard it would be to make it robust enough to use without fear of a catastrophe!

Juk
That's what hit me in the head too. The waitlist bug with several dialogs coming up at once could be a nightmare.

Adde
Setting Up A Shortcut To Open Multiple Programs Quote
03-07-2006 , 06:19 PM
This is fun stuff. I tweaked my script with configuration stuff to choose what programs should start, what site import shuld be started in Pokertracker, what settings should be set in Auto Resizer, and some other stuff. Steal away!

Adde
Setting Up A Shortcut To Open Multiple Programs Quote
03-07-2006 , 06:21 PM
; --------------------------------------------------------------------------------------------
;
; AutoHotkey script for opening a bunch of poker applications at once.
;
;
; Current Bugs:
;
; - Don't work if PokerTracker dialog for updated version pops up.
; - Don't work if PokerAce Hud dialog for updated version pops up.
; - Don't work if PokerStars news dialog pops up.
;
; --------------------------------------------------------------------------------------------



; --------------- Path Settings
;
; Leave path blank ("") if you don't want to open a specific program.
;

pathPartyPoker := "C:\Program\PartyGaming\PartyPoker\PartyPoker. lnk"
pathPokerStars := "C:\Program\PokerStars\PokerStarsUpdate.exe"
pathPokerTracker := "C:\Program\Poker Tracker V2\ptrack2.exe"
pathAllSnap := "C:\Program\allSnap\allSnap.exe"
pathPokerAce := "C:\Program\PokerAce Hud\PAHud.exe"
pathAutoResizer := "C:\Program\Party_Beta_Auto_Resizer_v07b\Party Beta Auto Resizer.exe"


; --------------- PartyPoker Settings

ppMoveWindowToX := 0 ; [-1=no move]
ppMoveWindowToY := 0

ppLobbyView := "expand" ; [normal/expand/zoom]


; --------------- PokerStars Settings

psMoveWindowToX := 0 ; [-1=no move]
psMoveWindowToY := 0


; --------------- PokerTracker Settings

ptWhatSiteToImport := "partypoker" ; [partypoker/pokerstars]
ptTimerMinutes := 2

ptMinimize := 1 ; [1=YES/0=NO]


; --------------- PokerAce Hud Settings

paMinimize := 1 ; [1=YES/0=NO]


; --------------- Auto Resizer Settings

arMoveWindowToX := 1600 ; [-1=no move]
arMoveWindowToY := 0

arMinimize := 1 ; [1=YES/0=NO]

arPrefsWaitingList := 1 ; [1=YES/0=NO]
arPrefsFirstAvailable := 1
arPrefsWaitForBb := 0
arPrefsPost1stBb := 0
arPrefsBuyIn := 1
arPrefsNoSpam := 1
arPrefsMinimizeHh := 0
arPrefsCheckFoldOn := 0
arPrefsLockSize := 0
arPrefsHideMoney := 0



;
;
;
; DO ONLY CHANGE SETTINGS ABOVE THIS LINE
;
;
; DO NOT CHANGE ANYTHING BELOW THIS LINE
;
;
;



; --------------------------------------------------------------------------------------------
;
; SYSTEM VARIABLES
;
; --------------------------------------------------------------------------------------------

sysArTxtLicense := "Auto-Resizer: Freeware"
sysArTxtTitle := "Auto-Resizer"
sysArTxtTitleKey := "[Auto] Buy-in"

sysPsTxtFirst := "Network Status"
sysPsTxtLobby := "PokerStars Lobby"
sysPsTxtLogin := "Login"
sysPsTxtLoginKey := "User ID"

sysPpTxtLobby := "PartyPoker.com: Poker Lobby"
sysPpTxtLogin := "PartyAccount Login"
sysPpTxtLoginKey := "Account Name"

sysPtTxtTitle := "Poker Tracker (Version"
sysPtTxtImport := "Auto-Import"


sysPpProcessName := "PartyGaming.exe"
sysPsProcessName := "PokerStars.exe"
sysPtProcessName := "ptrack2.exe"
sysPaProcessName := "PAHud.exe"
sysArProcessName := "Party Beta Auto Resizer.exe"
sysAsProcessName := "allSnap.exe"




; --------------------------------------------------------------------------------------------
;
; PARTYPOKER
;
; --------------------------------------------------------------------------------------------

if (pathPartyPoker <> "")
{

SetTitleMatchMode, 1
Process, Exist, %sysPpProcessName%
if (%ErrorLevel% = 0) {
Run, %pathPartyPoker%

WinWait, %sysPpTxtLobby%
WinActivate, %sysPpTxtLobby%
if (ppMoveWindowToX >= 0)
WinMove, %sysPpTxtLobby%, , ppMoveWindowToX , ppMoveWindowToY

if (ppLobbyView = "zoom")
className := "AfxWnd4263"
else if (ppLobbyView = "expand")
className := "AfxWnd4262"
else
className := "AfxWnd4261"

WinWait, %sysPpTxtLobby%
WinActivate, %sysPpTxtLobby%
ControlClick , %className% , %sysPpTxtLobby%

WinWait, %sysPpTxtLogin%
WinActivate, %sysPpTxtLogin%
ControlClick, Button2 , %sysPpTxtLogin% , %sysPpTxtLoginKey%
}

}
; ---------- END




; --------------------------------------------------------------------------------------------
;
; POKERSTARS
;
; --------------------------------------------------------------------------------------------

if (pathPokerStars <> "")
{

SetTitleMatchMode, 1
Process, Exist, %sysPsProcessName%
if (%ErrorLevel% = 0) {
Run, %pathPokerStars%
WinWait, , %sysPsTxtFirst%
Loop {
IfWinNotExist , , %sysPsTxtFirst%
break
}
WinWait, %sysPsTxtLobby%
if (psMoveWindowToX >= 0)
WinMove, %sysPsTxtLobby%, , psMoveWindowToX , psMoveWindowToY
WinActivate, %sysPsTxtLobby%
WinMenuSelectItem, %sysPsTxtLobby%, , Lobby , Login
SetTitleMatchMode, 2
WinWait, %sysPsTxtLogin% , %sysPsTxtLoginKey%
ControlClick, Button4 , %sysPsTxtLogin% , %sysPsTxtLoginKey%
}

}
; ---------- END




; --------------------------------------------------------------------------------------------
;
; POKERTRACKER
;
; --------------------------------------------------------------------------------------------

if (pathPokerTracker <> "")
{

SetTitleMatchMode, 1
Process, Exist, %sysPtProcessName%
if (%ErrorLevel% = 0) {
Run , %pathPokerTracker% , , max
}

if (ptWhatSiteToImport = "partypoker") {
txtMenu := "Auto-Import Party"
txtWindow := "Auto-Import Party"
btnStart := "Button12"
btnForce := "Button11"
editMins := "PBEDIT701"
}
if (ptWhatSiteToImport = "pokerstars") {
txtMenu := "Auto-Import PokerStars"
txtWindow := "Auto-Import PokerStars"
btnStart := "Button11"
btnForce := "Button12"
editMins := "PBEDIT701"
}

openWindow := 0
startTimer := 0

IfWinNotExist, %sysPtTxtTitle%, %sysPtTxtImport%
{
openWindow := 1
}
if (openWindow = 1) {
WinWait, %sysPtTxtTitle%
WinActivate, %sysPtTxtTitle%
WinMenuSelectItem, %sysPtTxtTitle%, , File, %txtMenu%
startTimer := 1
}
if (startTimer = 1) {
WinWait, %sysPtTxtTitle% , Start Timer
ControlSetText , %editMins% , %ptTimerMinutes% , , Start Timer
ControlClick, %btnStart%, , Start Timer
WinWait, %sysPtTxtTitle%, Stop Timer
ControlClick, %btnForce%, , Force Import
}
if (ptMinimize = 1) {
WinMinimize, %sysPtTxtTitle%
}

}
; ---------- END




; --------------------------------------------------------------------------------------------
;
; POKERACE HUD
;
; --------------------------------------------------------------------------------------------

if (pathPokerAce <> "")
{

Process, Exist, %sysPaProcessName%
if (%ErrorLevel% = 0) {
if (paMinimize)
Run, %pathPokerAce% , , min
else
Run, %pathPokerAce%

}

}
; ---------- END




; --------------------------------------------------------------------------------------------
;
; AUTO RESIZER
;
; --------------------------------------------------------------------------------------------

if (pathAutoResizer <> "")
{

SetTitleMatchMode, 1
Process, Exist, %sysArProcessName%
if (%ErrorLevel% = 0) {
Run, %pathAutoResizer%

WinWait, %sysArTxtLicense%
WinClose, %sysArTxtLicense%

WinWait, %sysArTxtTitle% , %sysArTxtTitleKey%
WinActivate, %sysArTxtTitle% , %sysArTxtTitleKey%

ControlClick, Button1 , %sysArTxtTitle% , %sysArTxtTitleKey%

if (arPrefsWaitingList = 1)
ControlClick, Button13 , %sysArTxtTitle% , %sysArTxtTitleKey%
if (arPrefsFirstAvailable = 1)
ControlClick, Button15 , %sysArTxtTitle% , %sysArTxtTitleKey%
if (arPrefsWaitForBb = 1)
ControlClick, Button4 , %sysArTxtTitle% , %sysArTxtTitleKey%
if (arPrefsPost1stBb = 1)
ControlClick, Button7 , %sysArTxtTitle% , %sysArTxtTitleKey%
if (arPrefsBuyIn = 1)
ControlClick, Button5 , %sysArTxtTitle% , %sysArTxtTitleKey%
if (arPrefsNoSpam = 1)
ControlClick, Button16 , %sysArTxtTitle% , %sysArTxtTitleKey%
if (arPrefsMinimizeHh = 1)
ControlClick, Button18 , %sysArTxtTitle% , %sysArTxtTitleKey%
if (arPrefsCheckFoldOn = 1)
ControlClick, Button17 , %sysArTxtTitle% , %sysArTxtTitleKey%
if (arPrefsLockSize = 1)
ControlClick, Button3 , %sysArTxtTitle% , %sysArTxtTitleKey%
if (arPrefsHideMoney = 1)
ControlClick, Button14 , %sysArTxtTitle% , %sysArTxtTitleKey%

WinWait, %sysArTxtTitle% , %sysArTxtTitleKey%
if (arMoveWindowToX >= 0)
WinMove, %sysArTxtTitle%, , arMoveWindowToX , arMoveWindowToY
if (arMinimize = 1) {
WinWait, %sysArTxtTitle%
WinMinimize, %sysArTxtTitle%
}
}

}
; ---------- END




; --------------------------------------------------------------------------------------------
;
; ALLSNAP
;
; --------------------------------------------------------------------------------------------

if (pathAllSnap <> "")
{

Process, Exist, %sysAsProcessName%
if (%ErrorLevel% = 0) {
Run, %pathAllSnap%
}

}
; ---------- END
Setting Up A Shortcut To Open Multiple Programs Quote
03-07-2006 , 10:07 PM
Adde/Sam/anyone who wants to help,

trying this at home...ALMOST got it...couple of quick questions:

1) ControlClick, Button13 --> how do you know what Button # to use? note: this is just an example...i'm more interested how do you find what button in general
eg...i used this in Stars
ControlClick, OK , Login , User ID
ie using OK rather than Button#...just tried it...and seems to work...curious what should be used.

2)WinMinimize --> for Poker Tracker i have it set to minimize to system tray in poker trackers options but this seems to only minimize to task bar. any way to get it to minimize to the system tray?

3) i noticed on the RUN lines that the min and/or max don't seem to work all the time? any reasons why?

4)Is there any way to step through (ie debug) the ahk code? sometimes it just seems to stop processing...

5)can you take a look at this code and see if you see anything that could be better...i had to remark out the part in stars about the network status ...i'm assuming b/c i have to wait till the batch file window closes before i start doing the other menu commands, etc?

thanks for all your help....didn't notice the new code...this is based off your previous code examples...

; CODE BEGINS

pathPokerstars := "C:\Program Files\PokerStars\PS.bat"
pathPokerTracker := "C:\Program Files\Poker Tracker V2\ptrack2.exe"

doMinimizePokerTracker := 1 ; 1=YES 0=NO



; --------------------------------------------------------------------------------------------
;; THUNDERBIRD EMAIL ;;

Process, Exist, Thunderbird.exe
if %ErrorLevel% = 0
{
Run, "C:\Program Files\Mozilla Thunderbird\thunderbird.exe", ,min


SetTitleMatchMode, 2

WinWait, Thunderbird
IfWinNotActive, Thunderbird, , WinActivate, Thunderbird,
WinWaitActive, Thunderbird,

WinMinimize, Thunderbird
}
; --------------------------------------------------------------------------------------------


; --------------------------------------------------------------------------------------------
;; POKERTRACKER ;;
; --------------------------------------------------------------------------------------------

SetTitleMatchMode, 1
Process, Exist, ptrack2.exe
if %ErrorLevel% = 0
{
Run , %pathPokerTracker% , , max
}

openImportWindow := 0
startImportTimer := 0

IfWinNotExist, Poker Tracker (Version, Auto-Import
{
openImportWindow := 1
}
if openImportWindow = 1
{
WinWait, Poker Tracker (Version
WinActivate, Poker Tracker (Version
WinMenuSelectItem, Poker Tracker, , File, Auto-Import PokerStars
startImportTimer := 1
}
if startImportTimer = 1
{
WinWait, Poker Tracker (Version , Start Timer
ControlClick, Button11 , , Start Timer
WinWait, Poker Tracker (Version, Stop Timer
ControlClick, Button12 , , Force Import
}
if doMinimizePokerTracker
{
WinMinimize, Poker Tracker (Version
}
; --------------------------------------------------------------------------------------------


; --------------------------------------------------------------------------------------------
;; POKERACE HUD ;;

Process, Exist, PAHud.exe
if %ErrorLevel% = 0
{
Run, "C:\Program Files\PokerAce Hud\PAHud.exe", ,min
}
; --------------------------------------------------------------------------------------------


; --------------------------------------------------------------------------------------------
;; POKERSTARS ;;
; --------------------------------------------------------------------------------------------

SetTitleMatchMode, 1
Process, Exist, PokerStars.exe
if %ErrorLevel% = 0
{
Run, %pathPokerstars%

WinWait, C:\WINDOWS\system32\cmd.exe
WinWaitClose ; Wait for the exact window found by WinWait to be closed.


;WinWait, , Network Status

;Loop {
;IfWinNotExist , , Network Status
;break
;}

WinWait, PokerStars Lobby
IfWinNotActive, PokerStars Lobby, , WinActivate, PokerStars Lobby,
WinWaitActive, PokerStars Lobby,

;WinMove, PokerStars Lobby, , 0, 0

WinMenuSelectItem, PokerStars Lobby, , Lobby , Login
SetTitleMatchMode, 2
WinWait, Login , User ID
ControlClick, OK , Login , User ID
WinMenuSelectItem,PokerStars Lobby,,Options ,Images
WinMenuSelectItem,PokerStars Lobby,,Options,Images

ControlClick, x422 y146, PokerStars Lobby
ControlClick, x142 y179, PokerStars Lobby
ControlClick, x317 y205, PokerStars Lobby

}
; --------------------------------------------------------------------------------------------





; CODE ENDS
Setting Up A Shortcut To Open Multiple Programs Quote
03-07-2006 , 10:22 PM
I wrote up a quick bat file that worked for myself but these AHK scripts looks pretty damn cool. Thanks!
Setting Up A Shortcut To Open Multiple Programs Quote
Setting Up A Shortcut To Open Multiple Programs
150% up to $2,000 Welcome Bonus on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
Setting Up A Shortcut To Open Multiple Programs

      
m