AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

This works... When I hit the key twice!!

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Gato



Joined: 19 Feb 2010
Posts: 3

PostPosted: Sat Feb 27, 2010 1:48 am    Post subject: This works... When I hit the key twice!! Reply with quote

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
View user's profile Send private message
a_h_k



Joined: 02 Feb 2008
Posts: 626

PostPosted: Sat Feb 27, 2010 5:25 am    Post subject: Re: This works... When I hit the key twice!! Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group