Well, it is just very inchoate and far away from being good... I'm just working with coordinate clicks, it doesn't support all functions you might be expecting it to, and it doesn't handle all instructions well - sometimes you have to use the mouse anyhow. Worst issue is that it only works with one table resolution (1092*820).
The whole tool consists of 3 files, cuz I don't know how to call labels or to handle subroutines. So, I have the script (UBR.exe), a "restarter" (same key to toggle UBR on and off (->S.exe)) and the frame (->Frame.exe) separately.
HF on laughing at me^^. As I told, I don't expect to use it for a long time, so I am satisfied since it supports the most recent functions - and took very little time to write.
I don't think you can use any of its functions without getting your correct coordinates with the WindowSpy.
Code:
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
SetTitleMatchMode, 2
WheelDelay = 250
DetectHiddenWindows, on
; ------------------Detect Urgent Table + Bet Pot--------------
Loop
{
IfWinActive, NL Hold'em
Run, D:\Programme\UB Remote\Frame.exe
Loop
{
WinWaitNotActive
WinClose, Frame.exe
IfWinActive, NL Hold'em
{
Click 1050, 690
MouseMove 545, 475
MouseClick
}
Else
WinClose, Frame.exe
break
}
}
return
; ------------Start PlaceMint---------------
IfWinNotExist, PlaceMint
{
Run, D:\Programme\PlaceMint\PlaceMint.exe
WinWaitActive, PlaceMint
WinMinimize, PlaceMint
}
return
; -------------Left Button------------------
Left::
{
MouseGetPos, xpos, ypos
Click 640, 780
Sleep, 300
MouseMove, xpos, ypos
}
return
; ------------Middle Button---------------
Down::
{
MouseGetPos, xpos, ypos
Click 820, 780
Sleep, 300
MouseMove, xpos, ypos
}
return
; ------------Right Button-----------------
Right::
{
MouseGetPos, xpos, ypos
Click 1000, 780
Sleep, 300
MouseMove, xpos, ypos
}
return
; --------------Bet Pot----------------------
Up::
{
MouseGetPos, xpos, ypos
Click 1050, 690
Sleep, 500
MouseMove, xpos, ypos
}
return
; ------------Bet Half Pot------------------
End::
{
MouseGetPos, xpos, ypos
Click 960, 690
Sleep, 500
MouseMove, xpos, ypos
}
return
; -----------Increase Bet (1BB)-----------
x::Send {WheelUp}
return
; ----------Decrease Bet (1BB)-----------
s::Send {WheelDown}
return
; -----------Sit Out Next Blind / Auto Post Blind-------------
Pause::
{
MouseGetPos, xpos, ypos
Click 770, 40
Sleep, 300
MouseMove, xpos, ypos
}
return
; ---------------Sit Out Next Hand------------------
NumpadSub::
{
MouseGetPos, xpos, ypos
Click 770, 60
Sleep, 300
MouseMove, xpos, ypos
}
return
; ---------------Sit Out Next Hand & Fold to any at 2 Tables------------------
^NumpadSub::
{
Click 620, 715
Click 770, 60
WinActivateBottom, NL Hold'em
Sleep, 250
Click 620, 715
Click 770, 60
WinActivateBottom, NL Hold'em
MouseMove 545, 475
}
return
; ------------Auto Post Blind Window Skip--------------
Del::
{
MouseGetPos, xpos, ypos
Click 488, 453
MouseMove, xpos, ypos
}
return
; ---------------Check/fold--------------------
Numpad1::
{
MouseGetPos, xpos, ypos
Click 620, 745
Sleep, 300
MouseMove, xpos, ypos
}
return
; -------------Fold To Any Bet--------------------
Numpad2::
{
MouseGetPos, xpos, ypos
Click 620, 715
Sleep, 300
MouseMove, xpos, ypos
}
return
; ----------------Cycle Tables --------------------
Numpad0::
{
WinActivateBottom, NL Hold'em
MouseMove 545, 475
}
return
; --------------Reload Table Maximum---------------
Ins::
{
MouseGetPos, xpos, ypos
Click 452, 52
Sleep 100
Click 480, 70
Sleep 750
Click 33, 275
Click 80, 415
Click 340, 415
MouseMove, xpos, ypos
}
return
; -------------------(Un)Mark last Hand-------------------------------------
^Numpad1::
{
MouseGetPos, xpos, ypos
Click 700, 135
Sleep, 600
Click 1100, 95
Sleep, 100
Click 19, 49
Click 212, 11
WinActivateBottom, NL Hold'em
WinActivateBottom, NL Hold'em
MouseMove, xpos, ypos
}
return
; --------------------(Un)Mark 2nd last Hand-----------------------------------
^Numpad2::
{
MouseGetPos, xpos, ypos
Click 700, 155
Sleep, 600
Click 1100, 95
Sleep, 100
Click 19, 49
Click 212, 11
WinActivateBottom, NL Hold'em
WinActivateBottom, NL Hold'em
MouseMove, xpos, ypos
}
return
; -----------------------(Un)Mark 3rd last Hand--------------------------------
^Numpad3::
{
MouseGetPos, xpos, ypos
Click 700, 175
Sleep, 600
Click 1100, 95
Sleep, 100
Click 19, 49
Click 212, 11
WinActivateBottom, NL Hold'em
WinActivateBottom, NL Hold'em
MouseMove, xpos, ypos
}
return
; -----------------------Show mucked Holecards (1,5sec)----------------------------
Shift::
{
MouseMove 545, 640
Sleep, 1500
MouseMove 545, 475
}
return
; ------------------Close Table------------------------
Esc::
{
Click 1074, 17
Click 210, 75
WinWaitActive, Player Status
WinMinimize, Player Status
WinActivateBottom, NL Hold'em
}
return
; ---------------Suspend UBR & PlaceMint (same hk for restart)--------------
^BS::
IfWinExist, PlaceMint
{
MouseGetPos, xpos, ypos
WinActivate
WinWaitActive, PlaceMint
Click 30, 40
Sleep 50
Click 30, 60
WinMinimize
WinClose, Frame.exe
Run, D:\Programme\UB Remote\S.exe
ExitApp
MouseMove, xpos, ypos
}
IfWinNotExist, PlaceMint
{
MouseGetPos, xpos, ypos
Run, D:\Programme\PlaceMint\PlaceMint.exe
WinWaitActive, PlaceMint
Click 30, 40
Sleep 50
Click 30, 60
WinClose, Frame.exe
WinMinimize, PlaceMint
Run, D:\Programme\UB Remote\S.exe
ExitApp
MouseMove, xpos, ypos
}
return