Open Side Menu Go to the Top
Register
STOP LOSS AHK REQUEST (Reward) STOP LOSS AHK REQUEST (Reward)

04-26-2008 , 10:29 PM
If anyone is willing to write an AHK stop loss script to work in conjunction w/ Holdem Manager I will xfer $100 on stars/ftp...
STOP LOSS AHK REQUEST (Reward) Quote
04-27-2008 , 10:10 PM
How can no one be interested in this? OK, 200...
STOP LOSS AHK REQUEST (Reward) Quote
04-27-2008 , 10:49 PM
You reminded me.

I will have this done for you tomorrow, if RVG checks his PMs - probably even if he does not (1000 hands of trial remaining)
STOP LOSS AHK REQUEST (Reward) Quote
04-27-2008 , 11:19 PM
Dave I will love you! I have some serious tilt issues, lol...
STOP LOSS AHK REQUEST (Reward) Quote
04-27-2008 , 11:26 PM
How can you make this? Can you make it for PT3?
STOP LOSS AHK REQUEST (Reward) Quote
04-27-2008 , 11:29 PM
Yes, I will update it to support both HEM and PT3 (as well as the current PT2 support).
STOP LOSS AHK REQUEST (Reward) Quote
04-28-2008 , 01:53 AM
lol,

I know if I got close to the stop loss I would just exit the AHK
STOP LOSS AHK REQUEST (Reward) Quote
04-28-2008 , 02:28 AM
Quote:
Originally Posted by Schwallie
lol,

I know if I got close to the stop loss I would just exit the AHK
Just like my GreaseMonkey Invisibilty Cloak I use, to keep me from browsing 2+2 til after a certain time of day... I just right-click disable it.
STOP LOSS AHK REQUEST (Reward) Quote
04-28-2008 , 08:26 AM
this would be sick.
STOP LOSS AHK REQUEST (Reward) Quote
04-28-2008 , 09:40 AM
I asked for this same thing 3 months ago and people were like LOL DEGENAMENTS, GA MEETINGS ETC. Funny how opinion has changed.
STOP LOSS AHK REQUEST (Reward) Quote
04-28-2008 , 11:12 PM
Quote:
Originally Posted by _dave_
I will have this done for you tomorrow, if RVG checks his PMs...
He did, so here we are

Download this, extract to a folder.
http://www.overcards.com/wiki/moin.c...s-HEM_TEST.zip

You will need to copy/paste psql.exe (and maybe supportting DLL files) from C:\Program Files\PostgreSQL\8.2\bin - to the script's folder, so it can access databases.

You will need to edit the script with your screenname (sn) instead of mine (case sensitive I think). You may need to change your database name / host, if they are not default.

You may well want to adjust the loss / win / hand numbers also.

And you may need / want to set alternative sound effects.

Once you verify it is working properly, it is wise to turn off "show_money" - otherwise this can easy become a tilt magnifier!

All these settings are at the start of the script.

Please report success / failure, and I'll get to adding some more features
STOP LOSS AHK REQUEST (Reward) Quote
04-29-2008 , 10:08 AM
Thanks Dave!
I've been wanting to try out this script.
STOP LOSS AHK REQUEST (Reward) Quote
04-29-2008 , 12:11 PM
Couldn't get it working. Changed the database name, the screen name, and copied psql.exe and all dll files to the folder. The window that shows hands etc doesn't appear.
It keep writing files with this
Code:
\f '\t'
SELECT pokerhand_id FROM playerhandscashkeycolumns ORDER BY pokerhand_id DESC LIMIT 1;
\q
in my stoploss folder.
STOP LOSS AHK REQUEST (Reward) Quote
04-29-2008 , 05:21 PM
Quote:
Originally Posted by Dread Wings
Couldn't get it working. Changed the database name, the screen name, and copied psql.exe and all dll files to the folder. The window that shows hands etc doesn't appear.
It keep writing files with this
Code:
\f '\t'
SELECT pokerhand_id FROM playerhandscashkeycolumns ORDER BY pokerhand_id DESC LIMIT 1;
\q
in my stoploss folder.
Oops, I forgot to mention an important step, only required if you've never set up postgresql to allow "no password" access yet... this is required for any database-accessing scripts at this time, and is not a big security problem unless you don't trust your own computer.

The script is getting denied, since it does not know your postgresql password.


You must set the postgresql authentication mode for localhost (127.0.0.1) to "trust".

Do this:
Click: "Start -> Programs -> PostgreSQL 8.x -> Configuration files -> Edit pg_hba.conf"

It will open a notepad with some text.

Scroll all the way to the bottom, you should see a line reading this:
Code:
#IPv4 local connections:
host  all  all  127.0.0.1/32   md5
Edit the "md5" to "trust", no quotes. It should now read:

Code:
#IPv4 local connections:
host  all  all  127.0.0.1/32   trust
Save the pg_hba.conf file, and close notepad.

Click: "Start -> Programs -> PostgreSQL 8.x -> Reload configuration"


Now try script again, it should now work with any luck
STOP LOSS AHK REQUEST (Reward) Quote
04-29-2008 , 06:01 PM
OK it works now. I tested it out on the penny tables and in the window it said "money: $2.00" (brag). Does the script just round to whole dollars?
STOP LOSS AHK REQUEST (Reward) Quote
04-29-2008 , 06:14 PM
Quote:
Originally Posted by Dread Wings
OK it works now. I tested it out on the penny tables and in the window it said "money: $2.00" (brag). Does the script just round to whole dollars?
It might do, I think I've made a typo - it is supposed to round to cents

HEM confused me storing only cents in it's database AFAIK - ehrn I first tested I won $75 stealing the blinds at nl50, or so it claimed
STOP LOSS AHK REQUEST (Reward) Quote
04-29-2008 , 09:48 PM
I can get the box to show up but it stays blank and doesnt seem to be reading the tables. Any ideas how to fix?

In my error log its saying my database doesnt exist. I copied psgl.exe to the folder but I wasnt sure what else to copy.

Last edited by rzweig; 04-29-2008 at 09:56 PM.
STOP LOSS AHK REQUEST (Reward) Quote
04-29-2008 , 10:31 PM
Quote:
Originally Posted by rzweig
I copied psgl.exe to the folder but I wasnt sure what else to copy.
If it doesn't give you "missing DLL pop-ups, that is all you need copy - this part is fine

Quote:
In my error log its saying my database doesnt exist.
Check the name of your database in Holdem Manager's "database Management" window... Edit the script accordingly. This is case-sensitive.
STOP LOSS AHK REQUEST (Reward) Quote
04-29-2008 , 10:35 PM
Quote:
Originally Posted by _dave_
If it doesn't give you "missing DLL pop-ups, that is all you need copy - this part is fine



Check the name of your database in Holdem Manager's "database Management" window... Edit the script accordingly. This is case-sensitive.
Ok now I feel like an idiot for not reading the OP more closely to see that this was for holdem manager. I'm trying to use it with poker tracker.
STOP LOSS AHK REQUEST (Reward) Quote
04-29-2008 , 10:56 PM
Not updated for PT3 yet, the old version is good for PT2 however:

http://overcards.com/wiki/moin.cgi/StopLoss
STOP LOSS AHK REQUEST (Reward) Quote
04-29-2008 , 11:17 PM
Quote:
Originally Posted by _dave_
Not updated for PT3 yet, the old version is good for PT2 however:

http://overcards.com/wiki/moin.cgi/StopLoss
thanks Dave. I set that up but still nothing is showing up I cant figure out what I'm doing wrong.
STOP LOSS AHK REQUEST (Reward) Quote
06-14-2008 , 06:21 PM
I was poking around the overcards site and noticed that StopLoss had been modified to work with Holdem Manager. Any chance of getting it to work for PT3?
STOP LOSS AHK REQUEST (Reward) Quote
06-15-2008 , 04:20 AM
Dave, did you ever recieve the $200?
STOP LOSS AHK REQUEST (Reward) Quote
06-22-2008 , 06:59 AM
bump this is v useful.
STOP LOSS AHK REQUEST (Reward) Quote
06-26-2008 , 05:35 PM
Hello,

i have managed to get the script running as far as to show me the window. but it is not corresponding with the database.

the error logs are as follows:

20080626233048 - An Error Occured:

Input:
\f '\t'
SELECT COUNT(g.game_id) AS hc FROM game g, game_players gp WHERE g.game_id = gp.game_id AND gp.player_id = 8
39001 AND g.game_id > 717999;
\q


Output:
psql:20080626233048_stop_loss-v0.2.ahk_4094_in.txt:3: ERROR: syntax error at or near "39001"
LINE 2: 39001 AND g.game_id > 717999;
^




20080626233049 - An Error Occured:

Input:
\f '\t'
SELECT SUM(gp.total_won - gp.total_bet) AS net FROM game g, game_players gp WHERE g.game_id = gp.game_id AND gp.player_id = 8
39001 AND g.game_id > 717999;
\q


Output:
psql:20080626233048_stop_loss-v0.2.ahk_8526_in.txt:3: ERROR: syntax error at or near "39001"
LINE 2: 39001 AND g.game_id > 717999;
^

do you have any idea what i can do to set it up properly?

I run on Vista.

Regards
Andreas
STOP LOSS AHK REQUEST (Reward) Quote

      
m