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
  #41  
Old 05-12-2006, 03:55 AM
Roland Roland is offline
Senior Member
 
Join Date: Mar 2005
Location: Norwich, UK
Posts: 2,703
Default Re: A pretty short AHK script I made - Fastest NL script i\'ve tried

[ QUOTE ]
The 1/2 SB increments works now, but the 1/2 pot and pot sized bets don't seem to be working. for me it does + 1/2 SB for up and left, and - 1/2 SB for down and right. is there an option or config that i need to change for it to work properly?


[/ QUOTE ]

You're talking about TableNavigator, right? What site are you playing on?
Reply With Quote
  #42  
Old 05-12-2006, 04:19 AM
pfkaok pfkaok is offline
Senior Member
 
Join Date: May 2004
Location: Walnut Creek, CA
Posts: 2,226
Default Re: A pretty short AHK script I made - Fastest NL script i\'ve tried

[ QUOTE ]
[ QUOTE ]
The 1/2 SB increments works now, but the 1/2 pot and pot sized bets don't seem to be working. for me it does + 1/2 SB for up and left, and - 1/2 SB for down and right. is there an option or config that i need to change for it to work properly?


[/ QUOTE ]

You're talking about TableNavigator, right? What site are you playing on?

[/ QUOTE ]

yeah, for TN. I'm playing at Party.
Reply With Quote
  #43  
Old 05-12-2006, 04:25 AM
Roland Roland is offline
Senior Member
 
Join Date: Mar 2005
Location: Norwich, UK
Posts: 2,703
Default Re: A pretty short AHK script I made - Fastest NL script i\'ve tried

[ QUOTE ]

yeah, for TN. I'm playing at Party.


[/ QUOTE ]

You have to select "No player chat". Maybe that is the problem?
Reply With Quote
  #44  
Old 05-12-2006, 05:50 AM
pfkaok pfkaok is offline
Senior Member
 
Join Date: May 2004
Location: Walnut Creek, CA
Posts: 2,226
Default Re: A pretty short AHK script I made - Fastest NL script i\'ve tried

i don't know. i just tried doing it with "no player chat", and it still is the same... only 1/2 SB.
Reply With Quote
  #45  
Old 05-12-2006, 11:29 AM
Roland Roland is offline
Senior Member
 
Join Date: Mar 2005
Location: Norwich, UK
Posts: 2,703
Default Re: A pretty short AHK script I made - Fastest NL script i\'ve tried

Hmm. Ring game or SNG? If ring game, what limit?
Reply With Quote
  #46  
Old 05-15-2006, 11:42 PM
TheIrishThug TheIrishThug is offline
Senior Member
 
Join Date: Jan 2005
Location: Belligerent and numerous
Posts: 1,819
Default Re: A pretty short AHK script I made - Fastest NL script i\'ve tried

Roland,
Could you add in Absolute support?
Reply With Quote
  #47  
Old 05-16-2006, 09:32 AM
Roland Roland is offline
Senior Member
 
Join Date: Mar 2005
Location: Norwich, UK
Posts: 2,703
Default Re: A pretty short AHK script I made - Fastest NL script i\'ve tried

[ QUOTE ]
Roland,
Could you add in Absolute support?

[/ QUOTE ]

Well, sort of. Absolute doesn't use an edit control though (or any other type of control AHK can see), so we'll have to use ImageSearch. Have a look at this post please.
Basically the code below works the same way, only it uses the shades of variation mode of ImageSearch because of the background. (Therefore it shouldn't matter from which position in the betbox you get the pics).
You'll need an image of the dot (".") too (save that as "-1.bmp"). Make sure you get some of the background too for the dot.
Also, you need a very small part of the upper left corner of the box (save that as "BetBox.bmp").

Then put all the images in a folder called "AbsPics" in the working directory of the script.

I probably didn't explain this very well, so just ask.

The code works pretty well I think, but not as well as for the other sites.

;_______ start code

~WheelUp::
MouseGetPos,,,id
SetText(id, "up")
return

~WheelDown::
MouseGetPos,,,id
SetText(id, "down")
return

SetText(id,dir)
{
SetKeyDelay 0, 0
If BetBoxVis(id) <> 0
return
WinGetTitle, title, ahk_id%id%
StringMid, bb, title, InStr(title, "$") + 1, InStr(title, a_space,"",InStr(title, "$")) - InStr(title, "$") - 1
bet := Num(514,500,50,30,id)
bs := StrLen(bet)
If bet is space
bet = %bb%
If dir = up
bet := bet + bb/2
else
bet := bet - bb/2
IfWinNotActive, ahk_id%id%
WinActivate, ahk_id%id%
Click, 550, 500
Send, {BS %bs%}
IfInString, bet, .
StringLeft, bet, bet, InStr(bet, ".") - 1
Send, %bet%
Sleep, 1
}


BetBoxVis(id)
{
WinGetPos,Xwin,Ywin,,,ahk_id%id%
CoordMode, Pixel, Screen
ImageSearch,,,505 + Xwin, 490 + Ywin, 505 + Xwin + 30, 490 + Ywin + 30, AbsPics\BetBox.bmp
return ErrorLevel
}

Num(xs,ys,w,h,id)
{
Critical
SetBatchLines -1
WinGetPos,Xwin,Ywin,,,ahk_id%id%
CoordMode, Pixel, Screen
Loop, 11
{
o = -3
i := a_index
If i = 10
i = 0
else if i = 11
i = -1
Loop, 5
{
o += 3
ImageSearch, ox,,xs + Xwin + o, ys + Ywin, xs + w + xWin, ys + h + Ywin, *70 AbsPics\%i%.bmp
If ErrorLevel = 0
{
p++
p%p% = %ox%
If i = -1
i = .
c%ox% = %i%
}
}
}
Loop, %p%
p_all := p_all "," p%a_index%
Sort, p_all, N D, U
Loop, Parse, p_all, `,
pot := pot "" c%a_loopfield%
CoordMode, Pixel, Relative
SetBatchLines 20ms
Critical off
return pot
}

;___ end code
Reply With Quote
  #48  
Old 06-11-2006, 05:43 AM
Mat Mat is offline
Senior Member
 
Join Date: Apr 2006
Posts: 452
Default Re: A pretty short AHK script I made - Fastest NL script i\'ve tried

Sorry, I'm a pretty newbie with scripts. What do I have to do to make it effective ? Link ?
Reply With Quote
  #49  
Old 06-11-2006, 09:51 AM
Mat Mat is offline
Senior Member
 
Join Date: Apr 2006
Posts: 452
Default Re: A pretty short AHK script I made - Fastest NL script i\'ve tried

Ok, I understand all about ahk now. The mouse-wheel script works fine here, but I don't find a script for stars to remapping right click and left click. Is there a script with all these functions for stars somewhere ? I mean the mouse-wheel size betting, and the right/left click functions, or just a script for stars with the remapping of the right and left buttons.
Thanks.
Reply With Quote
  #50  
Old 06-11-2006, 12:55 PM
Roland Roland is offline
Senior Member
 
Join Date: Mar 2005
Location: Norwich, UK
Posts: 2,703
Default Re: A pretty short AHK script I made - Fastest NL script i\'ve tried

There are a few different versions around - not sure about mapping mouse buttons, but the mouse-wheel code should work for Stars.

In any event, this will all get added to TableNavigator soon.
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 10:38 PM.


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