Here is my code. for purposes, I'll explain the button combinations.
Space + L Mouse Button together lets me pan the canvas, I need to know where the cursor is when I release one or the other.
LCtrl + Numpad5 disables click through on WindowTop which I use to overlay with transparency one Canvas over the other.
LCtrl + Tab switches between the two canvasses in the app
Code: Select all
Space & LMButton::MouseStartX = 0,
MouseStartY = 0,
MouseEndX = 0,
MouseEndY = 0,
MouseGetPos [MouseStartX, MouseStartY],
Space UP || LMButton UP::MouseGetPos [MouseEndX, MouseEndY],
BlockInput, On,
LCtrl & Numpad5,
LCtrl & TAB,
MouseClickDrag, M, MouseStartX, MouseStartY, MouseEndX, MouseEndY
LCtrl & TAB,
LCtrl & Numpad5,
BlockInput, Off