Open Side Menu Go to the Top
Register
Stop disappearig OnGame tables with an AHK script! Stop disappearig OnGame tables with an AHK script!

04-20-2008 , 06:40 PM
Do you hate if you multitabling on Ongame and tables keep disappearing? This was bugging me all the time! It happens because at minitables the sit out and leave buttons are way too close to the fold button. I solved this problem with an AHK script:

you have to remap the left mouse button like this:

;***************SCRIPT START*****************************

;Disabling leave and sit out buttons on OnGame minitables

LButton::
;Activate window, so the IfWinActive check works properly (otherwise we don't get the proper coordinates, so the clicks will be done)
MouseGetPos, , , id, control
WinActivate ahk_id %id%
IfWinActive, ahk_class AfxFrameOrView70u
{
MouseGetPos, xpos, ypos
GetKeyState, stateLAlt, LAlt, P
if (xpos>4 and xpos<75 and ypos>300 and ypos<350 and %stateLAlt% = U)
{
;do nothing
} else {
MouseClick, left,,, 1, 0, D ; Hold down the left mouse button.
Loop
{
Sleep, 10
GetKeyState, state, LButton, P
if state = U ; The key has been released, so break out of the loop.
break
}
MouseClick, left,,, 1, 0, U ; Release the mouse button.
}
} else {
MouseClick, left,,, 1, 0, D ; Hold down the left mouse button.
Loop
{
Sleep, 10
GetKeyState, state, LButton, P
if state = U ; The key has been released, so break out of the loop.
break
}
MouseClick, left,,, 1, 0, U ; Release the mouse button.
}
return

;***************SCRIPT END*****************************


If you click on the sit out or leave buttons, nothing happens. Otherwise the mouseclick works normally. The loops are needed to be able to drag and drop.

You can sit out by holding down the ALT button while clicking on the sit out button.

Enjoy!
Stop disappearig OnGame tables with an AHK script! Quote
04-23-2008 , 12:01 PM
I just saw this thread. I'm going to try your script tonight and let you know what I think. I really hope this works!
Stop disappearig OnGame tables with an AHK script! Quote
04-24-2008 , 09:41 AM
Okay this works, but I have a little more trouble clicking all the other buttons. Sometimes I click and nothing happens. It solves the disappearing tables though, which is great!
Stop disappearig OnGame tables with an AHK script! Quote
04-24-2008 , 04:52 PM
love this script, tyvm!
Stop disappearig OnGame tables with an AHK script! Quote
04-24-2008 , 07:44 PM
You are welcome.

I'm afraid there is a problem with the script. This is my first script, so I'm not a professionel :-)

For some reason you can't use the menus of any program while the script is running. They are invisible to the mouse.

If anyone could help me on this, I would appreciate it. The window activating lines (MouseGetPos..., Winactivate...) cause the problem, but I don't know how to fix it.

My advice would be that until we find the solution, you use the script only while playing poker. Otherwise you turn it off.
Or you can delete the window activating lines (MouseGetPos..., Winactivate...). If you click on an inactive table now, the script doesn't work, so now you have to enable window tracking with TweakUI or TweakVi (in the mouse menu) or directly in the registry to activate the tables when you hover the mouse over them.
Stop disappearig OnGame tables with an AHK script! Quote
04-24-2008 , 10:35 PM
Can someone explain to a computer illiterate person how to apply a script such as this?
Stop disappearig OnGame tables with an AHK script! Quote
04-25-2008 , 06:05 AM
http://www.autohotkey.com/docs/Tutorial.htm

The first two chapter (Creating a script and Lauching a program or document) should be enough.
Stop disappearig OnGame tables with an AHK script! Quote
04-26-2008 , 05:23 AM
The idea works, and that's what's important. Before this I didn't know why the tables did disappear.

Now AHK-guys, get in here!
Stop disappearig OnGame tables with an AHK script! Quote
05-01-2008 , 06:11 PM
I choose another method to do the same. Works without problems:

http://forumserver.twoplustwo.com/sh....php?p=3934267
Stop disappearig OnGame tables with an AHK script! Quote

      
m