Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-07-2006, 04:55 PM
CASSHERN CASSHERN is offline
Senior Member
 
Join Date: Jun 2005
Location: Montreal
Posts: 459
Default 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
Reply With Quote
  #2  
Old 08-07-2006, 04:57 PM
SamIAm SamIAm is offline
Senior Member
 
Join Date: Apr 2004
Location: Merry Chhannukaahh
Posts: 6,273
Default 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
Reply With Quote
  #3  
Old 08-07-2006, 05:14 PM
CASSHERN CASSHERN is offline
Senior Member
 
Join Date: Jun 2005
Location: Montreal
Posts: 459
Default 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 ...
Reply With Quote
  #4  
Old 08-07-2006, 06:53 PM
SamIAm SamIAm is offline
Senior Member
 
Join Date: Apr 2004
Location: Merry Chhannukaahh
Posts: 6,273
Default 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
Reply With Quote
  #5  
Old 08-07-2006, 07:08 PM
Back In Black Back In Black is offline
Senior Member
 
Join Date: Apr 2005
Location: Debt, CA
Posts: 341
Default Re: AHK help - opening multiple programs at once

I would like to use something similar to this...Could you post the script please?
Reply With Quote
  #6  
Old 08-07-2006, 07:21 PM
donkraft donkraft is offline
Senior Member
 
Join Date: Sep 2005
Location: donkraftpoker.com
Posts: 316
Default 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]
Reply With Quote
  #7  
Old 08-07-2006, 08:22 PM
CASSHERN CASSHERN is offline
Senior Member
 
Join Date: Jun 2005
Location: Montreal
Posts: 459
Default 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.
Reply With Quote
  #8  
Old 08-07-2006, 08:36 PM
CASSHERN CASSHERN is offline
Senior Member
 
Join Date: Jun 2005
Location: Montreal
Posts: 459
Default 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

************************************************** *********************************
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:56 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.