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

10-30-2009 , 07:41 AM
Quote:
Originally Posted by Weegs
Now I'm lost, it still finds multiple Ids. Could you copy paste the whole script here so I can take a look? Wrap CODE tags around it so it doesn't fill the whole page. We'll get this thing to work
thanks,weegs!

; StopLoss / StopWin / Handcounter
; by _dave_ on 2p2 forums


; ------------- SETTINGS -----------------------------

sn := "shunshixia"
database_name := "HoldemManager" ; <-- change db name if needed
host_address := "127.0.0.1" ; <-- change db host if needed

;sql := "SELECT player_id from players WHERE playername = '" . sn . "';"
pt_id := 53779

stop_loss := 2
stop_win := 2
hand_goal := 30
show_money := 1
show_vpp := 0

stop_loss_sound_effect := "E:\music\junhao.wav"
stop_win_sound_effect := "E:\music\junhao.wav"
hand_goal_sound_effect := "E:\music\junhao.wav"

; ------------- END SETTINGS ------------------------



#NoEnv
#SingleInstance, Force
SendMode Input

FileGetSize, loss_sound, %stop_loss_sound_effect%
if (!loss_sound)
{
Msgbox, stop_loss_sound_effect is not found - please edit script settings
}
FileGetSize, loss_sound, %stop_win_sound_effect%
if (!loss_sound)
{
Msgbox, stop_win_sound_effect is not found - please edit script settings
}
FileGetSize, loss_sound, %hand_goal_sound_effect%
if (!loss_sound)
{
Msgbox, hand_goal_sound_effect is not found - please edit script settings
}



name_version := "Stop Loss - HEM TEST (by _dave_)"

FileGetSize, psqlexe, psql.exe
if (!psqlexe)
{
MsgBox, psql.exe not found!`n`nPlease copy/paste psql.exe from %A_ProgramFiles%\PostgreSQL\8.x\bin to %A_ScriptDir%,`nor add %A_ProgramFiles%\PostgreSQL\8.x\bin to the system $PATH variable.
exit
}

;start_handcounter := 0
;handpcnt := 0
;sql := "SELECT pokerhand_id FROM playerhandscashkeycolumns ORDER BY pokerhand_id DESC LIMIT 1;"
;start_handcounter := psql(sql)
GoSub, resetcount

;Msgbox %start_handcounter%
Gui, 2:Font, bold , Courier
Gui, 2:Add, Text, w170 vhandcount, Hands: 0
;Menu, Tray, Add, Reset, resetcount
if (show_money)
{
Gui, 2:Add, Text, w170 vnetprofits , Money: $0
}
if (show_vpp)
{
Gui, 2:Add, Text, w170 vnetvpp , VPP: 0
}
Gui, 2:Show, w170, %name_version%

SetTimer, track, 15000
;SetTimer, track, Off

return

resetcount:
start_handcounter := 0
handpcnt := 0
sql := "SELECT pokerhand_id FROM playerhandscashkeycolumns ORDER BY pokerhand_id DESC LIMIT 1;"
start_handcounter := psql(sql)
return

track:
;Msgbox, %sn%
sql := "SELECT player_id from players WHERE playername = '" . sn . "';"
pt_id := psql(sql)

;Msgbox, Found player_id for %sn%: %pt_id%

sql := "SELECT COUNT(phckc.pokerhand_id) AS hc FROM playerhandscashkeycolumns phckc WHERE phckc.player_id = " . pt_id . " AND phckc.pokerhand_id > " . start_handcounter . ";"
hc := psql(sql)
info := "Hands: " . hc
GuiControl, 2:,handcount, %info%
;Msgbox, hc: %hc%

;if (show_money || stop_loss > 0 || stop_win > 0)
;{
sql := "SELECT ROUND(SUM((phckc.netamountwon)))/100 AS net FROM playerhandscashkeycolumns phckc WHERE phckc.player_id = " . pt_id . " AND phckc.pokerhand_id > " . start_handcounter . ";"
net := psql(sql)
info := "Money: $" . net
GuiControl, 2:,netprofits, %info%
;Msgbox, net: %net%
;}

/*
if (show_vpp)
{
sql := "SELECT COUNT(phckc.pokerhand_id) AS hc FROM playerhandscashkeycolumns phckc WHERE phckc.rakeamount > 0.39 AND g.game_id = gp.game_id AND gp.player_id = " . pt_id . " AND g.game_id > " . start_handcounter . ";"
vpp := psql(sql)

sql := "SELECT COUNT(phckc.pokerhand_id) AS hc FROM playerhandscashkeycolumns phckc WHERE phckc.rakeamount > 2 AND g.number_of_players <= 5 AND g.game_id = gp.game_id AND gp.player_id = " . pt_id . " AND g.game_id > " . start_handcounter . ";"
vpp2 := psql(sql)

sql := "SELECT COUNT(phckc.pokerhand_id) AS hc FROM playerhandscashkeycolumns phckc WHERE phckc.rakeamount = 3 AND g.number_of_players = 6 AND g.game_id = gp.game_id AND gp.player_id = " . pt_id . " AND g.game_id > " . start_handcounter . ";"
vpp3 := psql(sql)

vpp := vpp + vpp2 + vpp3

info := "VPP: " . vpp


GuiControl, 2:,netvpp, %info%
}
*/

; update titlebar
if (hc > 1)
{
handpcnt := Round((hc / hand_goal)*100, 1)
Gui, 2:Show, NA,%handpcnt%`%`, %hc% Hands Played
}

;check win/loss/goal
if (hc > 1)
{
if (stop_loss > 0)
{
if (net < (stop_loss*-1))
{
TrayTip, STOP LOSS!, Losing too much!`n`nQUIT NOW!
if (StrLen(stop_loss_sound_effect)>1)
{
FileGetSize, loss_sound, %stop_loss_sound_effect%
if (loss_sound)
{
SoundPlay, %stop_loss_sound_effect%
}
}
return
}
}
if (stop_win > 0)
{
if (net > stop_win)
{
TrayTip, STOP WIN!, You have won enough for today!`n`nCongratulations!
if (StrLen(stop_win_sound_effect)>1)
{
FileGetSize, win_sound, %stop_win_sound_effect%
if (win_sound)
{
SoundPlay, %stop_win_sound_effect%
}
}
return
}
}

if (hc > hand_goal)
{
TrayTip, Hand Goal Completed!, Goal: %hand_goal%`nPlayed: %hc%
if (StrLen(hand_goal_sound_effect)>1)
{
FileGetSize, hand_sound, %hand_goal_sound_effect%
if (hand_sound)
{
SoundPlay, %hand_goal_sound_effect%
}
}
}
}

return

; ----------------------------------------------------------------------------
;
; >>>>----- WARNING - READ ALL OF THIS !!! -----<<<<
;
; THERE ARE NO GUARANTEES MADE BY THE AUTHOR OF THIS SCRIPT !!!
;
; USERS ARE EXPECTED TO KNOW WHAT THEY ARE DOING WITH A DATABASE / SQL !!!
;
; ALWAYS MAINTAIN AN UP-TO-DATE BACKUP OF ANY DATABASES YOU VALUE !!!
;
; SQL CAN BE DANGEROUS TO YOUR DATA - BE AWARE OF WHAT YOU ARE DOING !!!
;
; ----------------------------------------------------------------------------
;
; Include this funtion in your AHK scripts to query a PostgreSQL database
; (e.g. PokerTracker databases) and you can use PT data within AHK
;
; Result sets are returned as tab seperated feilds, new-line seperated rows,
; similar to the result of a "ControlGet, List" command. Therefore should be
; easy to process using "Loop, Parse" commands etc.
;
;
; For this to work at all, the PostgreSQL "psql.exe" executable must be
; available to the system. Generally you will need to add the PostgreSQL bin
; folder to the system $PATH environment variable. This is normally:
; "C:\Program Files\PostgreSQL\8.0\bin" on a default install of PostgreSQL.
;
; You can add PostgreSQL to your system's $PATH by the following procedure:
; - Right Click "My Computer"
; - Choose "Properties"
; - Choose "Advanced"
; - Hit "Environment Variables"
; - Select "Path" in the "System Variables" section
; - Hit "Edit"
; - Paste ";C:\Program Files\PostgreSQL\8.0\bin" on the end of "Variable Value"
; - NOTE THE LEADING ; SIGN. Do not paste the "quotes"
; - Hit "OK", Hit "OK", Hit "APPLY", Hit "OK"
; - Reboot the computer
;
; With any luck the above is not necessary - a default installation of Postgres
; does this by itself I think.
;
; You can test if you need to do this by typing "psql" at a DOS command prompt.
; If it works, great. If it errors, you will need to do the above procedure.
;
;
; ----------------------------------------------------------------------------
;
; _______ psql() FUNCCTION ARGUMENTS: _______
;
; sql (REQUIRED): The SQL statement to be executed
;
; database (OPTIONAL): The Postgres database name to be queried.
; If not set, the PokerTracker default "PTPGSQL1" is used.
;
; debug (OPTIONAL): Can be set 0 (zero) or 1 (one). If not set, defaults to zero.
;
; If enabled (1), anny error from the psql command will be
; displayed in a Msgbox, and execution of the calling script
; will be terminated. Useful for experiments with SQL commands.
;
; If zero, errors will be appended to a text file, named after
; the the calling script. Execution of the calling script will
; continue, albeit with no result returned for the function
; call that resulted in the error. Useful when a working script
; may occasionally generate a faulty SQL statement.
;
; host (OPTIONAL): The IP address of the PostgreSQL server to be queried.
; Defaults to "localhost" - same machine as is running the script.
;
; username (optional): Username to connect to the database as. Defaults to the
; superuser, "postgres". This is



psql(sql="", database="", debug=0, host="", username="")
{
global database_name, host_address
; set default values below if you want to use different all the time
if (database = "")
{
if (database_name)
{
database := database_name
}
else
{
database := "PTPGSQL1"
}
}

if (host = "")
{
if (host_address)
{
host := host_address
}
else
{
host := "localhost"
}
}

if (username = "")
{
username := "postgres"
}

; END default value section

stamp = %A_Now%
Random, r, 1000, 9999

file1 := stamp . "_" . A_ScriptName . "_" . r . "_in.txt"
file2 := stamp . "_" . A_ScriptName . "_" . r . "_out.txt"
file3 := stamp . "_" . A_ScriptName . "_" . r . "_error.txt"

command := "psql.exe -A -t -h " . host . " -p 5432 -U " . username . " -d """ . database . """ -f " . file1 . " -o " . file2 . " 2> " . file3 ; . " 2>&1"
;Msgbox, %command%

FileDelete, %file1%
FileDelete, %file2%
FileDelete, %file3%

FileAppend, \f '\t'`n, %file1%
FileAppend, %sql%`n, %file1%
FileAppend, \q`n, %file1%

RunWait, %comspec% /c %command%, , Hide

FileGetSize, errorsize, %file3%

If (errorsize > 0)
{
FileRead, errortext, %File3%
FileRead, errorcause, %File1%

FileDelete, %file1%
FileDelete, %file2%
FileDelete, %file3%

if (debug)
{
Msgbox, %errorcause%`n`n`n%errortext%
ExitApp
}
else
{
FileAppend, %A_Now% - An Error Occured:`n`nInput:`n%errorcause%`n`nOutput:`n%erro rtext%`n`n`n`n, %A_Scriptname%_Error_Log.txt
}
}

FileRead, sqlout, %File2%

FileDelete, %file1%
FileDelete, %file2%
FileDelete, %file3%

StringTrimRight, sqlout, sqlout, 2
return %sqlout%

}
STOP LOSS AHK REQUEST (Reward) Quote
10-30-2009 , 04:05 PM
OK, I think it'll work now. You might still have to try those other IDs.
Code:
; StopLoss / StopWin / Handcounter
; by _dave_ on 2p2 forums


; ------------- SETTINGS -----------------------------

sn := "shunshixia"
database_name := "HoldemManager" ; <-- change db name if needed
host_address := "127.0.0.1" ; <-- change db host if needed

pt_id := 53779 ; <-- change ID if needed

stop_loss := 2
stop_win := 2
hand_goal := 30
show_money := 1
show_vpp := 0

stop_loss_sound_effect := "E:\music\junhao.wav"
stop_win_sound_effect := "E:\music\junhao.wav"
hand_goal_sound_effect := "E:\music\junhao.wav"

; ------------- END SETTINGS ------------------------



#NoEnv
#SingleInstance, Force
SendMode Input

FileGetSize, loss_sound, %stop_loss_sound_effect%
if (!loss_sound)
{
Msgbox, stop_loss_sound_effect is not found - please edit script settings
}
FileGetSize, loss_sound, %stop_win_sound_effect%
if (!loss_sound)
{
Msgbox, stop_win_sound_effect is not found - please edit script settings
}
FileGetSize, loss_sound, %hand_goal_sound_effect%
if (!loss_sound)
{
Msgbox, hand_goal_sound_effect is not found - please edit script settings
}



name_version := "Stop Loss - HEM TEST (by _dave_)"

FileGetSize, psqlexe, psql.exe
if (!psqlexe)
{
MsgBox, psql.exe not found!`n`nPlease copy/paste psql.exe from %A_ProgramFiles%\PostgreSQL\8.x\bin to %A_ScriptDir%,`nor add %A_ProgramFiles%\PostgreSQL\8.x\bin to the system $PATH variable.
exit
}

;start_handcounter := 0
;handpcnt := 0
;sql := "SELECT pokerhand_id FROM playerhandscashkeycolumns ORDER BY pokerhand_id DESC LIMIT 1;"
;start_handcounter := psql(sql)
GoSub, resetcount

;Msgbox %start_handcounter%
Gui, 2:Font, bold , Courier
Gui, 2:Add, Text, w170 vhandcount, Hands: 0
;Menu, Tray, Add, Reset, resetcount
if (show_money)
{
Gui, 2:Add, Text, w170 vnetprofits , Money: $0
}
if (show_vpp)
{
Gui, 2:Add, Text, w170 vnetvpp , VPP: 0
}
Gui, 2:Show, w170, %name_version%

SetTimer, track, 15000
;SetTimer, track, Off

return

resetcount:
start_handcounter := 0
handpcnt := 0
sql := "SELECT pokerhand_id FROM playerhandscashkeycolumns ORDER BY pokerhand_id DESC LIMIT 1;"
start_handcounter := psql(sql)
return

track:
;Msgbox, %sn%
;Msgbox, Found player_id for %sn%: %pt_id%

sql := "SELECT COUNT(phckc.pokerhand_id) AS hc FROM playerhandscashkeycolumns phckc WHERE phckc.player_id = " . pt_id . " AND phckc.pokerhand_id > " . start_handcounter . ";"
hc := psql(sql)
info := "Hands: " . hc
GuiControl, 2:,handcount, %info%
;Msgbox, hc: %hc%

;if (show_money || stop_loss > 0 || stop_win > 0)
;{
sql := "SELECT ROUND(SUM((phckc.netamountwon)))/100 AS net FROM playerhandscashkeycolumns phckc WHERE phckc.player_id = " . pt_id . " AND phckc.pokerhand_id > " . start_handcounter . ";"
net := psql(sql)
info := "Money: $" . net
GuiControl, 2:,netprofits, %info%
;Msgbox, net: %net%
;}

/*
if (show_vpp)
{
sql := "SELECT COUNT(phckc.pokerhand_id) AS hc FROM playerhandscashkeycolumns phckc WHERE phckc.rakeamount > 0.39 AND g.game_id = gp.game_id AND gp.player_id = " . pt_id . " AND g.game_id > " . start_handcounter . ";"
vpp := psql(sql)

sql := "SELECT COUNT(phckc.pokerhand_id) AS hc FROM playerhandscashkeycolumns phckc WHERE phckc.rakeamount > 2 AND g.number_of_players <= 5 AND g.game_id = gp.game_id AND gp.player_id = " . pt_id . " AND g.game_id > " . start_handcounter . ";"
vpp2 := psql(sql)

sql := "SELECT COUNT(phckc.pokerhand_id) AS hc FROM playerhandscashkeycolumns phckc WHERE phckc.rakeamount = 3 AND g.number_of_players = 6 AND g.game_id = gp.game_id AND gp.player_id = " . pt_id . " AND g.game_id > " . start_handcounter . ";"
vpp3 := psql(sql)

vpp := vpp + vpp2 + vpp3

info := "VPP: " . vpp


GuiControl, 2:,netvpp, %info%
}
*/

; update titlebar
if (hc > 1)
{
handpcnt := Round((hc / hand_goal)*100, 1)
Gui, 2:Show, NA,%handpcnt%`%`, %hc% Hands Played
}

;check win/loss/goal
if (hc > 1)
{
if (stop_loss > 0)
{
if (net < (stop_loss*-1))
{
TrayTip, STOP LOSS!, Losing too much!`n`nQUIT NOW!
if (StrLen(stop_loss_sound_effect)>1)
{
FileGetSize, loss_sound, %stop_loss_sound_effect%
if (loss_sound)
{
SoundPlay, %stop_loss_sound_effect%
}
}
return
}
}
if (stop_win > 0)
{
if (net > stop_win)
{
TrayTip, STOP WIN!, You have won enough for today!`n`nCongratulations!
if (StrLen(stop_win_sound_effect)>1)
{
FileGetSize, win_sound, %stop_win_sound_effect%
if (win_sound)
{
SoundPlay, %stop_win_sound_effect%
}
}
return
}
}

if (hc > hand_goal)
{
TrayTip, Hand Goal Completed!, Goal: %hand_goal%`nPlayed: %hc%
if (StrLen(hand_goal_sound_effect)>1)
{
FileGetSize, hand_sound, %hand_goal_sound_effect%
if (hand_sound)
{
SoundPlay, %hand_goal_sound_effect%
}
}
}
}

return

; ----------------------------------------------------------------------------
;
; >>>>----- WARNING - READ ALL OF THIS !!! -----<<<<
;
; THERE ARE NO GUARANTEES MADE BY THE AUTHOR OF THIS SCRIPT !!!
;
; USERS ARE EXPECTED TO KNOW WHAT THEY ARE DOING WITH A DATABASE / SQL !!!
;
; ALWAYS MAINTAIN AN UP-TO-DATE BACKUP OF ANY DATABASES YOU VALUE !!!
;
; SQL CAN BE DANGEROUS TO YOUR DATA - BE AWARE OF WHAT YOU ARE DOING !!!
;
; ----------------------------------------------------------------------------
;
; Include this funtion in your AHK scripts to query a PostgreSQL database
; (e.g. PokerTracker databases) and you can use PT data within AHK
;
; Result sets are returned as tab seperated feilds, new-line seperated rows,
; similar to the result of a "ControlGet, List" command. Therefore should be
; easy to process using "Loop, Parse" commands etc.
;
;
; For this to work at all, the PostgreSQL "psql.exe" executable must be
; available to the system. Generally you will need to add the PostgreSQL bin
; folder to the system $PATH environment variable. This is normally:
; "C:\Program Files\PostgreSQL\8.0\bin" on a default install of PostgreSQL.
;
; You can add PostgreSQL to your system's $PATH by the following procedure:
; - Right Click "My Computer"
; - Choose "Properties"
; - Choose "Advanced"
; - Hit "Environment Variables"
; - Select "Path" in the "System Variables" section
; - Hit "Edit"
; - Paste ";C:\Program Files\PostgreSQL\8.0\bin" on the end of "Variable Value"
; - NOTE THE LEADING ; SIGN. Do not paste the "quotes"
; - Hit "OK", Hit "OK", Hit "APPLY", Hit "OK"
; - Reboot the computer
;
; With any luck the above is not necessary - a default installation of Postgres
; does this by itself I think.
;
; You can test if you need to do this by typing "psql" at a DOS command prompt.
; If it works, great. If it errors, you will need to do the above procedure.
;
;
; ----------------------------------------------------------------------------
;
; _______ psql() FUNCCTION ARGUMENTS: _______
;
; sql (REQUIRED): The SQL statement to be executed
;
; database (OPTIONAL): The Postgres database name to be queried.
; If not set, the PokerTracker default "PTPGSQL1" is used.
;
; debug (OPTIONAL): Can be set 0 (zero) or 1 (one). If not set, defaults to zero.
;
; If enabled (1), anny error from the psql command will be
; displayed in a Msgbox, and execution of the calling script
; will be terminated. Useful for experiments with SQL commands.
;
; If zero, errors will be appended to a text file, named after
; the the calling script. Execution of the calling script will
; continue, albeit with no result returned for the function
; call that resulted in the error. Useful when a working script
; may occasionally generate a faulty SQL statement.
;
; host (OPTIONAL): The IP address of the PostgreSQL server to be queried.
; Defaults to "localhost" - same machine as is running the script.
;
; username (optional): Username to connect to the database as. Defaults to the
; superuser, "postgres". This is



psql(sql="", database="", debug=0, host="", username="")
{
global database_name, host_address
; set default values below if you want to use different all the time
if (database = "")
{
if (database_name)
{
database := database_name
}
else
{
database := "PTPGSQL1"
}
}

if (host = "")
{
if (host_address)
{
host := host_address
}
else
{
host := "localhost"
}
}

if (username = "")
{
username := "postgres"
}

; END default value section

stamp = %A_Now%
Random, r, 1000, 9999

file1 := stamp . "_" . A_ScriptName . "_" . r . "_in.txt"
file2 := stamp . "_" . A_ScriptName . "_" . r . "_out.txt"
file3 := stamp . "_" . A_ScriptName . "_" . r . "_error.txt"

command := "psql.exe -A -t -h " . host . " -p 5432 -U " . username . " -d """ . database . """ -f " . file1 . " -o " . file2 . " 2> " . file3 ; . " 2>&1"
;Msgbox, %command%

FileDelete, %file1%
FileDelete, %file2%
FileDelete, %file3%

FileAppend, \f '\t'`n, %file1%
FileAppend, %sql%`n, %file1%
FileAppend, \q`n, %file1%

RunWait, %comspec% /c %command%, , Hide

FileGetSize, errorsize, %file3%

If (errorsize > 0)
{
FileRead, errortext, %File3%
FileRead, errorcause, %File1%

FileDelete, %file1%
FileDelete, %file2%
FileDelete, %file3%

if (debug)
{
Msgbox, %errorcause%`n`n`n%errortext%
ExitApp
}
else
{
FileAppend, %A_Now% - An Error Occured:`n`nInput:`n%errorcause%`n`nOutput:`n%erro rtext%`n`n`n`n, %A_Scriptname%_Error_Log.txt
}
}

FileRead, sqlout, %File2%

FileDelete, %file1%
FileDelete, %file2%
FileDelete, %file3%

StringTrimRight, sqlout, sqlout, 2
return %sqlout%

}
STOP LOSS AHK REQUEST (Reward) Quote
10-31-2009 , 01:34 AM
oh,yes!
it works!weegs,you are my hero!thank you so much!you are so kind and patient.sorry for my poor english,don't know how to express my thanks!
also,thank _dave_ ,MinusEV! you are all so kind!

Last edited by tuliplife; 10-31-2009 at 02:01 AM.
STOP LOSS AHK REQUEST (Reward) Quote
12-19-2009 , 03:27 PM
could be put in another option?

hands / hour

Thx
STOP LOSS AHK REQUEST (Reward) Quote
02-15-2010 , 04:45 AM
im not getting any errors, using windows 7 latest hem, installed everything correctly ( i hope) just not updating anything now, what did i do wrong?
STOP LOSS AHK REQUEST (Reward) Quote
02-15-2010 , 05:30 AM
these are the error msgs in the log files. it seems to start right but the zero numbers in hands and money disappear but no amounts register for hands nor money and vpp counts





20100215173125 - An Error Occured:

Input:
\f '\t'
SELECT pokerhand_id FROM playerhandscashkeycolumns ORDER BY pokerhand_id DESC LIMIT 1;
\q


Output:
psql: warning: extra command-line argument "postgres" ignored
psql: warning: extra command-line argument "-d" ignored
psql: warning: extra command-line argument "HoldemManager" ignored
psql: warning: extra command-line argument "-f" ignored
psql: warning: extra command-line argument "20100215173123_stop_loss-v0.2.ahk_7201_in.txt" ignored
psql: warning: extra command-line argument "-o" ignored
psql: warning: extra command-line argument "20100215173123_stop_loss-v0.2.ahk_7201_out.txt" ignored
psql: could not translate host name "-p" to address: Unknown server error




20100215173143 - An Error Occured:

Input:
\f '\t'
SELECT player_id from players WHERE playername = 'pcboi';
\q


Output:
psql: warning: extra command-line argument "postgres" ignored
psql: warning: extra command-line argument "-d" ignored
psql: warning: extra command-line argument "HoldemManager" ignored
psql: warning: extra command-line argument "-f" ignored
psql: warning: extra command-line argument "20100215173140_stop_loss-v0.2.ahk_4902_in.txt" ignored
psql: warning: extra command-line argument "-o" ignored
psql: warning: extra command-line argument "20100215173140_stop_loss-v0.2.ahk_4902_out.txt" ignored
psql: could not translate host name "-p" to address: Unknown server error




20100215173146 - An Error Occured:

Input:
\f '\t'
SELECT COUNT(phckc.pokerhand_id) AS hc FROM playerhandscashkeycolumns phckc WHERE phckc.player_id = AND phckc.pokerhand_id > ;
\q


Output:
psql: warning: extra command-line argument "postgres" ignored
psql: warning: extra command-line argument "-d" ignored
psql: warning: extra command-line argument "HoldemManager" ignored
psql: warning: extra command-line argument "-f" ignored
psql: warning: extra command-line argument "20100215173143_stop_loss-v0.2.ahk_6583_in.txt" ignored
psql: warning: extra command-line argument "-o" ignored
psql: warning: extra command-line argument "20100215173143_stop_loss-v0.2.ahk_6583_out.txt" ignored
psql: could not translate host name "-p" to address: Unknown server error




20100215173148 - An Error Occured:

Input:
\f '\t'
SELECT ROUND(SUM((phckc.netamountwon)))/100 AS net FROM playerhandscashkeycolumns phckc WHERE phckc.player_id = AND phckc.pokerhand_id > ;
\q


Output:
psql: warning: extra command-line argument "postgres" ignored
psql: warning: extra command-line argument "-d" ignored
psql: warning: extra command-line argument "HoldemManager" ignored
psql: warning: extra command-line argument "-f" ignored
psql: warning: extra command-line argument "20100215173146_stop_loss-v0.2.ahk_6087_in.txt" ignored
psql: warning: extra command-line argument "-o" ignored
psql: warning: extra command-line argument "20100215173146_stop_loss-v0.2.ahk_6087_out.txt" ignored
psql: could not translate host name "-p" to address: Unknown server error
STOP LOSS AHK REQUEST (Reward) Quote
05-08-2010 , 09:07 AM
i hope someone gets the vpps working in hem version, everything works for me except that one
STOP LOSS AHK REQUEST (Reward) Quote
05-20-2010 , 08:28 AM
sql := "SELECT ROUND(SUM((phckc.netamountwon)))/100 AS net FROM playerhandscashkeycolumns phckc WHERE phckc.player_id = " . pt_id . " AND phckc.pokerhand_id > " . start_handcounter . ";"
net := psql(sql)
info := "" . net

how do i change this so i get sdw and nsdw's ?
ty
STOP LOSS AHK REQUEST (Reward) Quote
06-21-2010 , 10:57 AM
Can someone help me out

Im trying to get the stop-loss hem.ahk working.I have everything going with no errors but doesnt seem to be working.I changed the sounds,added the dll's,changed screename,etc.Before I added the dlls I would get an error telling me to do so but the litte box with money and hands would still pop up for the table.After I copied and pasted all the dll's I got no more errors but the box would never pop up again with the money and hands again.Dont know if its working and Im just missing something minor or what.I set the hands and won/loss to like 3 aswellto test it out.Dont know what else to do.

Can someone help me out pleaseeeeeeeeeeeeeeeeee
STOP LOSS AHK REQUEST (Reward) Quote
06-24-2010 , 08:10 AM
Is this script still working ?

I am trying to use it, but i get a file with a lot of errors ...
STOP LOSS AHK REQUEST (Reward) Quote
09-15-2010 , 09:55 PM
Lol, I think I spent like almost a day on getting the script to work, then realised that I needed to go to the attachments page to get the latest version.

Thx _Dave_, Fozz and Weegs for helping.
STOP LOSS AHK REQUEST (Reward) Quote
12-07-2010 , 02:50 PM
i was just wondering can one use ahk script for play on 888 poker? also can you use it to play at two small sites at same time?
STOP LOSS AHK REQUEST (Reward) Quote
03-05-2011 , 06:33 AM
Hey folks. I'm wondering myself if this script is still working or is _DAve_ still develop it in someway? If no I'm willing to pay for a new working one
STOP LOSS AHK REQUEST (Reward) Quote
03-05-2011 , 07:51 PM
no reason why it shouldn't still be working imo.
STOP LOSS AHK REQUEST (Reward) Quote
04-06-2011 , 04:19 PM
Idk about you guys, but I can't access the website to download anymore. The versions posted here aren't working for me either.
STOP LOSS AHK REQUEST (Reward) Quote
04-07-2011 , 03:07 PM
If anyone could post up working code for HEM it'd be greatly appreciated.
STOP LOSS AHK REQUEST (Reward) Quote
09-27-2011 , 05:35 PM
Does anyone have the code for this anymore? The overcards links aren't working for me
STOP LOSS AHK REQUEST (Reward) Quote
09-27-2011 , 06:14 PM
OK, copied one of the scripts from further up the page, when I run the script though it is coming up with the following error:

Error at line 1.

Line Text: StopLoss/Stopwin/Handcounter
Error: This line does not contain a recognized action

Program will exit.

Any ideas how to fix this??
STOP LOSS AHK REQUEST (Reward) Quote
09-27-2011 , 06:24 PM
I think i have been trying to use a pt3 version Is there anyone who has the HEM version of this script by any chance?
STOP LOSS AHK REQUEST (Reward) Quote
10-01-2011 , 09:42 PM
I need an anti tilt software bad. I used to have one until I had to move to the Merge network. Nothing works there at the moment.
STOP LOSS AHK REQUEST (Reward) Quote
04-10-2013 , 06:22 AM
Quote:
Originally Posted by Ezzalor
Lol, I think I spent like almost a day on getting the script to work, then realised that I needed to go to the attachments page to get the latest version.
pls, what attachments page do you refer to?
i tried to run code from page 12, it runs without errors (after editing settings) but still getting Hands: 0 Money: $ window and the numbers are not changing.

anyone?
STOP LOSS AHK REQUEST (Reward) Quote
04-10-2013 , 07:58 AM
ok, nevermind, looks like script is obsolete to use with latest HEM versions, but I digged this working alternative (tried with HEM1):

ValueCheck (Stop Loss tool) http://forumserver.twoplustwo.com/16...-tool-1017188/
STOP LOSS AHK REQUEST (Reward) Quote

      
m