Load macro file when UE launch from Windows Explorer Shell

Help with writing and playing macros

Load macro file when UE launch from Windows Explorer Shell

Postby ungdh » Tue Nov 14, 2006 10:19 am

In command line or start menu short cut we're able to load macro file by specify /M=. Any idea how to set the equivalent for UE launched from Windows Explorer Shell, right click command?
User avatar
ungdh
Newbie
 
Posts: 2
Joined: Tue Nov 14, 2006 12:00 am

Re: Load macro file when UE launch from Windows Explorer Shell

Postby Mofi » Tue Nov 14, 2006 10:51 am

First you can specify in UltraEdit a macro file which should be automatically loaded on start of UltraEdit if not a macro file on command line is specified.

Second except for the shell integration with the ue32ctmn.dll (see right click to "open in UltraEdit") you can create for every file assiociation a specific commmand line for opening a file. A Windows file association is nothing else than a command line specification with current file name as parameter. By default such a command line specification for a file type contains only the name of the EXE with full path and "%1" as parameter specification for the current file. But you can add everything you want to such a command line. See for example In Windows, how do I associate an application with a file type? or simply use help of Windows which is by default for installed for all Windows but rarely used by the users.

At Different font depending on file extension you can see a registry example how to assign 2 files with UltraEdit with an additional command line parameter giving you an idea how to do that. It's just an example, there are a few methods how it can be done.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4064
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Load macro file when UE launch from Windows Explorer Shell

Postby ungdh » Tue Nov 14, 2006 12:39 pm

OK, got it. Thanks!
User avatar
ungdh
Newbie
 
Posts: 2
Joined: Tue Nov 14, 2006 12:00 am


Return to Macros