Sign in to follow this  
Followers 0
Pakku

gui invisible, controlls visible

4 posts in this topic

hi,

this is my code

#include "GUIConstants.au3"
$obj = ObjCreate("Gif89.Gif89.1")

GUICreate("", 298, 369,-1,-1, $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)
GUICtrlCreateObj( $obj, 0, 0 , 298 , 369 )

GUISetState($GUI_HIDE)

With $obj
.filename = "meneer-1.gif"
.autostart
EndWith

While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
EndSelect

Wend

the problem is that i want to make the gui invisible but the gif file has to stay visible. so that it looks like that there is a real man ("meneer" in dutch) on the screen.

i hope i made myself clear, if there are some questions, just ask.

Arjan

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

might want to look at http://www.autoitscript.com/forum/index.ph...ndpost&p=132354

takes a bitmap though

that requires a bitmap

.... also maybe this

need to replace with your gif

opt("GUIONEVENTMODE",1)
#include <GUIConstants.au3>

;GUI
GUICreate("title", 300,300,30,30,$WS_POPUP,$WS_EX_LAYERED)

$B = GUICtrlCreateButton("TEST",100,100.50,50,-1,0x00000020)
GuiCtrlSetOnEvent($B,"hello")
$n = GUICtrlCreatePic("C:\Temp\Background1.gif",0,0,300,300,-1,0x00000020)
GUISetState(@SW_SHOW)
GuiCtrlSetState($B,$GUI_FOCUS)
GUISetOnEvent($GUI_EVENT_CLOSE,"_Exit")

while 1
Wend

func _exit()
    Exit
EndFunc

Func Hello()
    MsgBox(0,"hello","hello")
EndFunc

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

@Valuater

thanks it worked fine!

@gafrost

i will look at it sometime but the one of Valuater worked for this script, maybe i will use your answer for an orter script of me.

Arjan

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0