#1
|
|||
|
|||
AHK help - opening multiple programs at once
Hello,
I'm trying to come up with a macro that would ; A) Open PartyPlanner B) Open PT C) Open PAH D) Open 6th Sense E) Open PartyPoker F) Run AHK script #1 G) Run AHK script #2 When I try to open only one software, I can get the script to work. However, when I try to add more than one software (ie more than one "run" line), only the first software opens ?! I searched online for sample scripts, but I still can't get it to work ... Thanks |
#2
|
|||
|
|||
Re: AHK help - opening multiple programs at once
Post what you have, and we can show you where you went wrong.
It should be pretty straightforward, though. You'll just have G many commands, each of which runs a different app. -Sam |
#3
|
|||
|
|||
Re: AHK help - opening multiple programs at once
Well,
For some reason, "G:\Program Files\PartyGaming\PartyGaming.exe" won't load party ... I guess we need to use the paramater at the end ; "G:\Program Files\PartyGaming\PartyGaming.exe" -P=PartyPoker So, it works for now ... |
#4
|
|||
|
|||
Re: AHK help - opening multiple programs at once
[ QUOTE ]
Well, For some reason, "G:\Program Files\PartyGaming\PartyGaming.exe" won't load party ... I guess we need to use the paramater at the end ; "G:\Program Files\PartyGaming\PartyGaming.exe" -P=PartyPoker So, it works for now ... [/ QUOTE ]This doesn't sound like the problem you described in the OP, but I'm glad you're set. [img]/images/graemlins/smile.gif[/img] If you have any issues, holler. -Sam |
#5
|
|||
|
|||
Re: AHK help - opening multiple programs at once
I would like to use something similar to this...Could you post the script please?
|
#6
|
|||
|
|||
Re: AHK help - opening multiple programs at once
This is the bat-file, I use when I play NL cashgame at Party...
cd "C:\Program Files\Poker Tracker V2\" start ptrack2.exe cd "C:\Program Files\PokerAce Hud\" Start PAHud.exe cd "C:\Games\Poker\PartyGaming\" Start PartyGaming.exe -P=PartyPoker cd "C:\Games\Poker\Scripts" start PartyBetPot05.ahk cd "C:\Games\Poker\Scripts" start PokerSeatTaker.ahk cd "C:\Games\Poker\Scripts" start Chipreloader.ahk Adjust paths, scripts etc... You get the idea. [img]/images/graemlins/smile.gif[/img] |
#7
|
|||
|
|||
Re: AHK help - opening multiple programs at once
[ QUOTE ]
[ QUOTE ] Well, For some reason, "G:\Program Files\PartyGaming\PartyGaming.exe" won't load party ... I guess we need to use the paramater at the end ; "G:\Program Files\PartyGaming\PartyGaming.exe" -P=PartyPoker So, it works for now ... [/ QUOTE ]This doesn't sound like the problem you described in the OP, but I'm glad you're set. [img]/images/graemlins/smile.gif[/img] If you have any issues, holler. -Sam [/ QUOTE ] The same code but with PartyGaming.exe didn't open anything. As soon as I add the parameter after the exe file, it works ?! The reste of the code is identic. Weird. |
#8
|
|||
|
|||
Re: AHK help - opening multiple programs at once
Thanks for the code donkraft ... I didn't know if we could execute scripts like that.
Back in black, I'll post my code but it's likely not work for you since I used the recorder to do some steps, and it records mouse clicks with the coordinates on the screen (ex 198x452). But at least, the code will help you get started. What you can do is use the recorder for only certain steps. For example, you can use the 2 first line as is. Open Party. Run the recorder to get your own login sript, and paste it in the code to replace mine. Then use the recorder for another step. I'm very new to AHK, so perhaps this could have been done in a better way ... *** This is for my observed sessions. *** 1 OPEN PARTY 2 OPEN 6TH SENSE 3 Login to party and close pop ups, select my limit in the left pane 4 OPEN FREEPHG 5 OPEN PARTY PLANER (to "hide" all the windows in the same corner) 6 wait 2 mins to let 6th sense finish its scan 7 Sort the 6th sense tables by data, from 0 to 6 (so that the tables with 6 players for which I don't have any data are at the top 8 Open the 12 first tables (via 6th Sense) 9 Close 6th sense Also, I found that using the default "100" delay between mouse clicks wasn't enough. The pop ups weren't all closed. I don't have any problems with the delays set at 1000. While the computer waits for 6th sense to finish importing hands, I used sounds to keep track of the time ... and make sure the script is still running. This sin't necessary, but, oh welll ... ************************************************** ***************************************** Run "G:\Program Files\PartyGaming\PartyGaming.exe" -P=PartyPoker Run G:\Program Files\SixthSense\SixthSenseClient.exe Sleep, 3000 WinWait, PartyAccount Login, IfWinNotActive, PartyAccount Login, , WinActivate, PartyAccount Login, WinWaitActive, PartyAccount Login, MouseClick, left, 127, 10 Sleep, 1000 MouseClick, left, 198, 151 Sleep, 1000 WinWait, Message from PartyPoker.com, IfWinNotActive, Message from PartyPoker.com, , WinActivate, Message from PartyPoker.com, WinWaitActive, Message from PartyPoker.com, MouseClick, left, 163, 342 Sleep, 1000 WinWait, PartyPoker.com: Poker Lobby - Good Luck XXXXXXXXXXXXXXX, IfWinNotActive, PartyPoker.com: Poker Lobby - Good Luck XXXXXXXXXXXXXXX, , WinActivate, PartyPoker.com: Poker Lobby - Good Luck XXXXXXXXXXXXXXX, WinWaitActive, PartyPoker.com: Poker Lobby - Good Luck XXXXXXXXXXXXXXX, MouseClick, left, 210, 447 Sleep, 1000 MouseClick, left, 213, 194 Sleep, 1000 MouseClick, left, 301, 339 Sleep, 1000 MouseClick, left, 407, 112 Sleep, 1000 Run F:\POKER\Observed Party\FreePHG.exe Run G:\Program Files\PartyPlanner\PartyPlanner.exe Sleep, 30000 SoundBeep, , 50 Sleep, 30000 SoundBeep, , 50 Sleep, 1000 SoundBeep, , 50 Sleep, 29000 SoundBeep, , 50 Sleep, 1000 SoundBeep, , 50 Sleep, 1000 SoundBeep, , 50 Sleep, 28000 WinWait, Sixth Sense, IfWinNotActive, Sixth Sense, , WinActivate, Sixth Sense, WinWaitActive, Sixth Sense, MouseClick, left, 12, 47 Sleep, 1000 MouseClick, left, 515, 91 Sleep, 1000 MouseClick, left, 515, 91 Sleep, 1000 MouseClick, right, 306, 114 Sleep, 100 MouseClick, left, 381, 163 Sleep, 1000 Sleep, 120000 WinWait, Sixth Sense, IfWinNotActive, Sixth Sense, , WinActivate, Sixth Sense, WinWaitActive, Sixth Sense, MouseClick, left, 387, 21 Sleep, 100 MouseClick, left, 613, 19 Sleep, 100 ************************************************** ********************************* |
|
|