Like this:
LDown
Wait>0.2
LUp
Wait>0.2
How do i code: If (Button/Key = Down)
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
- Phil Pendlebury
- Automation Wizard
- Posts: 543
- Joined: Tue Jan 16, 2007 9:00 am
- Contact:
Please explain?Jozsa wrote:Sure it does, i just got it to work perfectly![]()
Phil Pendlebury - Linktree
- Phil Pendlebury
- Automation Wizard
- Posts: 543
- Joined: Tue Jan 16, 2007 9:00 am
- Contact:
IF>LUp<>LDown
Code: Select all
OnEvent>KEY_DOWN,VK1,1,LDownMouseClick
SRT>LDownMouseClick
Wait>0.2
IF>LUp<>LDown
// EXAMPLE BELOW =======================
// Set Bounds Here
Let>X1=0
Let>Y1=0
Let>X2=0
Let>Y2=0
Let>NotFalse=True
Label>MainLoop
Wait>0.2
OnEvent>KEY_DOWN,VK35,5,END
OnEvent>KEY_DOWN,VK1,1,LDownMouseClick
GetCursorPos>X1,Y1
Goto>MainLoop
//-----------
SRT>LDownMouseClick
Wait>0.2
IF>LUp<>LDown
GoSub>GetUpPosition
ELSE
GoSub>LDownMouseClick
ENDIF
//------------
SRT>GetUpPosition
GetCursorPos>X2,Y2
End>GetUpPosition
GoSub>MsgMod
SRT>MsgMod
MessageModal>%X1%,%Y1%,%X2%,%Y2%
End>MsgMod
Goto>MainLoop
SRT>END
Goto>ENDMACRO
End>END
label>ENDMACRO
//----END-----
Code: Select all
Aaron