View Single Post
  #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