Jump to content
Macro Express Forums
Cory

Run on Winodws Startup

Recommended Posts

Where is the preference “Run on Windows Startup” saved in the registry? I can't seem to find it.

Share this post


Link to post
Share on other sites

The 'Run on Windows Startup' setting is set from the shortcut in the Startup folder. On Windows XP it is in either

C:\Documents and Settings\<user name>\Start Menu\Programs\Startup

or

C:\Documents and Settings\All Users\Start Menu\Programs\Startup

. Windows Vista uses different folder locations.

Share this post


Link to post
Share on other sites

Working on Saturday eh?

 

I know the startup folder bit. Wha I was looking for was in the prefernces there is an option for "Run on Windows Startup" checkbox followed be a "Program Paramters" section. I found the parameters but I cna't find the startup option.

Share this post


Link to post
Share on other sites

How do you make your code boxes so svelte? I just did one and the'yre huge.

Like this:

Test

Edited by Cory

Share this post


Link to post
Share on other sites

Also if you could explain how tihs option in ME works it would be cool.

Share this post


Link to post
Share on other sites

If the startup shortcut exists, the checkbox is enabled in the preferences. If the startup shortcut does not exist, the checkbox is disabled. When you change the setting in 'Run on Windows Startup' it either deletes or creates the startup shortcut.

Share this post


Link to post
Share on other sites
How do you make your code boxes so svelte? I just did one and the'yre huge.
I dunno. I just make sure there aren't any blank lines or characters next to the code \code tags.

Share this post


Link to post
Share on other sites
I know the startup folder bit. Wha I was looking for was in the prefernces there is an option for "Run on Windows Startup" checkbox followed be a "Program Paramters" section. I found the parameters but I cna't find the startup option.

The parameter string in the Options->Preferences->Startup->Command Line Parameter field is placed within the shortcut link's Target field when the shortcut link is created. Is this what you mean?

Share this post


Link to post
Share on other sites

This answers my question. The weird bit is that when I couldn’t find a section I tested to see if the mechanism was to generate the file as described but it didn’t. I must have missed something.

 

What is the mechanism for generating the shortcut files? Specifically when does it happen. In addition I would like to know what the contingency is for an existing shortcut. If, say, you change the command line parameter does it update the shortcut, generate a new one or what?

Share this post


Link to post
Share on other sites
What is the mechanism for generating the shortcut files? Specifically when does it happen.

It happens when you click the Apply button in Options->Preferences->Startup. If you open the folder where the shortcut link is kept (see Kevin above) you can see the change take place. If you uncheck Run on Windows' Startup and click Apply, you will see the shortcut link disappear, and vice-versa.

 

In addition I would like to know what the contingency is for an existing shortcut. If, say, you change the command line parameter does it update the shortcut, generate a new one or what?

Same goes for changes to the Command Line Parameters field. The shortcut link will be rewritten.

Share this post


Link to post
Share on other sites

How about afterwards? What the user deletes the shortcut file, will ME recreate it? Also what if a file already exists with a special command line parameter already?

 

I think I may have been barking up the wrong tree here. It sounds like it would be just as good a measaure to manage teh shortcuts themselves. Unless ME will recreate if it wakes up and sees it missing.

Share this post


Link to post
Share on other sites
What is the mechanism for generating the shortcut files? Specifically when does it happen.
It happens when you click the Apply button in Options->Preferences->Startup.
This is true after you enable the 'Run on Windows Startup' option.

 

What the user deletes the shortcut file, will ME recreate it?
No. The shortcut is the setting. Similarly, if the 'Run on Windows Startup' option is unchecked and the user creates a shortcut named 'Macro Express 3.lnk' outside of Macro Express, then the option will be enabled the next time you go into the Macro Express Preferences.
Also what if a file already exists with a special command line parameter already?
If it is named something different than 'Macro Express 3.lnk' then it will remain untouched by Macro Express. If it is named 'Macro Express 3.lnk' then Macro Express will overwrite it with the command line parameters defined in the preferences.

Share this post


Link to post
Share on other sites

Ah, this is exactly the kind of answer I was looking for but it doesn’t seem very useful as ME doesn’t appear to enforce the file existence after the fact. IOW if I check the box, close preferences, and manually delete the file ME will never recreate it. Since it doesn’t ‘stick’ and wants to add it to places like C:\Users\cory.CJ\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup which will differ from machine to machine I think it will be better to just manage the shortcut files and if necessary protect them with NTFS ACLs.

 

Thansk guys!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...