MiguelTeixeira, basically you could use MButton::ControlSend, Play Now, {enter}, PokerStars Lobby, but there are some hidden copies of a control with the same text in the PS client which could mess it up, so you have to identify wanted visible control , try this:
Code:
MButton::
regButton=
winget,LobbyID,id,PokerStars Lobby
WinGet,ctrls,ControlList,ahk_id%LobbyID%
Loop,Parse,ctrls,`n
{
controlgettext,text,%A_LoopField%,ahk_id%LobbyID%
ControlGet,vis,Visible,,%A_LoopField%,ahk_id%LobbyID%
if (text="Play Now") && vis
regButton:=A_LoopField
}
if regButton
ControlSend, %regButton%, {space}, ahk_id%LobbyID%
return
Last edited by Max1mums; 03-29-2018 at 06:07 AM.