RE: [Disarmed] RE: Re: Floating Toolbar
"Petr Dyntar" <[email protected]> Wed, 3 Oct 2007 10:30:40 +0200
| Newsgroups | gmane.comp.windows.autoit.user |
|---|---|
| Message-ID | <[email protected]> |
Here i got some kind of "toolbar"
its checking if "winexists",if true,it shows toolbar gui,if false,gui is hidden
looking for something like that?
;----------------------------------------------------------------------------------------
#include <GUIConstants.au3>
HotKeySet ("{ESC}", "esc")
Opt("WinTitleMatchMode", 1) ;1=start, 2=subStr, 3=exact, 4=advanced
$Ca = GUICreate("", 500, 20, 300, 10, $WS_POPUP,$WS_EX_WINDOWEDGE + $WS_EX_DLGMODALFRAME)
GUISetBkColor(0x11BBFF, $Ca)
GUICtrlCreateGraphic(15, 25, 150, 90, $SS_SUNKEN)
GUICtrlSetColor(-1, 0x11BBFF)
$fst1_button=GUICtrlCreateButton ( "fst1",5,3,30,15,)
GUICtrlSetOnEvent (-1, "fst1_pressed")
GUICtrlSetFont($Ca, "12", "50", "", "Palatino LinoType Bold")
GUICtrlSetFont($fst1_button, "10", "50", "", "Palatino LinoType Bold")
GUICtrlSetColor($fst1_button, 0x11BBFF)
While 10
call ("check")
Wend
Func fst1_pressed ()
WinActivate("Reflection X Root Window", "")
send ("ssh fczpcgfst1")
EndFunc
func check ()
if WinExists ("Microsoft PowerPoint - [SFC_to_eRMA_Upload_v2]") then
GUISetState(@SW_SHOW)
else
GUISetState(@SW_HIDE)
endif
endfunc
func esc ()
Exit
endfunc
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Gert Scheepers
Sent: Wednesday, October 03, 2007 8:41 AM
To: [email protected]
Subject: [Disarmed] RE: [AutoIt] Re: Floating Toolbar
Hi Larry
I want the toolbar to only float above a specific application and not float
on top of any other apps.
I seem to get it right but after minimizing the app and restoring use the
toolbar does not return with the app.
Gert
_____
From: AutoItList@yahoogro <mailto:AutoItList%40yahoogroups.com> ups.com [mailto: AutoItList@yahoogro <mailto:AutoItList%40yahoogroups.com> ups.com] On
Behalf Of larrydalooza
Sent: 02 October 2007 17:08 PM
To: AutoItList@yahoogro <mailto:AutoItList%40yahoogroups.com> ups.com
Subject: [AutoIt] Re: Floating Toolbar
> I am trying to write a toolbar for an application and I want it to
stick to
> the specific application, thus minimize or hide when app not active
and only
> be visible on this one app.
Define "stick"...
Lar.
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]