Jump to content
Sign in to follow this  
nitekram

YOUTUBE & COM ERRORS

Recommended Posts

nitekram

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 - thanks

Test 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 error

AutoIt COM error handler

Error 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 = 0

Test 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 spaces

EDIT4 - added new title to get some attention

_LCT- fix-needed.au3

Edited by nitekram

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."

 

WindowsError.gif

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

Share this post


Link to post
Share on other sites
JohnQSmith

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 by JohnQSmith

Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Share this post


Link to post
Share on other sites
nitekram

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 by nitekram

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."

 

WindowsError.gif

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

Share this post


Link to post
Share on other sites
JohnQSmith

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".

Share this post


Link to post
Share on other sites
nitekram

Anyone have a chance to look at this yet?


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."

 

WindowsError.gif

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

Share this post


Link to post
Share on other sites
LarsJ

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)

Share this post


Link to post
Share on other sites
nitekram

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!!!


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."

 

WindowsError.gif

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

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  

×