Is there a way to open notepad and make the notepad window "always on top" in one click?


Run, notepad.exe
WinWaitActive, Untitled - Notepad
If (ErrorLevel <> 0)
WinSet, AlwaysOnTop, On ; set to always-on-top.

Of course I may have done something wrong.. (By the way, I am running Chinese Windows XP)Thanks for the quick response and I do have autohotkey installed. However, when I ran the script, the notepad window appeared but it didn't stay on topOf course I may have done something wrong.. (By the way, I am running Chinese Windows XP)
Run, notepad.exe
WinWaitActive, ahk_class Notepad
If (ErrorLevel != ERROR)
WinSet, AlwaysOnTop, On ; set to always-on-top.

Original address: https://www.donationcoder.com/forum/index.php?topic=30489.0