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
  #31  
Old 08-01-2006, 01:38 AM
AceKQJT AceKQJT is offline
Senior Member
 
Join Date: Feb 2004
Location: Lake Charles, Louisiana
Posts: 522
Default Re: Chip Reloader (New AHK Script) (Reloads at Party and Stars)

Well, before I go to bed...
I placed the following code in to help me debug...

Starting with (Original) Line 180:
<font class="small">Code:</font><hr /><pre> WinGetPos, x, y, w, h, ahk_id%winID%
px := Floor((w/800) * 400)
py := Floor((h/573) * 80)
Casey_Var = winID is %winID% px is %px% and py is %py%
msgbox %Casey_Var% </pre><hr />

Then again under the CR_PostLeftClick sub:

<font class="small">Code:</font><hr /><pre> msgbox % "I am going to click here: " . ((y*65536)+x)
Postmessage 0x201, 0x0001, ((y*65536)+x), , ahk_id%table_id%
Postmessage 0x202, 0, ((y*65536)+x), , ahk_id%table_id% </pre><hr />

The values of those variables were:
winID = 0x2f01c0
px = 400
py = 80
&lt;&lt;Click Location&gt;&gt; = 5243280

Now if only I could correlate that location with my option button, I suppose I could fix this [img]/images/graemlins/frown.gif[/img]

--Casey
Reply With Quote
  #32  
Old 08-01-2006, 09:04 AM
YoureToast YoureToast is offline
Senior Member
 
Join Date: Nov 2002
Posts: 1,084
Default Re: Chip Reloader (New AHK Script) (Reloads at Party and Stars)

[ QUOTE ]
[ QUOTE ]
OK....out of curiosity, why is this? Is it difficult to detect what your stack size is?

[/ QUOTE ]

Yes, exactly. I had to get stack size from the hand history file, and that would make the numbers lag by three hands. It was too messy to handle the script "support", so I pulled the plug.

Adde

[/ QUOTE ]

Makes sense. Thx.
Reply With Quote
  #33  
Old 08-01-2006, 10:43 AM
Adde Adde is offline
Senior Member
 
Join Date: Oct 2002
Location: Sweden
Posts: 2,453
Default Re: Chip Reloader (New AHK Script) (Reloads at Party and Stars)

It seems like the clicking fails.

This test script will click every 10th pixel within 200-600 (x) and 0-200 (y). Open a full table, activate it and click F10 to test this out. If the options dialog is not opened (before the script ends, which is indicated by a sound beep), well, I don't know what the error is. If it does open, a message box will tell you what (x,y) were used. Replace coordinates (400,80) in ChipReloader with these.

Adde


F10::
gosub TestStars
return

TestStars:
SetTitleMatchMode, 2
WinGet, id, ID, A
x := 190
Loop, 40
{
x := x + 10
y := -10
Loop, 20
{
y := y + 10
CR_PostLeftClick(x, y, id)
sleep, 10
IfWinExist, Options, Add More Chips
{
msgbox x=%x% y=%y%
exit
}
}
}
soundbeep, , 100
return
Reply With Quote
  #34  
Old 08-01-2006, 06:14 PM
roo400 roo400 is offline
Senior Member
 
Join Date: Jul 2005
Posts: 1,102
Default Re: Chip Reloader (New AHK Script) (Reloads at Party and Stars)

[ QUOTE ]
[ QUOTE ]
I dont think the script is working properly for me on PS. It options the options menu but I need to manually choose the "Add More Chips" button for the script to complete.

[/ QUOTE ]

This is fixed now.

Adde

[/ QUOTE ]

It still doesn't work fine for me. I just recopied the latest version and I still need to press the chips tray for the command to complete.
Reply With Quote
  #35  
Old 08-01-2006, 07:01 PM
Adde Adde is offline
Senior Member
 
Join Date: Oct 2002
Location: Sweden
Posts: 2,453
Default Re: Chip Reloader (New AHK Script) (Reloads at Party and Stars)

[ QUOTE ]
It still doesn't work fine for me. I just recopied the latest version and I still need to press the chips tray for the command to complete.

[/ QUOTE ]

Have you tried the test script I posted just here above?

Adde
Reply With Quote
  #36  
Old 08-01-2006, 10:52 PM
AceKQJT AceKQJT is offline
Senior Member
 
Join Date: Feb 2004
Location: Lake Charles, Louisiana
Posts: 522
Default Re: Chip Reloader (New AHK Script) (Reloads at Party and Stars)

Weeeee! Works great! Ok, so here it is for folks who know nothing about coding (assuming you were having the same problem as I was):

Copy this script and save it as ImaDufas.ahk:
<font class="small">Code:</font><hr /><pre> F10::
gosub TestStars
return

TestStars:
SetTitleMatchMode, 2
WinGet, id, ID, A
x := 190
Loop, 40
{
x := x + 10
y := -10
Loop, 20
{
y := y + 10
CR_PostLeftClick(x, y, id)
sleep, 10
IfWinExist, Options, Add More Chips
{
msgbox x=%x% y=%y%
exit
}
}
}
soundbeep, , 100
return

CR_PostLeftClick(x, y, table_id)
{ ; ### JUK: Send the down left click, then the mouse-up messages.
; NOTE: This is relative to the top left of the client area and NOT the top left of the
; window (ie: It *doesn't* include the title-bar like AHK's MouseClick does!!!).
Postmessage 0x201, 0x0001, ((y*65536)+x), , ahk_id%table_id%
Postmessage 0x202, 0, ((y*65536)+x), , ahk_id%table_id%
}

</pre><hr />

Then double-click the file to run it

Next, open a table of your choice (you don't have to sit down at the table....it can be a full table....just open a table up of the game you play)

Then hit F10

After a brief period, the options window should open. At the same time, a message will pop up saying x= &lt;&lt;some number&gt;&gt; y= &lt;&lt;some number&gt;&gt;.

Now open the ChipReloader.ahk file for editting (use NotePad)

With the file open in Notepad, hit &lt;CTRL&gt;&lt;G&gt; to open the goto dialog.
Type in 180

Your cursor will be on a line that says:
<font class="small">Code:</font><hr /><pre> px := Floor((w/800) * 400) </pre><hr />
Change the 400 to whatever value x= &lt;&lt;some number&gt;&gt; was in the test.

The next line of code is:
<font class="small">Code:</font><hr /><pre> py := Floor((h/573) * 80) </pre><hr />

Change the 80 to whatever value x= &lt;&lt;some number&gt;&gt; was in the test.

Now save the file (ChipReloader.ahk), and run it. Everything should work out just fine.


BTW....My x &amp; y were 360 &amp; 40, respectively....

Casey

P.S. Thanks Adde, you sure went through a lot of trouble to help me be even more lazy...Casey

-------------------------Edit--------------------
I suppose that the Theme you are using on Stars could affect the XY location of the button, so for everyone else's sake, I'm using the "Hyper-Simple" theme (With a slight mod to the table foreground that I made. Hmm, I suppose I could attach that too. You may want to do something similar).



It just displays the odds for outs up to 12 when you have 1 card to come (top) or 2 cards to come (bottom). Board cards do cover it up some, but it works great 4-tabling. If you need more info on how to use it, just ask (most of you probably don't use silly stuff like this anyway).

Casey
Reply With Quote
  #37  
Old 08-02-2006, 08:24 PM
roo400 roo400 is offline
Senior Member
 
Join Date: Jul 2005
Posts: 1,102
Default Re: Chip Reloader (New AHK Script) (Reloads at Party and Stars)

[ QUOTE ]
Weeeee! Works great! Ok, so here it is for folks who know nothing about coding (assuming you were having the same problem as I was):

Copy this script and save it as ImaDufas.ahk:
<font class="small">Code:</font><hr /><pre> F10::
gosub TestStars
return

TestStars:
SetTitleMatchMode, 2
WinGet, id, ID, A
x := 190
Loop, 40
{
x := x + 10
y := -10
Loop, 20
{
y := y + 10
CR_PostLeftClick(x, y, id)
sleep, 10
IfWinExist, Options, Add More Chips
{
msgbox x=%x% y=%y%
exit
}
}
}
soundbeep, , 100
return

CR_PostLeftClick(x, y, table_id)
{ ; ### JUK: Send the down left click, then the mouse-up messages.
; NOTE: This is relative to the top left of the client area and NOT the top left of the
; window (ie: It *doesn't* include the title-bar like AHK's MouseClick does!!!).
Postmessage 0x201, 0x0001, ((y*65536)+x), , ahk_id%table_id%
Postmessage 0x202, 0, ((y*65536)+x), , ahk_id%table_id%
}

</pre><hr />

Then double-click the file to run it

Next, open a table of your choice (you don't have to sit down at the table....it can be a full table....just open a table up of the game you play)

Then hit F10

After a brief period, the options window should open. At the same time, a message will pop up saying x= &lt;&lt;some number&gt;&gt; y= &lt;&lt;some number&gt;&gt;.

Now open the ChipReloader.ahk file for editting (use NotePad)

With the file open in Notepad, hit &lt;CTRL&gt;&lt;G&gt; to open the goto dialog.
Type in 180

Your cursor will be on a line that says:
<font class="small">Code:</font><hr /><pre> px := Floor((w/800) * 400) </pre><hr />
Change the 400 to whatever value x= &lt;&lt;some number&gt;&gt; was in the test.

The next line of code is:
<font class="small">Code:</font><hr /><pre> py := Floor((h/573) * 80) </pre><hr />

Change the 80 to whatever value x= &lt;&lt;some number&gt;&gt; was in the test.

Now save the file (ChipReloader.ahk), and run it. Everything should work out just fine.


BTW....My x &amp; y were 360 &amp; 40, respectively....

Casey

P.S. Thanks Adde, you sure went through a lot of trouble to help me be even more lazy...Casey

-------------------------Edit--------------------
I suppose that the Theme you are using on Stars could affect the XY location of the button, so for everyone else's sake, I'm using the "Hyper-Simple" theme (With a slight mod to the table foreground that I made. Hmm, I suppose I could attach that too. You may want to do something similar).



It just displays the odds for outs up to 12 when you have 1 card to come (top) or 2 cards to come (bottom). Board cards do cover it up some, but it works great 4-tabling. If you need more info on how to use it, just ask (most of you probably don't use silly stuff like this anyway).

Casey

[/ QUOTE ]

Thx Adde and AceKQJT for helping me out with this. It works perfectly now on Stars. (x=360, y=40 for those interested). On Party though, if I have a table over the max buy in, a pop-up will appear saying that I have to enter a value over 0 and it will instantly open an Internet page to My Cashier so I can add chips.
Reply With Quote
  #38  
Old 08-02-2006, 08:29 PM
roo400 roo400 is offline
Senior Member
 
Join Date: Jul 2005
Posts: 1,102
Default Re: Chip Reloader (New AHK Script) (Reloads at Party and Stars)

Never mind boys. It all works perfectly on Party and Stars. I love you Adde.
Reply With Quote
  #39  
Old 08-04-2006, 11:50 AM
gswarriorfan gswarriorfan is offline
Senior Member
 
Join Date: Jul 2005
Location: P-Town
Posts: 227
Default Re: Chip Reloader (New AHK Script) (Reloads at Party and Stars)

loving the script
Reply With Quote
  #40  
Old 08-20-2006, 08:46 PM
Jehaim Jehaim is offline
Senior Member
 
Join Date: Nov 2005
Location: His love is everlasting
Posts: 3,375
Default Re: Chip Reloader (New AHK Script) (Reloads at Party and Stars)

Hi, can this script be adjusted so that you reload to 20-BB? [img]/images/graemlins/cool.gif[/img]
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:20 AM.


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