Classes
Moderators: Dorian (MJT support), JRL
Classes
I really enjoy MS and have been using it for a while now... a number of the macros I have put together have started to get really big. Some are over 12,000 lines long. With code being that length it can be really hard telling people what each thing does and even if I comment things it is still hard to find what your looking for. So I would suggest adding something like classes sort of like in C++... if that is to much then you could make it so people could create sections that are tabed at the top of the macro code. You could have 5 tabs that are like 5 docs but really when the macro is run they are all concant together and run through. Thus making it easy to sort through large macros.
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Have you seen the new Include statement? That might help.
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?
Its been almost 4 months or so since I started this thread and since then I have created a number of macros. A number of them run between 10 to 18 thousand lines long. The only problem that I am running into now is due to the length of the code. Like I stated before it would greatly help to have the option to add classes to keep all the code in order. (I still rather not put all my code out in the open for people to look at.)
Anyone agree with this idea?
-Stbede
(I am using Macro Scheduler Pro 9.2.01 full version to compile my exe's)
Anyone agree with this idea?
-Stbede
(I am using Macro Scheduler Pro 9.2.01 full version to compile my exe's)
Well one of them sends a request to the server asking what jobs have, will and are being run. Then it takes all the info and sends out emails each person updating them on their jobs. If the job is done it attaches the info to the email. It also takes each job as it is finished and places info into a database so to track the usage of each user. It checks to see if users are over their time limit and sends emails out get OKs from people in charge. If they respond with a yes KEY then it okay's the use of the people. If they respond with a no KEY it suspends the use on the server...
I have had to create a "Master" macro that is a GUI that controls the sub macros. The above is just one of many that reports back to the master macro and depending on what it reports the master macro runs corresponding subs.
The macros have saved us a large amount of time but like I said "it would greatly help to have the option to add classes to keep all the code in order"
-Stbede
PS what are you guys writting macros for?
I have had to create a "Master" macro that is a GUI that controls the sub macros. The above is just one of many that reports back to the master macro and depending on what it reports the master macro runs corresponding subs.
The macros have saved us a large amount of time but like I said "it would greatly help to have the option to add classes to keep all the code in order"
-Stbede
PS what are you guys writting macros for?
I love Macro Scheduler and have been using it for some time now. I have been scanning the forum for tips and never felt an urge to post anything. When I saw a post about classes it hit me like a tone of bricks. I would love to see this added into Macro Scheduler. I to have macros that are around the same size.
Macro Guy!
Macro Guy!