Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Tournament Poker > STT Strategy
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #51  
Old 11-27-2006, 10:05 AM
tshort tshort is offline
Senior Member
 
Join Date: May 2005
Posts: 1,143
Default Re: My PokerStars SNG AHK script

[ QUOTE ]
I use few other scripts, and I need only the " autoregister part ".
But I don't know what part of the script I must to keep.
Anyone can do it ?

[/ QUOTE ]



#NoEnv
#Persistent
#SingleInstance force
#Include %a_scriptDir%
#Include Functions.ahk

interval = 100 ; period between refreshes

Loop
{
AutoRegister()
Sleep %interval%
}

Autoregister()
{
SetTitleMatchMode 2
IfWinExist, Tournament Registration
ControlClick, Button1
ControlClick, OK
}
Reply With Quote
  #52  
Old 11-27-2006, 12:31 PM
f 380-420 f 380-420 is offline
Junior Member
 
Join Date: Nov 2006
Posts: 27
Default Re: My PokerStars SNG AHK script

excellent, more script like this would be great.
Reply With Quote
  #53  
Old 11-27-2006, 08:06 PM
sebbb sebbb is offline
Senior Member
 
Join Date: Oct 2006
Posts: 970
Default Re: My PokerStars SNG AHK script

This what I use for the fold button (using the left key)
You might have to change the coordinates depending on your window size (for me it works if I cascade the tables).
To find the coordinates, use window spy

USE AT YOUR OWN RISK
You might wanna try it on play money first (change "tournament" to "play money" in the script)

left::

ControlClick, x468 y541, Tournament ;

return
Reply With Quote
  #54  
Old 11-27-2006, 09:47 PM
darom03 darom03 is offline
Senior Member
 
Join Date: Sep 2005
Location: Not USA!!! \\o/
Posts: 1,314
Default Re: My PokerStars SNG AHK script

The autoregistrer often doesn't work the first couple of times, I try to register a sng. An error pops up in PokerStars.

Any workaround for that?
Reply With Quote
  #55  
Old 11-27-2006, 10:45 PM
pineapple888 pineapple888 is offline
Senior Member
 
Join Date: Jun 2005
Location: Getting rivered by idiots
Posts: 6,558
Default Re: My PokerStars SNG AHK script

[ QUOTE ]
The autoregistrer often doesn't work the first couple of times, I try to register a sng. An error pops up in PokerStars.

Any workaround for that?

[/ QUOTE ]

Workaround is to keep attempting to register for the tournament until it works. If you want a fix, I guess you could try putting a time delay in there but I'm not gonna F with it personally.
Reply With Quote
  #56  
Old 11-27-2006, 10:50 PM
billxo1b billxo1b is offline
Senior Member
 
Join Date: Jan 2005
Location: xo1b
Posts: 1,519
Default Re: My PokerStars SNG AHK script

[ QUOTE ]
[ QUOTE ]
The autoregistrer often doesn't work the first couple of times, I try to register a sng. An error pops up in PokerStars.

Any workaround for that?

[/ QUOTE ]

Workaround is to keep attempting to register for the tournament until it works. If you want a fix, I guess you could try putting a time delay in there but I'm not gonna F with it personally.

[/ QUOTE ]

you think "sleep 100" would fix this?
Reply With Quote
  #57  
Old 11-27-2006, 10:55 PM
sebbb sebbb is offline
Senior Member
 
Join Date: Oct 2006
Posts: 970
Default Re: My PokerStars SNG AHK script

also this is what I use for allin (!same comments as in my previous post!)

up arrow writes 9999 in the amount, right arrow presses the raise button


up::
NumpadMult::
MouseGetPos,,, curWin
ControlClick, x653 y485, Tournament ;
WinActivate, ahk_id %curWin%
Send {del 5}
WinActivate, ahk_id %curWin%
Send 99999
return


right::

ControlClick, x725 y562, Tournament ;

return
Reply With Quote
  #58  
Old 11-27-2006, 10:57 PM
Paul B. Paul B. is offline
Senior Member
 
Join Date: Mar 2005
Location: Thailand soon?
Posts: 5,160
Default Re: My PokerStars SNG AHK script

[ QUOTE ]
[ QUOTE ]
The autoregistrer often doesn't work the first couple of times, I try to register a sng. An error pops up in PokerStars.

Any workaround for that?

[/ QUOTE ]

Workaround is to keep attempting to register for the tournament until it works. If you want a fix, I guess you could try putting a time delay in there but I'm not gonna F with it personally.

[/ QUOTE ]

A time delay wouldn't work. It's because the Stars API is a bit troublesome to work with. i.e. if you tell it to click something, it doesn't always click it.

The foolproof way to do it would be to make sure the OK button is enabled before it clicks it (the only way it is enabled is if the radio button is clicked), click it, then wait for the confirmation messagebox to pop up. Juk (I think) already wrote the hard stuff so the rest is simple... I just never got around to it due to laziness and lack of interest.

Edited to add: the "allin" code can be improved using _dave_'s betpot code.
Reply With Quote
  #59  
Old 12-09-2006, 03:50 AM
ALReturnsLOL ALReturnsLOL is offline
Senior Member
 
Join Date: Jul 2005
Location: Averett 4 lyfe
Posts: 4,474
Default Re: My PokerStars SNG AHK script

I used this for the first time, and I am about to cry tears of joy.
Reply With Quote
  #60  
Old 12-09-2006, 04:07 AM
cakewalk cakewalk is offline
Senior Member
 
Join Date: Oct 2005
Location: professional FPP player
Posts: 5,111
Default Re: My PokerStars SNG AHK script

doesnt this script f ur tables up or some jazz ?
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 03:13 PM.


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