AutoHotkey Community

It is currently May 26th, 2012, 8:41 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: July 3rd, 2008, 6:21 am 
Offline

Joined: February 28th, 2006, 8:42 am
Posts: 159
how can you keep a window on top?
I tried the following, which did not work, no doubt cuz i'm a noob:

Ifwinexist, Netflix Movie Viewer
winset, alwaysontop, on

It did diddly squat, so to speak. Clearly i'm missing something...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 3rd, 2008, 6:28 am 
Offline

Joined: July 2nd, 2008, 3:59 pm
Posts: 62
SetTitleMatchMode, 3
F1::
IfWinExist, EXACT TITLE OF WINDOW
{
WinActivate
WinSet, AlwaysOnTop, Toggle
}
else
return

press f1 to set alwaysontop ON and once more to OFF
change "Toggle" to "On" if you want it on forver
-----
the problem in your script is that Window management command will do changes to the active window, but if you use WinSet, alwaysontop, on, WINDOWNAME then it will work.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 3rd, 2008, 5:53 pm 
Offline

Joined: February 28th, 2006, 8:42 am
Posts: 159
thanks! one question -- is there an elegant way to have it do this without a hotkey? In other words, whenever the netflix window is there, it automatically makes it 'on top'?
Would that require some kind of timer to periodically check for the existence of that window? Or is there a better solution than that?

(i'm not necessarily looking for a script here, just curious how that would work. does it need a timer? etc)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 29th, 2009, 4:19 am 
Offline

Joined: May 13th, 2009, 5:51 pm
Posts: 30
you might want to have a look at my script here, I was working on something similar and this will get you both a way to identify the netflix windows and a timer solution to checking for them (as IrishThug pointed out, good to set a state so you dont have to keep checking as often). Hope this helps!
Cheers


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 29th, 2009, 6:14 am 
Offline

Joined: February 28th, 2006, 8:42 am
Posts: 159
Lafncow wrote:
you might want to have a look at my script here, I was working on something similar and this will get you both a way to identify the netflix windows and a timer solution to checking for them (as IrishThug pointed out, good to set a state so you dont have to keep checking as often). Hope this helps!
Cheers


thanks for letting us know! your script rocks. I'm using it as is. :)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: poserpro, sjc1000 and 58 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group