quaizywabbit Posted May 6, 2005 Author Share Posted May 6, 2005 (edited) I'm not thinking this is a noob script...I get an error when I try to run it...Just tell me to back off if this is way out of my league because I'm not even really sure what this script is for, just looked fun. Thanks<{POST_SNAPBACK}>you need to "#include <ANYGUI.au3>" (assuming you put it in your AutoIt Include directory) in whatever script you're making, and call functions in it to embed child windows or controls into an existing window or control(or alter Styles/exstyles of existing windows or controls)it won't do anything by itself....... Edited May 6, 2005 by quaizywabbit [u]Do more with pre-existing apps![/u]ANYGUIv2.8 Link to comment Share on other sites More sharing options...
Flaming_Liberal90 Posted May 6, 2005 Share Posted May 6, 2005 Alright I get what you mean now, thanks a lot. Link to comment Share on other sites More sharing options...
random667 Posted May 25, 2005 Share Posted May 25, 2005 (edited) any examples of what this does, what it is, or how to use it? if so, maybe some instruction should be in the first post or at least in the zip file? may keep noobs like me from asking. is it supposed to have a syntax error? C:\Documents and Settings\Administrator\Desktop\ANYGUI.au3(332,70) : ERROR: GUICtrlCreateGraphic(): undefined function. $a[1] = GUICtrlCreateGraphic ($PosX, $PosY, $SizeX, $SizeY, $style) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ Edited May 25, 2005 by random667 It is really sad to see a family torn apart by something as simple as a pack of wolves. Link to comment Share on other sites More sharing options...
DaleHohm Posted May 25, 2005 Share Posted May 25, 2005 It is fair criticism, but there are examples in this post... start at the end and work backwards to find them. Also see the post just prior to yours... this is not a script you execute stand-alone, but you must include it in another and calls its functions. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
random667 Posted May 25, 2005 Share Posted May 25, 2005 It is fair criticism, but there are examples in this post... start at the end and work backwards to find them. Also see the post just prior to yours... this is not a script you execute stand-alone, but you must include it in another and calls its functions.Dale<{POST_SNAPBACK}>right you are, i should have known to read this whole thread from back to front. ok, i put it in C:\Program Files\AutoIt3\Include (wish i knew to put it there from the start)i added this into to my script:#include <ANYGUI.au3> _TargetaddButton("WTF?","10","10","120","120","","","Edit1")and i still get the same syntax error:C:\Program Files\AutoIt3\Include\ANYGUI.au3(332,70) : ERROR: GUICtrlCreateGraphic(): undefined function. $a[0] = GUICtrlCreateGraphic ($PosX, $PosY, $SizeX, $SizeY, $style)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^what am i missing now?no, i am not reading this whole thread from back to front due to lack of instructions. not to be rude but i have spent enough time trying to figure out how to use this, that i have forgot what the original problem with my script was that brought me here in the first place. It is really sad to see a family torn apart by something as simple as a pack of wolves. Link to comment Share on other sites More sharing options...
quaizywabbit Posted May 25, 2005 Author Share Posted May 25, 2005 do you have the latest 'release' version? [u]Do more with pre-existing apps![/u]ANYGUIv2.8 Link to comment Share on other sites More sharing options...
random667 Posted May 25, 2005 Share Posted May 25, 2005 (edited) do you have the latest 'release' version?<{POST_SNAPBACK}>yepdowloaded it yesterdayandmy autoit is version 3.1.1i tryed it om my pc at home and the one at worknewest versions on both machinesi even tryed updating to the beta 3.1.1.39but i still get the same error Edited May 25, 2005 by random667 It is really sad to see a family torn apart by something as simple as a pack of wolves. Link to comment Share on other sites More sharing options...
random667 Posted May 25, 2005 Share Posted May 25, 2005 GUICtrlCreateGraphic what is this, where do i get it, and where should it go? It is really sad to see a family torn apart by something as simple as a pack of wolves. Link to comment Share on other sites More sharing options...
Helge Posted May 25, 2005 Share Posted May 25, 2005 (edited) GUICtrlCreateGraphicwhat is this, where do i get it, and where should it go? <{POST_SNAPBACK}>You need one of the latest betas, which can be found here.. Edited May 25, 2005 by Helge Link to comment Share on other sites More sharing options...
random667 Posted May 25, 2005 Share Posted May 25, 2005 i did i even tryed updating to the beta 3.1.1.39but i still get the same error It is really sad to see a family torn apart by something as simple as a pack of wolves. Link to comment Share on other sites More sharing options...
DaleHohm Posted May 25, 2005 Share Posted May 25, 2005 Beware that the beta installer does not replace the default instance of AutoIt. If you've installed one of the SciTe updates you can use Alt-F5 instead of F5 to execute the beta code. I usually stick the floowing line at the top of my code to be sure I don't screw this up: ConsoleWrite("AutoIt Version --> " & @AutoItVersion & @CR) Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
random667 Posted May 25, 2005 Share Posted May 25, 2005 (edited) i tryed the zip and the installer this is what i get when i do the beta run in SciTe: >Running: (3.1.1.39):C:\Program Files\AutoIt3\autoit3.exe "C:\Documents and Settings\Owner\Desktop\test.au3" C:\Program Files\AutoIt3\Include\ANYGUI.au3 (153) : ==> Variable used without being declared.: $a[2] = _TargetaddChild($text, $PosX, $PosY, $SizeX, $SizeY, $TargethWnd) $a[2] = _TargetaddChild($text, $PosX, $PosY, $SizeX, $SizeY, ^ ERROR and i still get the same error as before when i do the syntax check. Edited May 25, 2005 by random667 It is really sad to see a family torn apart by something as simple as a pack of wolves. Link to comment Share on other sites More sharing options...
DaleHohm Posted May 25, 2005 Share Posted May 25, 2005 i tryed the zip and the installerthis is what i get when i do the beta run in SciTe:>Running: (3.1.1.39):C:\Program Files\AutoIt3\autoit3.exe "C:\Documents and Settings\Owner\Desktop\test.au3" C:\Program Files\AutoIt3\Include\ANYGUI.au3 (153) : ==> Variable used without being declared.: $a[2] = _TargetaddChild($text, $PosX, $PosY, $SizeX, $SizeY, $TargethWnd) $a[2] = _TargetaddChild($text, $PosX, $PosY, $SizeX, $SizeY, ^ ERRORand i still get the same error as before when i do the syntax check.<{POST_SNAPBACK}>The following example works for me, although Au3Check reports an problem with the GUI create graphic command you mentioned befow... continue anyway and all is well:AnyGUI Calc exampleWill it work for you? Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
random667 Posted May 25, 2005 Share Posted May 25, 2005 yea, the calc works, thanks! so i should just ignore the syntax errors? It is really sad to see a family torn apart by something as simple as a pack of wolves. Link to comment Share on other sites More sharing options...
DaleHohm Posted May 25, 2005 Share Posted May 25, 2005 If you are seeing the same thing I am, the syntax errors are comming from Au3Check and it is because it hasn't been updated to understand all of the new functions in the latest betas. If you get runtime syntax errors you don't want to ignore those... Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
random667 Posted May 25, 2005 Share Posted May 25, 2005 Thanks, you have been a big help. It is really sad to see a family torn apart by something as simple as a pack of wolves. Link to comment Share on other sites More sharing options...
quaizywabbit Posted July 18, 2005 Author Share Posted July 18, 2005 (edited) 18 July, 2005: Version 2.1 added _TargetaddMonthCal _TargetaddObjfor ease of use by the production release( so Au3syntaxchecker doesn't throw errors), I commented out: _TargetaddGraphic _TargetaddMonthCal _TargetaddObjdownload from first post in this thread.... Edited July 18, 2005 by quaizywabbit [u]Do more with pre-existing apps![/u]ANYGUIv2.8 Link to comment Share on other sites More sharing options...
busysignal Posted July 19, 2005 Share Posted July 19, 2005 18 July, 2005: Version 2.1     added _TargetaddMonthCal              _TargetaddObjfor ease of use by the production release( so Au3syntaxchecker doesn't throw errors), I commented out:          _TargetaddGraphic             _TargetaddMonthCal             _TargetaddObjdownload from first post in this thread....<{POST_SNAPBACK}>QW, you are crazy for ANYGUI! BTW, I notice back in May you posted v2.1 but might I add that since you are using the same version that you add a third digit to you release version, say 2.1.1? I know it is knitpicky but what the hell it was something to type. But wonderful work I must say.. I wish others who start project would keep their's going like you have.. Cheer.. Link to comment Share on other sites More sharing options...
quaizywabbit Posted July 19, 2005 Author Share Posted July 19, 2005 BTW, I notice back in May you posted v2.1 but might I add that since you are using the same version that you add a third digit to you release version, say 2.1.1?Actually the May version was 2.0 (i hadn't versioned it prior to that)Not much changes frequently as far as ANYGUI goes, so any future additions would be 2.2, 2.3, etc...Thanks for the compliment!! [u]Do more with pre-existing apps![/u]ANYGUIv2.8 Link to comment Share on other sites More sharing options...
quaizywabbit Posted August 4, 2005 Author Share Posted August 4, 2005 (edited) 3 Aug, 2005: Version 2.2 Fixed (Thanks to: Valik and Nutster) _TargetSetStyle() "Remove" to properly remove flag bits and,added a Bool parameter (1 = yes, 0[default] = no) whether to Update the window/control before returning. ( this is for multiple calls that involve "Add", "Remove", or Both, to prevent flickering. just set to 1(yes) at last call to update.)example:_TargetSetStyle("Remove", 0, $WS_SIZEBOX, $WS_EX_TOOLWINDOW, $MainWin);no update _TargetSetStyle("Add", 1, $WS_POPUPWINDOW,-1, $MainWin); does updateThose wishing to utilize _TargetSetStyle() should download this from first post...EDIT: This is also valid(for multiple styles or exstyles)>_TargetSetStyle("Remove", 1, BitOr($WS_SIZEBOX,$WS_SYSMENU, $WS_CAPTION), $WS_EX_TOOLWINDOW, $MainWin); does update Edited August 4, 2005 by quaizywabbit [u]Do more with pre-existing apps![/u]ANYGUIv2.8 Link to comment Share on other sites More sharing options...
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