I'm brand new to AutoHotkey and was hoping to get a simple problem solved. I use
UltraEdit as a text editor, but some programs call notepad.exe (under the Windows folder) directly. This is not only annoying, it can be problematic.
My thought was to create a script and save it as notepad.exe in C:\WINDOWS\system32. That part I've accomplished. What I'm still having trouble with is the script content.
I get UltraEdit to run, but its current directory is not correct. I need a way to set the current directory to what I want (e.g. C:\Temp).
When notepad.exe is run, the format of the command is always "notepad.exe [path to file]". I'm not sure what the right way to pass the path to UltraEdit would be. I had been trying to simply pass "%1% %2%" and so on up to %9%, but that's a kludge. It actually seems to work, but it results in extra spaces being sent because some of those vars will be empty.
Any help would be appreciated. I know this is embarrassingly simple for hardcore scripters but this is where I'm at.[/url]