spellofmaya,pokerash, and what if you need to enter note additionally? Here you go anyway.
Code:
#noenv
#SingleInstance, Force
SetWinDelay,-1
SetKeydelay,-1
SetControldelay,-1
SysGet, xbord, 32
SysGet, cap, 4
return
^1::
Noteselect(1)
return
^2::
Noteselect(2)
return
^3::
Noteselect(3)
return
^4::
Noteselect(4)
return
^5::
Noteselect(5)
return
^6::
Noteselect(6)
return
^7::
Noteselect(7)
return
^8::
Noteselect(8)
return
^9::
Noteselect(9)
return
;-----------------------------------------------------------------------------------------------------
Noteselect(number)
{
mousegetpos,,,winid
wingetclass,class,ahk_id%winid%
if class=PokerStarsTableFrameClass
{
dclick(winid)
sleep,50
ColorNoteControlClick(number)
}
}
;-----------------------------------------------------------------------------------------------------
dclick(winid)
{
global xbord,cap
coordmode,mouse,relative
mousegetpos,x,y
PostLeftDoubleClick(x-xbord, y-xbord-cap, winid, 1)
}
return
;-----------------------------------------------------------------------------------------------------
ColorNoteControlClick(id)
{
winget,winid,id,A
ControlGet, v, Visible,,PokerStarsNoteSelectorClass1, ahk_id %Winid%
if v
{
BlockInput, MouseMove
BlockInput, On
wingetpos,x1,y1,w1,h1,ahk_id%winid%
coordmode,mouse,screen
mousegetpos,x2,y2
ControlGetPos, x, y, w, h, %Edit1%, ahk_id %Winid%
DllCall("SetCursorPos", int, x+x1+15, int, y+y1+10)
send {Click left}
DllCall("SetCursorPos", int, x+x1+15, int, y+y1+10+id*17)
send {Click left}
DllCall("SetCursorPos", int, x+x1+15, int, y+y1-10)
send {Click left}
DllCall("SetCursorPos", int, x2, int, y2)
BlockInput, MouseMoveOff
BlockInput, Off
}
}
return
;-----------------------------------------------------------------------------------------------------
PostLeftDoubleClick(x, y, table_id, activate=1) {
If activate
WinActivate, ahk_id%table_id%
critical,6
PostMessage, 0x203 , 0, ((y<<16)^x), , ahk_id%table_id%
PostMessage, 0x202 , 0, ((y<<16)^x), , ahk_id%table_id%
critical,off
sleep,-1
}
return
;-----------------------------------------------------------------------------------------------------