i usually just shrug it off with "eh you'll work it out" but alas, my time has come
i begin writing my own multiboxing script which i hope to be an open source competitor for ISboxer, and as simple to set up as punch in your usernames in an INI file and run, out-of-box, i have window sizing, switching, and full keyboard replication (with any key combination), virtual files, handles for bringing ALL windows to the top when you bring one window to the top and vice versa, as if the whole boxing array is one window, but, as i feared
controlclick has failed, once again... and it's critical for this project...
i have scoured the forums...
https://autohotkey.com/board/topic/3567 ... me-xy-pos/
https://autohotkey.com/board/topic/1804 ... t-scripts/
https://autohotkey.com/board/topic/3629 ... ng-script/
https://autohotkey.com/boards/viewtopic.php?t=4850
https://autohotkey.com/board/topic/1087 ... ick-issue/
https://autohotkey.com/board/topic/1236 ... ordinates/
https://autohotkey.com/board/topic/9003 ... e-windows/
https://autohotkey.com/board/topic/8291 ... e-windows/
https://autohotkey.com/board/topic/1198 ... ox-script/
https://autohotkey.com/board/topic/4691 ... e-buttons/
https://autohotkey.com/board/topic/8363 ... ow-active/
https://autohotkey.com/board/topic/3277 ... trolclick/
https://autohotkey.com/board/topic/7423 ... ve-window/
https://autohotkey.com/board/topic/4520 ... -clicking/
https://autohotkey.com/board/topic/3897 ... esnt-work/
https://autohotkey.com/board/topic/9374 ... vating-it/
https://autohotkey.com/board/topic/84345-wow-click/
https://autohotkey.com/board/topic/8454 ... ined-spot/
https://autohotkey.com/board/topic/1173 ... -warcraft/
https://autohotkey.com/board/topic/8349 ... end-click/
https://autohotkey.com/board/topic/9695 ... k-improve/
https://autohotkey.com/board/topic/4375 ... stmessage/
I have tried solutions...
Code: Select all
wintitle := Acc[1, "AHK_ID"]
append("Clicking " x A_space y " in " wintitle)
ControlClick, x519 y504, AHK_ID %wintitle%wat
ControlClick, x519 y504, AHK_ID %wintitle%, Left
ControlClick,, AHK_ID %wintitle%,,L,2,NA x539 y499
ControlClick,, AHK_ID %wintitle%,,L
ControlClick, x%x% y%y% , World of Warcraft
ControlClick, %x% %y%, ahk_id %wintitle%, , L, NA Pos
ControlClick, 517 505 , ahk_id %wintitle%, , L,2, NA Pos
ControlClick, x517 y505 , ahk_id %wintitle%, , L,2, NA Pos x539 y499
ControlClick, x517 y505 , ahk_id %wintitle%, , L,2, NA Pos x539 y499 D
sleep 100
ControlClick, x517 y505 , ahk_id %wintitle%, , L,2, NA Pos x539 y499 U
ControlClick, x517 y505 , ahk_id %wintitle%, , L
;0xA1
;0xA2
postclick(539, 499, wintitle)
postclick2(539, 499, wintitle)
postclick2(X, Y, wintitle)
ControlClick2(539, 499, wintitle)
ControlClick2(539, 499, "AHK_ID" wintitle)
return
;some of the funcs i'm using are below
PostClick(x,y,win="A") { ; assumes 'win' is the active window if no window title is specified
lParam := x & 0xFFFF | (y & 0xFFFF) << 16
PostMessage, 0x201, , % lParam, , % "AHK_ID" win ;WM_LBUTTONDOWN
PostMessage, 0x202, , % lParam, , % "AHK_ID" win ;WM_LBUTTONUP
}
PostClick2(x,y,win="A")
{ ; assumes 'win' is the active window if no window title is specified
lParam := x & 0xFFFF | (y & 0xFFFF) << 16
PostMessage, 0x200, 0, % lParam , , % "AHK_ID" win ; WM_MOUSEMOVE
PostMessage, 0x21 , tohex(win), 0x00000001 , , % "AHK_ID" win ;MouseActivate
PostMessage, 0x1C , 0x00000001, 0 , , % "AHK_ID" win ;Activate App
PostMessage, 0x06 , 0x00000002, 0 , , % "AHK_ID" win ;Activate
PostMessage, 0x20 , tohex(win), 0x02010001 , , % "AHK_ID" win ;SetCursor
PostMessage, 0x201, , % lParam , , % "AHK_ID" win ;WM_LBUTTONDOWN
PostMessage, 0x202, , % lParam , , % "AHK_ID" win ;WM_LBUTTONUP
}
ControlClick2(X, Y, WinTitle="", WinText="", ExcludeTitle="", ExcludeText="")
{
hwnd:=ControlFromPoint(X, Y, WinTitle, WinText, cX, cY
, ExcludeTitle, ExcludeText)
PostMessage, 0x200, 0, cX&0xFFFF | cY<<16,, ahk_id %hwnd% ; WM_MOUSEMOVE
PostMessage, 0x201, 0, cX&0xFFFF | cY<<16,, ahk_id %hwnd% ; WM_LBUTTONDOWN
PostMessage, 0x202, 0, cX&0xFFFF | cY<<16,, ahk_id %hwnd% ; WM_LBUTTONUP
}
i am yet to see controlclick work in anything other than Notepad
please, someone, tell me i'm doing something absolutely stupid ... SURELY AHK - auto hot key, the scripting language SPECIFICALLY DESIGNED FOR AUTOMATION is not failing at doing EXACTLY WHAT IT WAS DESIGNED TO DO...
</salt>
i have been at this for 2 days now so if someone would be so kind as to shed some light on this i would be very, very happy :p