jmazor Posted January 27, 2006 Report Share Posted January 27, 2006 I can't always remember which variable is for what so I screw up coding. I've worked around this by setting up remarks at the top of each script, and using them to identify what each variable is used for in that script. Its awkward and time consuming. Is there a way to label each variable so the label would show in each command line that uses a labelled variable? Example: I might label %T96% as "XtraTab" so script that did look like this: *****************Variable Set String %T96% "Y" would instead look like this: *****************Variable Set String [XtraTab] %T96% "Y" 'Just can't figure out how to do anything like this. Thanks, Jeffrey R. Mazor Quote Link to comment Share on other sites More sharing options...
Cory Posted January 27, 2006 Report Share Posted January 27, 2006 Hey buddy! You can use set and use enviromental variables instead of ME variables. Quote Link to comment Share on other sites More sharing options...
jmazor Posted January 28, 2006 Author Report Share Posted January 28, 2006 TOPIC ONE Hi there Cory! Good to talk to you again. Would you believe I'm writing Macro's again? I gotta make fuller use of TimeMatters, my case management program. MacroExpress to the rescue!! By itself, TimeMatters takes far too many mouse moves & keystrokes. But with Mx, it becomes faster & easier to create each appropriate record when: (1) I receive an email w/ attachments , (2) save the attachments to Document Records, (3) create an email to the client and attach the documents, (4) create a reminder to the client [ToDo Record], etc. Anyway..........can you point me to instructions on how to set and use environmental variables? Also, wouldn't that create more work in Windows or autoexec.bat files or logon scripts if they were to be used on multiple machines? TOPIC TWO While we're at it, can you tell me how to set up a macro that will fire once and only once when a window with a certain title opens. It would have to then stop, even if the window continues to have focue. It would also not re-fire when the window is minimized & later maximized. 'Look forward to hearing from you. Jeff Quote Link to comment Share on other sites More sharing options...
Cory Posted February 1, 2006 Report Share Posted February 1, 2006 We had a discussion about it here in this forum a while back. I'm hyper busy now so I don't have time to look it up for you. Just search thru my posts and you'll find it. For item 2 look into the activation tab of the scripting editor and use the window activation. Then check out the various 'wait for' commands in the timing section. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.