Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

GUI 'Always on top'


  • Please log in to reply
3 replies to this topic
jagpanzer
  • Members
  • 10 posts
  • Last active: Jan 29 2009 02:07 AM
  • Joined: 24 Jan 2006
Hi!

Newbie question: I'm making a GUI for a script I use a lot, and I'm wondering how I make it so that it is 'always on top' (i.e. it is visible even if another window is active, like Window Spy).

If anyone had tips on how to do this, it would be appreciated, thanks!

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005
Gui,+AlwaysOnTop

Gui, Add, Text, x0 y150 w300 Center cBlack, I'M ALWAYS ON TOP

Gui,Show,w300 h300 Center,AlwaysOnTop Window 

return 



GuiEscape: 

GuiClose: 

exitapp 

return

kWo4Lk1.png

jagpanzer
  • Members
  • 10 posts
  • Last active: Jan 29 2009 02:07 AM
  • Joined: 24 Jan 2006
Awesome!

Thanks much!

Peabianjay
  • Members
  • 12 posts
  • Last active: Nov 10 2015 05:46 PM
  • Joined: 23 Jun 2015
I was doing this....and it was working just fine. However, I just upgraded from Windows 7 to 10....and now, "AlwaysOnTop" doesn't work anymore.
 
Suggestions?
 
WinMove, %Log%, ,1300, 150, 350, 875
WinSet, AlwaysOnTop, On, %Log%
MsgBox, The window found is "%Log%".