ken82m Posted May 14, 2004 Posted May 14, 2004 I'm still trying to learn this thing I have downloaded the big manual and I'm reading it but I can't seem to make much sense of it. I guess I'm just an idiot, what else is new lol I am trying the building tools now but they seem to crash a lot. Does anyone have an idiots guide to AutoIT Gui? Maybe it's just the syntax and how to use it. Perhaps if someone has some sample scripts I can run and examin something a little more complex than just here is the box and type your name Thanks, Kenny "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."
scriptkitty Posted May 14, 2004 Posted May 14, 2004 I like that Idea, maybe a beginers help file as an alternate download. Starting with "Hello world" and ending up with hotkeys, arrays, ini usage, and parsing downloaded webpages. AutoIt3, the MACGYVER Pocket Knife for computers.
Helge Posted May 14, 2004 Posted May 14, 2004 I think the best way to learn, and the way I learned AutoIt, is to look at some basic examples and try to understand what every step does. And then you can modify the examples, to easier take the leap over from reading scripts to script yourself. Then when you've understood the examples and are able to create something similar, you can try to make some more "advanced" scripts.. If your script fails then study the helpfile, but if you still can't figure it out then we're glad to help you here at the forum. Good luck and happy scripting !
ken82m Posted May 14, 2004 Author Posted May 14, 2004 I did some searching and downloaded the latest beta. The help file in it does look alot better. That first sample script with all the controls is interesting I'm going over it now. "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."
Smudley Posted May 14, 2004 Posted May 14, 2004 (edited) I downloaded the latest Autoit3-Gui (102.20) and tried some samples in the help file and I get this message.GUISetControlEX(-1,$GUI_FOCUS) ;GUISetControlEX(-1,^ERRORError: Variable used without being declared.Seems like it doesn't reconize $GUI_FOCUSWhat am I doing? Edited May 14, 2004 by Smudley -= Smudley =-
ken82m Posted May 14, 2004 Author Posted May 14, 2004 (edited) isn't there an option that controls whether varaibles have to be declared or not? try adding this to the beginning of the script: $GUI_FOCUS = "" Edited May 14, 2004 by ken82m "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."
Developers Jos Posted May 14, 2004 Developers Posted May 14, 2004 I downloaded the latest Autoit3-Gui (102.20) and tried some samples in the help file and I get this message.Seems like it doesn't reconize $GUI_FOCUSWhat am I doing? you need to #include this file: http://www.autoitscript.com/fileman/users/jpm/AutoIt3-gui/gui_include.au3 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.
midiaxe Posted May 14, 2004 Posted May 14, 2004 I'm using the unstable version (3.0.102) which has the GUI functionality and to use $GUI_FOCUS and other GUI constants, I have to include the following code in my script: #include <GuiConstants.au3> The code works if you use the AutoIt installer. If you manually install 3.0.102 using the zip file, you will need to change the code to: #include "d:\AutoIt3-Beta\Include\GuiConstants.au3" Where "d:\AutoIt3-Beta" is the directory location where you install AutoIt Hope this helps! =MX=
Smudley Posted May 14, 2004 Posted May 14, 2004 Thanks, you would figure that AutoIt3-GUI.exe would automatically include that or have it built in. Oh, well -= Smudley =-
jpm Posted May 14, 2004 Posted May 14, 2004 Thanks, you would figure that AutoIt3-GUI.exe would automatically include that or have it built in.Oh, well AutoIt-gui was a pre build before integration which for the time being you find under unstable area.The constants are not included by default you always need to add #include <GUIConstants.au3>and/or #include <Constants.au3>or more any include located in the AutoIT3\include folder.Good GUI
Josbe Posted May 15, 2004 Posted May 15, 2004 I think the best way to learn, and the way I learned AutoIt, is to look at some basic examples and try to understand what every step does. And then you can modify the examples, to easier take the leap over from reading scripts to script yourself. Then when you've understood the examples and are able to create something similar, you can try to make some more "advanced" scripts.. If your script fails then study the helpfile, but if you still can't figure it out then we're glad to help you here at the forum. Good luck and happy scripting !I agree too. Like the beerman's signature: If you don't first suckseed. try, try again. *sukeed **sucseed ***succeed Try editing examples and look the behavior. AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta
brett Posted May 15, 2004 Posted May 15, 2004 Where is everyone finding these examples? I can't find any. -Brett
Administrators Jon Posted May 15, 2004 Administrators Posted May 15, 2004 Where is everyone finding these examples? I can't find any.There were a lot of examples with JP's custom build but none in the official "unstable" version yet (hint hint).Some nicely commented examples of increasing complexity would be cool. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
SlimShady Posted May 15, 2004 Posted May 15, 2004 (edited) There were a lot of examples with JP's custom build but none in the official "unstable" version yet (hint hint).Some nicely commented examples of increasing complexity would be cool.Definitely.Found examples in the latest help file of AutoIt. Edited May 15, 2004 by SlimShady
Smudley Posted May 15, 2004 Posted May 15, 2004 Where is everyone finding these examples? I can't find any.The examples I've been hacking on are found in the Autoit3-Gui .chm help file.For example, lookup function GUIRead and then scroll down to the bottom of that topic and you'll see the example. -= Smudley =-
..t.k. Posted May 26, 2004 Posted May 26, 2004 Hi, all!I'm signing up for the the role as idiot, as well. Yesterday I downloaded AutoBuilder 0.4 found here at the formum.I've gotta say it looks good, I'm betting I'll find it very usefull as soon as I can get it to work. ....and that's sort of the problem.When I try to run scripts (not compiled ones) I get an error msg that goes something like this:GuiCreate("MyGui", 407,320,(@Desktopheight-407)/2, (@DesktopHeight-320)/2, 0x04CF000) ^ERRORError: Unknown function nameOf course, GuiCreate(etc....), is the reference to the function that I'm trying to use, and which AutoBuilder has created for me.Now, from what I gather from the forum, it should be possible to download something called: AutoIt3-GUI.exeAs I understand it, and I might very well be wrong, this little piece of software enables Auto-It to understand a set of functions all starting with GuiSomethingIf so, where the hell can I get it??? Help is very much appreciated! [font="Geneva"]..t.k.[/font]
Administrators Jon Posted May 26, 2004 Administrators Posted May 26, 2004 If so, where the hell can I get it??? Help is very much appreciated!http://www.autoitscript.com/autoit3/files/unstable/autoit/ Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
Amaruq Posted May 26, 2004 Posted May 26, 2004 That first sample script with all the controls is interestingI have also downloaded the lastest release and now wondering if I can download the sample mentioned in the quote somewhere.(assuming this is the screenshot Jon has used here and there to illustrate gui's functions)More perticular I'm looking for an example with a changed color font.Just like the 'Date control expands in to a calendar ...'I just can't seem to figure it out myself
Holger Posted May 26, 2004 Posted May 26, 2004 (edited) GUISetControl("label", "Date control expands in to a calendar...", 1, 30) GUISetControlEx(-1,0,0,"",0xff); set text in red0xff is the new color.Forgot: the code for the sample is in the help-file too:Go to:"GUI Reference" -> scroll down to the picture -> and then klick at the end of the line "you can look at the corresponding script" Edited May 26, 2004 by 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
Administrators Jon Posted May 26, 2004 Administrators Posted May 26, 2004 I'm still a gui novice myself (even though I am modifying the actual code behind the scenes). All the example I'm using are from JP's tests - we need some offical examples doing for the installer. The code you are interested in is: GUISetControl("label", "Date control expands in to a calendar...", 1, 30) GUISetControlEx(-1,0,0,"",0xff) Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
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