Quote:
Juk,
Thanks again for a wonder program, and all your efforts.
Got a quick trivia question: I'm using AHK to launch all my poker programs with one hot key.
The issue I have is that when I launch it via a hot key, I get a CMD.exe process, as well as the FreePHG.exe, and neither have a low process priority.
My batch fild consists of
<font class="small">Code:</font><hr /><pre>
FreePHG.exe -p -2 -o -6max
</pre><hr />
I wasn't able to lauch that bat file directly with ahk (via
run, FreePHG.exe -p -2 -o -6max) for some reason.
So I had to create a shortcut to the batch file, then use ahk to call that:
<font class="small">Code:</font><hr /><pre>
run, C:\Program Files\Poker\PartyPokerHH\FreePHG.lnk,,min
</pre><hr />
This successfully launches FreePHG, but it's not low priority, and there is additionally a CMD.exe process that is also launched....
Any suggestions?
When you run FPHG using "-p -2" it won't actually show up as low priority in the task-manager anyway!
The reason is that I just spawned a new worker thread and set the thread priority to "low" (ie: "-p -2"). The FPHG main thread does nothing but spawn the worker thread, then waits forever.
To make 100% sure it's low priory, try running something else and you should see FPHG's CPU use drop to almost 0%.
As for starting run.bat from inside of AHK, I'm not so sure about that. I do intend to add a GUI soon(ish) to FPHG to make it easier, but just haven't had time recently, so using AHK to fire it up seems a good idea. Is it not possible to call a program from AHK with C/L args passed to it, rather than using my batch file?
Juk