What is ENDSUB

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
jimbobaggins
Newbie
Posts: 1
Joined: Wed Nov 21, 2012 1:28 pm

What is ENDSUB

Post by jimbobaggins » Wed Nov 21, 2012 1:34 pm

Hi
Iam writing a simple macro using onevent and an srt called cell1.
when i try to run the script i get an error saying it cant find endsub for cell1

there is no reference to endsub in the help file

code looks like this

OnEvent>KEY_DOWN,VK_NUMPAD2,,Cell1

SRT>Cell1
SetFocus>Traktor
MouseMove>34,320
LClick
End>Cell1

suggestions or maybe help

thanks

baggins

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Nov 21, 2012 1:46 pm

It can't find this line:

End>Cell1

Are you sure this is how the code appears in your script? Are there any trailing spaces or other characters? Basically the script can't match the SRT> to a corresponding End> so I suspect some typo or other characters in there (perhaps one of the lower case "L"s is a 1 or something like that .... ?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
CyberCitizen
Automation Wizard
Posts: 724
Joined: Sun Jun 20, 2004 7:06 am
Location: Adelaide, South Australia

Post by CyberCitizen » Fri Nov 23, 2012 3:50 am

When I copied your code from here it did have a trailing space. I would also suspect its something as simple as that.

Code: Select all

OnEvent>KEY_DOWN,VK_NUMPAD2,,Cell1
SRT>Cell1
  SetFocus>Traktor
  MouseMove>34,320
  LClick
End>Cell1
FIREFIGHTER

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts