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 

How do I make a GUI window stay on top of WC3?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Hotfreeze
Guest





PostPosted: Sat Mar 22, 2008 1:29 am    Post subject: How do I make a GUI window stay on top of WC3? Reply with quote

I am trying to put a transparent GUI in top of the Warcraft3 window but it the window dissapears. It works however in outside the game together with other explorer windows. This is my code:

Code:
CustomColor = EEAA99  ; Can be any RGB color (it will be made transparent below).
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow  ; +ToolWindow avoids a taskbar button and an alt-tab menu item.
Gui, Color, %CustomColor%
Gui, Submit, NoHide

Gui, Add, Button, x46 y30 w80 h40 , Ghoul
Gui, Add, Button, x46 y80 w80 h40 , Abom
Gui, Add, Text, x136 y30 w100 h30 , Text1
Gui, Add, Text, x136 y90 w100 h30 , Text2
Gui, Add, Edit, x136 y60 w60 h20 , Edit
WinSet, TransColor, %CustomColor% 150

SetTimer, UpdateOSD, 200


Gui, Show, x649 y97 h139 w264, New GUI Window
Return

GuiClose:
ExitApp

UpdateOSD:
WinSet, Top
WinSet, Redraw

return


Any ideas? What am I doing wrong?

Thanks in advance.
Back to top
Superfraggle



Joined: 02 Nov 2004
Posts: 753
Location: London, UK

PostPosted: Sat Mar 22, 2008 2:38 am    Post subject: Reply with quote

If you are running the game in full screen then it will block out all standard windows. If you can run the game in a window, and maxmise the window, the game will almost be full screen but you can keep you app on top that way.

The only way I know of getting it to come on top of a full screen game would be with a directx Overlay, which AFAIK has yet to be done in AHK. Although if someone was to make one I think it could be used for a quite a few apps.
_________________
Steve F AKA Superfraggle

http://r.yuwie.com/superfraggle
Back to top
View user's profile Send private message MSN Messenger
Hotfreeze
Guest





PostPosted: Sat Mar 22, 2008 7:35 pm    Post subject: But, the Tooltip command manages to stay on top Reply with quote

Tooltip seems to work since it is an alwaysontop command. It is possible to see it on top of the game screen.

It is frustating that The GUI window canīt do that even though it is possible to set it Alwaysontop like in the code I posted earlier. Are you sure there is no way around for the GUI window?

Perhaps the only solution is to run the GUI window on an extended desktop, but it will require the right choice of coordinate systems?
Back to top
Gosugenji



Joined: 07 May 2008
Posts: 13
Location: In your Internets

PostPosted: Sun May 11, 2008 9:02 pm    Post subject: Reply with quote

Possibly take advantage of the clipboard feature. make your script clipboard whatever text your using. and paste it in when you want to see data, just make sure your pming yourself.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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