nitekram Posted March 8, 2013 Share Posted March 8, 2013 (edited) I am getting some strange behavior from creating an object from "Shell.Explorer.2", that I am unable to reproduce in a smaller script - so sorry for the long script. In fact when I wrote this, I had no issues, and thought it might be firewall related, but it is not.I wrote this for my son, as he was enjoying typing in (he is 4.5 years of age) codes for SkyLanders game. I thought he was having a hard time finding letters and thought I could make a game out of it, so he could learn where the letters are and start learning how to spell and read.The problem is that the _GuiCtrlCreateFlash() function will work most of the time, and depending on which link is passed to it first - it works without fail for those that are not working.The pics are missing of course, and you have to click these in a certain order to find the BUG.Any ideas what I might have done wrong or what is happening would be greatfull - thanksTest 1 - Youtube link does not play and we get a com error:click on button called UNDEAD - left side, bottom right button:click on button called HEX - 5 buttons from left side of new window:click NO on do you want to hear story:type in the word HEX and click ENTER:you will get the following errorAutoIt COM error handlerError encountered in _LCT- fix-needed.au3: @AutoItVersion = 3.3.8.1 @AutoItX64 = 0 @Compiled = 0 @OSArch = X86 @OSVersion = WIN_XP Scriptline = 2301 NumberHex = 80020009 Number = -2147352567 WinDescription = Unspecified error Description = Source = HelpFile = HelpContext = 0 LastDllError = 0Test 2 - both links play and tehr are no errors:click on button called MAGIC- left side, one up from bottom right button:click on button called NINJINI - 1 button from left side of new window:click NO on do you want to hear story:type in the word NINJINI and click ENTER:you will see the video play:click on button called UNDEAD - left side, bottom right button:click on button called HEX - 5 buttons from left side of new window:click NO on do you want to hear story:type in the word HEX and click ENTER:the same video that did not play in first test, now plays???p.s. Is there a size limitation on how many characters you can post? I got this error "Sorry, but you have posted more media files than you are allowed to", so had to attach file.EDIT seen that there is a return after all my lines, cut unable to see it in the text I am posting?EDIT2 tried to remove the extra spacing as it looks like $hit EDIT3 - tried again to change font and get rid of spacesEDIT4 - added new title to get some attention _LCT- fix-needed.au3 Edited March 9, 2013 by nitekram 2¢ All by me:"Sometimes you have to go back to where you started, to get to where you want to go." "Everybody catches up with everyone, eventually" "As you teach others, you are really teaching yourself." From my dad "Do not worry about yesterday, as the only thing that you can control is tomorrow." WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2 AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit Docs SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language Programming Tips Excel Changes ControlHover.UDF GDI_Plus Draw_On_Screen GDI Basics GDI_More_Basics GDI Rotate GDI Graph GDI CheckExistingItems GDI Trajectory Replace $ghGDIPDll with $__g_hGDIPDll DLL 101? Array via Object GDI Swimlane GDI Plus French 101 Site GDI Examples UEZ GDI Basic Clock GDI Detection Ternary operator Link to comment Share on other sites More sharing options...
JohnQSmith Posted March 8, 2013 Share Posted March 8, 2013 (edited) Game interaction? Can't tell if it's one you're writing or some other one. Leaving decision to mods. Edit: Looks to be your own creation! Keep up the great work. Edited March 8, 2013 by JohnQSmith Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes". Link to comment Share on other sites More sharing options...
nitekram Posted March 8, 2013 Author Share Posted March 8, 2013 (edited) To clarify - nothing to do with a GAME BOT. This is a game I am creating for my son - to teach him how to type. The only links that pertain to a game are going to YOUTUBE videos, as a reward for typing in the characters name. Edited March 8, 2013 by nitekram 2¢ All by me:"Sometimes you have to go back to where you started, to get to where you want to go." "Everybody catches up with everyone, eventually" "As you teach others, you are really teaching yourself." From my dad "Do not worry about yesterday, as the only thing that you can control is tomorrow." WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2 AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit Docs SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language Programming Tips Excel Changes ControlHover.UDF GDI_Plus Draw_On_Screen GDI Basics GDI_More_Basics GDI Rotate GDI Graph GDI CheckExistingItems GDI Trajectory Replace $ghGDIPDll with $__g_hGDIPDll DLL 101? Array via Object GDI Swimlane GDI Plus French 101 Site GDI Examples UEZ GDI Basic Clock GDI Detection Ternary operator Link to comment Share on other sites More sharing options...
JohnQSmith Posted March 8, 2013 Share Posted March 8, 2013 This is a game I am creating for my son - to teach him how to type.I see that after looking at the code. Nice job. I'm gonna hafta dig into to see if I can help fix it. Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes". Link to comment Share on other sites More sharing options...
nitekram Posted March 9, 2013 Author Share Posted March 9, 2013 Anyone have a chance to look at this yet? 2¢ All by me:"Sometimes you have to go back to where you started, to get to where you want to go." "Everybody catches up with everyone, eventually" "As you teach others, you are really teaching yourself." From my dad "Do not worry about yesterday, as the only thing that you can control is tomorrow." WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2 AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit Docs SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language Programming Tips Excel Changes ControlHover.UDF GDI_Plus Draw_On_Screen GDI Basics GDI_More_Basics GDI Rotate GDI Graph GDI CheckExistingItems GDI Trajectory Replace $ghGDIPDll with $__g_hGDIPDll DLL 101? Array via Object GDI Swimlane GDI Plus French 101 Site GDI Examples UEZ GDI Basic Clock GDI Detection Ternary operator Link to comment Share on other sites More sharing options...
LarsJ Posted March 10, 2013 Share Posted March 10, 2013 nitekram, If you compare the code for the working and not working buttons you fairly easy find at least one difference: This for the working (in function CharacterAttributes): GUISetState(@SW_HIDE, $GUI) GUIDelete($GUI) And this for the not working: ; GUISetState(@SW_HIDE, $_GuiUnDead) ; GUIDelete($_GuiUnDead) Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions Link to comment Share on other sites More sharing options...
nitekram Posted March 10, 2013 Author Share Posted March 10, 2013 You my friend have saved me from my son. I know now what I did, as I created that function (CharacterAttributes) for the newest code and forgot to change the older code to work with it. I do feel stupid now, as I was NOT able to figure it out. I thank you for your time on this!!! 2¢ All by me:"Sometimes you have to go back to where you started, to get to where you want to go." "Everybody catches up with everyone, eventually" "As you teach others, you are really teaching yourself." From my dad "Do not worry about yesterday, as the only thing that you can control is tomorrow." WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2 AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit Docs SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language Programming Tips Excel Changes ControlHover.UDF GDI_Plus Draw_On_Screen GDI Basics GDI_More_Basics GDI Rotate GDI Graph GDI CheckExistingItems GDI Trajectory Replace $ghGDIPDll with $__g_hGDIPDll DLL 101? Array via Object GDI Swimlane GDI Plus French 101 Site GDI Examples UEZ GDI Basic Clock GDI Detection Ternary operator Link to comment Share on other sites More sharing options...
trancexx Posted March 10, 2013 Share Posted March 10, 2013 Bravo LarsJ! ♡♡♡ . eMyvnE 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