AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

WinSet,AlwaysOnTop,On conflicts with SplashImage

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
ranomore



Joined: 06 Nov 2004
Posts: 178
Location: Salt Lake City, UT

PostPosted: Thu Dec 16, 2004 7:52 pm    Post subject: WinSet,AlwaysOnTop,On conflicts with SplashImage Reply with quote

All of this is in the autoexecute section:
Code:
Splashimage, c:\logo.gif, b cwFFFFFF WS700
IniRead,aotop,c:\docutech\dstool.ini,cfg,aotop,8
...
Menu, Customize, add, Always On Top, cfg_aotop
Menu, Tray, Add, Customize, :Customize
Gui, Show, x%XPos% y%YPos%, %gui1Title%
if aotop <> 0
{
  WinSet, AlwaysOnTop, on, %gui1Title%
  Menu, Customize, ToggleCheck, Always On Top
}
...
SplashImage, Off


If I comment out the first line, the winset command works just fine. I know I could just move the WinSet command after the SplashImage, Off line, but I'd like to keep the code together--for purposes of sanity. Shocked
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10465

PostPosted: Fri Dec 17, 2004 1:24 pm    Post subject: Reply with quote

Quote:
WinSet,AlwaysOnTop,On conflicts with SplashImage
Do you mean that the GUI window covers up the SplashImage window? If so, that is normal because SplashImage is always-on-top by default. Therefore, since both windows are always-on-top, the one sent to the top most recently probably takes precedence. To prevent that, it's probably best to change the order as you described, or try using "WinSet, Bottom,, WinTitle" on the SplashImage window.
Back to top
View user's profile Send private message Send e-mail
ranomore



Joined: 06 Nov 2004
Posts: 178
Location: Salt Lake City, UT

PostPosted: Fri Dec 17, 2004 4:08 pm    Post subject: Reply with quote

OK, I re-ordered the WinSet command and it works, but what actually happened was that I was not able to set the GUI window as Always On Top while the SplashImage command was running. The command executed, but the behavior did not change.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10465

PostPosted: Fri Dec 17, 2004 11:47 pm    Post subject: Reply with quote

That's odd. I don't see any reason for it in the code, so maybe there is some restriction on how many windows a process can have always-on-top simultaneously.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group