 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Gato
Joined: 19 Feb 2010 Posts: 3
|
Posted: Sat Feb 27, 2010 1:48 am Post subject: This works... When I hit the key twice!! |
|
|
As said in the title, I must hit the NumPad3 key twice to make this little piece of script work.
What I am missing?
| Code: | NumPad3::
IfWinExist, ahk_id %tableID%Return
WinGetTitle,title
WinGetPos, X, Y
StringGetPos, BdeLasCiegas, title, Blinds
Subcadena := SubStr(Title, Bdelasciegas)
StringGetPos, DiagdeLasCiegas, Subcadena, /
StringGetPos, SignoDePesos, Subcadena, $
CiegaChica := SubStr(Subcadena, 10, (Diagdelasciegas - SignodePesos - 1))
CoordMode, Mouse
MouseGetPos,,,tableID
Bet3 := Round(6 * CiegaChica, 0)
ControlSetText, PokerStarsSliderEditorClass1, %Bet3%
ControlSend, PokerStarsSliderEditorClass1, {enter}
Return |
Thanks in advance. |
|
| Back to top |
|
 |
a_h_k
Joined: 02 Feb 2008 Posts: 626
|
Posted: Sat Feb 27, 2010 5:25 am Post subject: Re: This works... When I hit the key twice!! |
|
|
| Gato wrote: | As said in the title, I must hit the NumPad3 key twice to make this little piece of script work.
What I am missing?
| Code: | NumPad3::
IfWinExist, ahk_id %tableID%Return ; <--- ??
WinGetTitle,title
WinGetPos, X, Y
StringGetPos, BdeLasCiegas, title, Blinds
Subcadena := SubStr(Title, Bdelasciegas)
StringGetPos, DiagdeLasCiegas, Subcadena, /
StringGetPos, SignoDePesos, Subcadena, $
CiegaChica := SubStr(Subcadena, 10, (Diagdelasciegas - SignodePesos - 1))
CoordMode, Mouse
MouseGetPos,,,tableID
Bet3 := Round(6 * CiegaChica, 0)
ControlSetText, PokerStarsSliderEditorClass1, %Bet3%
ControlSend, PokerStarsSliderEditorClass1, {enter}
Return |
Thanks in advance. |
|
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|