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
What is ENDSUB
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
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 .... ?
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?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
- CyberCitizen
- Automation Wizard
- Posts: 724
- Joined: Sun Jun 20, 2004 7:06 am
- Location: Adelaide, South Australia
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