topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Tuesday March 19, 2024, 1:01 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: DONE: launch notepad and make it "always on top" in one click  (Read 20606 times)

honwahp

  • Supporting Member
  • Joined in 2010
  • **
  • default avatar
  • Posts: 10
    • View Profile
    • Donate to Member
Is there a way to open notepad and make the notepad window "always on top" in one click?

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: DONE: launch notepad and make it "always on top" in one click
« Reply #1 on: March 31, 2012, 08:35 PM »
if you're familiar with Autohotkey, then the following would be able to do what you want.

Code: Autohotkey [Select]
  1. Run, notepad.exe
  2. WinWaitActive, Untitled - Notepad
  3.   If (ErrorLevel <> 0)
  4.         WinSet, AlwaysOnTop, On         ; set to always-on-top.

honwahp

  • Supporting Member
  • Joined in 2010
  • **
  • default avatar
  • Posts: 10
    • View Profile
    • Donate to Member
Re: DONE: launch notepad and make it "always on top" in one click
« Reply #2 on: March 31, 2012, 08:44 PM »
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 top :(  Of course I may have done something wrong.. (By the way, I am running Chinese Windows XP)
« Last Edit: March 31, 2012, 08:53 PM by honwahp »

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: DONE: launch notepad and make it "always on top" in one click
« Reply #3 on: March 31, 2012, 09:27 PM »
It's not "one click" but you can toggle the Topmost attribute of most application windows using Topmost Toggle. Run it. It sits in the task tray. Control Right Click on the Notepad caption bar when it has the focus. (If it's not the active window just left click on it to make it active first.)

You can download here:
http://www.favessoft.com/hotkeys.html


lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: DONE: launch notepad and make it "always on top" in one click
« Reply #4 on: March 31, 2012, 10:40 PM »
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 top :(  Of course I may have done something wrong.. (By the way, I am running Chinese Windows XP)

i'm not sure what is the title of notepad in chinese winxp but try this.

Code: Autohotkey [Select]
  1. Run, notepad.exe
  2. WinWaitActive, ahk_class Notepad
  3.   If (ErrorLevel != ERROR)
  4.         WinSet, AlwaysOnTop, On         ; set to always-on-top.


honwahp

  • Supporting Member
  • Joined in 2010
  • **
  • default avatar
  • Posts: 10
    • View Profile
    • Donate to Member
Re: DONE: launch notepad and make it "always on top" in one click
« Reply #5 on: March 31, 2012, 11:51 PM »
lanux128 : Excellent!  It works now.   Many thanks to you.

MilesAhead: Thank you also for your reply.  Your method also works.