I'd like some help with Juk's Postleftclick please.
At present I am using the following:
Code:
#IfWinActive ahk_class PTIODEVICE
xbutton1::
MouseGetPos HereX, HereY
{
Click 475, 470
Click 345,424
}
Mousemove %HereX%, %HereY%,
return
#IfWinactive
to send a couple of clicks to iPoker tables. I realise I need to change my mouse coordinates to reflect the fact that clicks are sent in relation to the client area not the window.
I'd like to know how I adapt the Juk's Rocks code
Code:
;Juks rocks
; ### JUK: Send the down left click, then the mouse-up messages.
; NOTE: This is relative to the top left of the client area and NOT the top left of the
; window (ie: It *doesn't* include the title-bar like AHK's MouseClick does!!!).
postLeftClick(x, y, win, activate=1) {
ifEqual, activate, 1, WinActivate, ahk_id%win%
PostMessage, 0x201, 0x0001, ((y<<16)^x),, ahk_id%win%
PostMessage, 0x202 , 0, ((y<<16)^x),, ahk_id%win%
}
; postLeftClick...
plc(x, y, table_id, activate=1) {
postLeftClick(x, y, table_id, activate)
}
to do the same as my code above.
Window Info
Title: MyUsername: Haren (No DP) - Texas Hold'em, No limit - $0.25/$0.50
Class: PTIODEVICE
Process: casino.exe
Unique ID: 0x50a4a and different table 0xc0cd2
Process ID: 4880
All help gratefully received, thank you.