Abilio_KID Posted June 28, 2004 Posted June 28, 2004 Hmm... I'm trying to start 'thinking' in GUI terms. I made a small script to test a few GUI functions. If I double click the script it launches AutoIT 3 and does... well... nothing. Do all GUI scripts need to be ran by AutoIt3-gui.exe? At this time wouldn't AutoIt3.exe be able to execute them?
Developers Jos Posted June 28, 2004 Developers Posted June 28, 2004 Do you have a GuiShow() statement ? Or maybe show what you have so we can have a look..... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Holger Posted June 28, 2004 Posted June 28, 2004 What version do you use?The latest unstable autoit3-version (with gui ;-) ) can be found here:http://www.hiddensoft.com/autoit3/files/unstable/autoit/Could you paste your small script or a sample of it so we can see if there are any errors in it?Regards Holger Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView
pekster Posted June 28, 2004 Posted June 28, 2004 (edited) Abilio_KID said: Do all GUI scripts need to be ran by AutoIt3-gui.exe? At this time wouldn't AutoIt3.exe be able to execute them? Edit: wasn't aware of the post above mine when I started composing. Oh well; better too much information than too little Version 3.0.101 does not support GUI functions. If you are using the latest beta to run or compile your script, the functions are there. Since your script ran, it was able to understand the GUI function calls, so it must be an error in your code (intent error, not syntax error.) Edited June 28, 2004 by pekster [font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.
Abilio_KID Posted June 28, 2004 Author Posted June 28, 2004 I have the latest unstable version ( I check almost everyday) and I was just starting the script, nothing yet, just this: GUICreate("My GUI") GUIWaitClose() I see in task manager all it does is start AutoIt 3 and quickly leave it.
pekster Posted June 28, 2004 Posted June 28, 2004 (edited) You need a GuiShow() call in there, otherwise it will not display your GUI. This should give you a blank GUI sized to whatever the defaults are with no controls in it:GUICreate("My GUI") GuiShow() GUIWaitClose()Same as your code, but with a GuiShow call in there.Typo corrected Edited June 28, 2004 by pekster [font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.
Abilio_KID Posted June 28, 2004 Author Posted June 28, 2004 I just figured it (before I saw this last post).The documentation needs to be rectified as most examples do not include GuiShow ()
pekster Posted June 28, 2004 Posted June 28, 2004 Abilio_KID said: The documentation needs to be rectified as most examples do not include GuiShow ()Requiring GuiShow was a recent change, and sometimes the documentation isn't updated right away since it is a beta version. I'm sure someone will fix it eventually. [font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.
Abilio_KID Posted June 28, 2004 Author Posted June 28, 2004 In my free time I'm converting the help file to portuguese if anyone is interested. When such changes are put into the help file, I'll be glad to convert them too Well, since I'm starting playing with windows, here's another question:$WS_EX_TRANSPARENTWhat's the purpose of this? When I move the window the contents get screwed. Also, $WS_EX_LAYERED. I read a bit about layered windows Googleing the net. This seems to be the 'new' way Windows 2000 and XP deal with transparency effects, mainly in Windows. I'd like to combine the above two styles to make a windows with a custom shape or even semi transparent. Is this possible in AutoIt 3?
Valik Posted June 28, 2004 Posted June 28, 2004 Abilio_KID said: In my free time I'm converting the help file to portuguese if anyone is interested. When such changes are put into the help file, I'll be glad to convert them too Well, since I'm starting playing with windows, here's another question:$WS_EX_TRANSPARENTWhat's the purpose of this? When I move the window the contents get screwed. Also, $WS_EX_LAYERED. I read a bit about layered windows Googleing the net. This seems to be the 'new' way Windows 2000 and XP deal with transparency effects, mainly in Windows. I'd like to combine the above two styles to make a windows with a custom shape or even semi transparent. Is this possible in AutoIt 3?Those styles are currently useless because they also require manipulation by another Windows function (SetLayeredWindowAttributes()) which is not exposed to AutoIt currently.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now