Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • August 31, 2015, 04:49:44 PM
  • Proudly celebrating 10 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 7665 times)

honwahp

  • Supporting Member
  • Joined in 2010
  • **
  • gravatar 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,218
    • View Profile
    • Coding Snacks by Lanux128
    • Donate to Member
Re: DONE: launch notepad and make it "always on top" in one click
« Reply #1 on: March 31, 2012, 08:35:45 PM »
if you're familiar with Autohotkey, then the following would be able to do what you want.

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

honwahp

  • Supporting Member
  • Joined in 2010
  • **
  • gravatar 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: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:06 PM by honwahp »

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 6,193
    • View Profile
    • Miles Ahead Software
    • Donate to Member
Re: DONE: launch notepad and make it "always on top" in one click
« Reply #3 on: March 31, 2012, 09:27:04 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,218
    • View Profile
    • Coding Snacks by Lanux128
    • Donate to Member
Re: DONE: launch notepad and make it "always on top" in one click
« Reply #4 on: March 31, 2012, 10:40:22 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
  1. Run, notepad.exe
  2. WinWaitActive, ahk_class Notepad
  3.   If (ErrorLevel != ERROR)
  4.         WinSet, AlwaysOnTop, On         ; set to always-on-top.
  5.  


honwahp

  • Supporting Member
  • Joined in 2010
  • **
  • gravatar 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:42 PM »
lanux128 : Excellent!  It works now.   Many thanks to you.

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