Two Plus Two Newer Archives

Two Plus Two Newer Archives (http://archives1.twoplustwo.com/index.php)
-   Software (http://archives1.twoplustwo.com/forumdisplay.php?f=47)
-   -   simple script for stars: help please (http://archives1.twoplustwo.com/showthread.php?t=553582)

runhot 11-24-2007 11:29 PM

Re: simple script for stars: help please
 
[ QUOTE ]
Is there Antes?


[/ QUOTE ]

yes there were antes

_dave_ 11-24-2007 11:38 PM

Re: simple script for stars: help please
 
[ QUOTE ]
[ QUOTE ]
Is there Antes?


[/ QUOTE ]

yes there were antes

[/ QUOTE ]

That makes sense with my above edit then [img]/images/graemlins/smile.gif[/img]

please try:

;---------------------------------
~RButton::
F4::
;WinGet,id,,A
MouseGetPos,,, curWin
WinGetTitle, title, ahk_id%curWin%

IfInString, title, No Limit Hold'em
{
Slash := Instr(title, "/") + 2
if (Instr(title, "Ante"))
{
Space := Instr(title, " ", false, Slash)
}
else
{
Space := Instr(title, " ", false, Slash)-2
}
BBLength := Space - Slash
StringMid, Bigblind, title, Slash, BBLength
Transform, RaiseAmount, Round, Bigblind * 2.5

MouseGetPos,,, curWin
ControlSetText, PokerStarsSliderEditorClass1, %RaiseAmount%, ahk_id%curWin%
}
return
;---------------------------------

Hopefully that does the job [img]/images/graemlins/smile.gif[/img]

_dave_ 11-24-2007 11:41 PM

Re: simple script for stars: help please
 
[ QUOTE ]
also can i somehow change F1 from tile to a custom layout somehow?

[/ QUOTE ]

Yeas, just change the word "Tile" to whatever you want to pick from the view menu - say.. "Custom Layout: my 12 table setup" - it depends how you named your layouts:



F1::tile()
return
tile()
{SetTitleMatchMode, 1
WinWait, PokerStars Lobby
WinActivate, PokerStars Lobby
WinWaitActive, PokerStars Lobby
WinMenuSelectItem, PokerStars Lobby,,View,Custom Layout: my 12 table setup
}

runhot 11-24-2007 11:44 PM

Re: simple script for stars: help please
 
dave for the right click, its still seems to be off b y a factor of ten

_dave_ 11-25-2007 12:09 AM

Re: simple script for stars: help please
 
[ QUOTE ]
dave for the right click, its still seems to be off b y a factor of ten

[/ QUOTE ]

OK, I just actually sat in a SNG [img]/images/graemlins/smile.gif[/img]

should be -1 not -2 [img]/images/graemlins/smile.gif[/img]


;-------------------------------------------
~RButton::
F4::
;WinGet,id,,A
MouseGetPos,,, curWin
WinGetTitle, title, ahk_id%curWin%

IfInString, title, No Limit Hold'em
{
Slash := Instr(title, "/") + 2
if (Instr(title, "Ante"))
{
Space := Instr(title, " ", false, Slash)
}
else
{
Space := Instr(title, " ", false, Slash)-1
}
BBLength := Space - Slash
StringMid, Bigblind, title, Slash, BBLength
Transform, RaiseAmount, Round, Bigblind * 2.5

MouseGetPos,,, curWin
ControlSetText, PokerStarsSliderEditorClass1, %RaiseAmount%, ahk_id%curWin%
}
return
;-------------------------------------------


All times are GMT -4. The time now is 03:04 PM.

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