Hello all!
Under AutoCAD editor I want to preserve the mouse functionallity ONLY under the working space (black area - see attached file "AutoCAD PrtScr.gif"), with no acces to Sceen menus, Popup menus etc.
Please help!
Thank you.
Keeping mouse functionallity inside working space
-
- Posts: 5
- Joined: 27 Jan 2016, 07:49
Re: Keeping mouse functionallity inside working space
see msdn for ClipCursor() but i could never get it working reliably
-
- Posts: 5
- Joined: 27 Jan 2016, 07:49
Re: Keeping mouse functionallity inside working space
Thank you for replay Mr. guest3456
I found that code on https://autohotkey.com/boards/viewtopic.php?t=3953
^!l::
ConfineCursor:=!ConfineCursor
WinGetPos, VarX, VarY, Width, Height, A
VarX2 := VarX + Width
VarY2 := VarY + Height
ClipCursor( ConfineCursor, VarX, VarY, VarX2, VarY2)
Return
ClipCursor( Confine=True, x1=0 , y1=0, x2=1, y2=1 ) {
VarSetCapacity(R,16,0), NumPut(x1,&R+0),NumPut(y1,&R+4),NumPut(x2,&R+8),NumPut(y2,&R+12)
Return Confine ? DllCall( "ClipCursor", UInt,&R ) : DllCall( "ClipCursor" )
}
I've tested it but does't work under Windows 10 x64.
Help!
Regards.
I found that code on https://autohotkey.com/boards/viewtopic.php?t=3953
^!l::
ConfineCursor:=!ConfineCursor
WinGetPos, VarX, VarY, Width, Height, A
VarX2 := VarX + Width
VarY2 := VarY + Height
ClipCursor( ConfineCursor, VarX, VarY, VarX2, VarY2)
Return
ClipCursor( Confine=True, x1=0 , y1=0, x2=1, y2=1 ) {
VarSetCapacity(R,16,0), NumPut(x1,&R+0),NumPut(y1,&R+4),NumPut(x2,&R+8),NumPut(y2,&R+12)
Return Confine ? DllCall( "ClipCursor", UInt,&R ) : DllCall( "ClipCursor" )
}
I've tested it but does't work under Windows 10 x64.
Help!
Regards.
Return to “Other Utilities & Resources”
Who is online
Users browsing this forum: No registered users and 29 guests