Poker
-
- Posts: 12
- Joined: 13 Nov 2020, 09:47
Poker
Hello Everyone!
My name is Manuel and I'm new in this community.
I am looking for a script that can interface with a poker room client. My goal would be to be able to bet pot percentages by pressing hotkey on the keyboard (for example, if I press "F1" it bets 33% of the pot, if I press "F2" it bets 50%, and so on).
I imagine that everything has to be configured by giving it the space in which to usually insert the percentage of the pot as coordinate.
Do you have any suggestion? This is the second month I'm looking for something ready, but I think I have to write the script by myself, so here we are.
Thank you everybody for your kind,
My name is Manuel and I'm new in this community.
I am looking for a script that can interface with a poker room client. My goal would be to be able to bet pot percentages by pressing hotkey on the keyboard (for example, if I press "F1" it bets 33% of the pot, if I press "F2" it bets 50%, and so on).
I imagine that everything has to be configured by giving it the space in which to usually insert the percentage of the pot as coordinate.
Do you have any suggestion? This is the second month I'm looking for something ready, but I think I have to write the script by myself, so here we are.
Thank you everybody for your kind,
Re: Poker
My suggestion is to search the forum for poker. You'll find scripts and discussions about it. An example is below.
https://www.autohotkey.com/boards/viewtopic.php?f=76&t=82357
https://www.autohotkey.com/boards/viewtopic.php?f=76&t=82357
-
- Posts: 343
- Joined: 08 Jun 2019, 17:36
Re: Poker
Theres a few programs written out there by AHK members that do this actually. They are paid however. Look into IntuitiveTables or StackandTile
-
- Posts: 12
- Joined: 13 Nov 2020, 09:47
Re: Poker
Thank you guys for your answers, I hope somebody will answer with some suggestions on how to setting up a script wih AHK.
-
- Posts: 12
- Joined: 13 Nov 2020, 09:47
Re: Poker
So guys this is what I put in the script and all its working fine:
[Mod edit: [code][/code] tags added.]
But when I use Hotkeys F1, F2, F3 and Mbutton, I would like to use them ALSO when the window under my mouse position is not activated.
It would be also amazing if I could click my hotkeys without moving the mouse to the position of the click. Is it possible to do?
For the first problem I think I could use "MouseGetPos" but I didn't understand how setting up it.
Thank you for your attention,
Code: Select all
F1::
IfWinActive,ahk_class QWidget
{
Send {Click 499, 435}
Click, 2,
Sleep, 250,
SendInput, 2,20
Send, {Enter}
return
}
F2::
IfWinActive,ahk_class QWidget
{
Send {Click 499, 435}
Click, 2,
Sleep, 250,
SendInput, 2,50
Send, {Enter}
return
}
F3::
IfWinActive,ahk_class QWidget
{
Send {Click 499, 435}
Click, 2,
Sleep, 250,
SendInput, 3,
Send, {Enter}
return
}
MButton::
IfWinActive,ahk_class QWidget
{
Send {Click 275, 414}
return
}
But when I use Hotkeys F1, F2, F3 and Mbutton, I would like to use them ALSO when the window under my mouse position is not activated.
It would be also amazing if I could click my hotkeys without moving the mouse to the position of the click. Is it possible to do?
For the first problem I think I could use "MouseGetPos" but I didn't understand how setting up it.
Thank you for your attention,
Re: Poker
Yes, MouseGetPos does help you do that. You can have it activate the window under the mouse when you press the hotkey:SalePepeCumino wrote: ↑ But when I use Hotkeys F1, F2, F3 and Mbutton, I would like to use them ALSO when the window under my mouse position is not activated.
...For the first problem I think I could use "MouseGetPos" but I didn't understand how setting up it.
Code: Select all
F1::
MouseGetPos,,, WinID
WinActivate, ahk_id %WinID%
; your other code here
return
If ControlClick works, it won't move the mouse. Another approach is to have the script record the current mouse coordinates using MouseGetPos, then after it clicks, move the mouse back using MouseMove.SalePepeCumino wrote: ↑ It would be also amazing if I could click my hotkeys without moving the mouse to the position of the click. Is it possible to do?
-
- Posts: 12
- Joined: 13 Nov 2020, 09:47
Re: Poker
Thank you so much for your Answer. ControlSend and ControlClick unfortunately doesn't work at all, but MouseGetPos as you write works perfectly. Today I will try to set up MouseGetPos+currentcoord+MouseMove and I hope it will help meboiler wrote: ↑18 Nov 2020, 16:20Yes, MouseGetPos does help you do that. You can have it activate the window under the mouse when you press the hotkey:SalePepeCumino wrote: ↑ But when I use Hotkeys F1, F2, F3 and Mbutton, I would like to use them ALSO when the window under my mouse position is not activated.
...For the first problem I think I could use "MouseGetPos" but I didn't understand how setting up it.If you don't want it to activate the window at all, then you have to use ControlSend and ControlClick to send to the window you've identified as being under the mouse without activating it. This doesn't work for all windows, but you can try it.Code: Select all
F1:: MouseGetPos,,, WinID WinActivate, ahk_id %WinID% ; your other code here return
If ControlClick works, it won't move the mouse. Another approach is to have the script record the current mouse coordinates using MouseGetPos, then after it clicks, move the mouse back using MouseMove.SalePepeCumino wrote: ↑ It would be also amazing if I could click my hotkeys without moving the mouse to the position of the click. Is it possible to do?