Jump to content

My first script ever!


PR3BI
 Share

Recommended Posts

I see this line:

$B_oIE3.navigate ("file:///C:/Users/P/Desktop/pingpong.swf")

Where does this file come from?

The .swf file? It's the direct Shockwaveflash object. So It's the game but u don't need internet 2 play it. If u wonna play games without internet u can google: "The game u want".SWF then save the url. But the game worked, right? ^^

Tip: U have 2 press F9 2 start it.

Link to comment
Share on other sites

The .swf file? It's the direct Shockwaveflash object. So It's the game but u don't need internet 2 play it. If u wonna play games without internet u can google: "The game u want".SWF then save the url. But the game worked, right? ^^

Tip: U have 2 press F9 2 start it.

The problem is that nobody else is likely to have a user profile directory named 'p' on their c: drive. You should tell it to navigate to @ScriptDir&"/pingpong.swf" instead.
"There are 10 types of people in this world - those who can read binary, and those who can't.""We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true." ~Robert Wilensky0101101 1001010 1100001 1101101 1100101 1110011 0110011 1001101 10001110000101 0000111 0001000 0001110 0001101 0010010 1010110 0100001 1101110
Link to comment
Share on other sites

Well, this is the example forum, so you'd do well to supply all files and/or links needed for your script.

Besides instead of using "file:///C:/Users/P/Desktop/pingpong.swf" you could use "file:///" & @DesktopDir & "\pingpong.swf" or something similar.

This way you work around all issues with profiles, Operating Systems, etc.

But for the rest the code looks fine. Especially for a first time AutoIt-er!

My active project(s): A-maze-ing generator (generates a maze)

My archived project(s): Pong3 (Multi-pinger)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...