 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
ranomore
Joined: 06 Nov 2004 Posts: 178 Location: Salt Lake City, UT
|
Posted: Thu Dec 16, 2004 7:52 pm Post subject: WinSet,AlwaysOnTop,On conflicts with SplashImage |
|
|
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.  |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Fri Dec 17, 2004 1:24 pm Post subject: |
|
|
| 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 |
|
 |
ranomore
Joined: 06 Nov 2004 Posts: 178 Location: Salt Lake City, UT
|
Posted: Fri Dec 17, 2004 4:08 pm Post subject: |
|
|
| 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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Fri Dec 17, 2004 11:47 pm Post subject: |
|
|
| 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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|