Jump to content

Import flash into autoit


Recommended Posts

When I made my internet browser with auto it then I felt like playing a game, but I can't because I need a flash player with auto it.

Here is my script that lets me browse the internet.

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <IE.au3>

_IEErrorHandlerRegister ()
$oIE = _IECreateEmbedded ()
GUICreate("CF", @DesktopWidth, @DesktopHeight, 0, 0, _
        $WS_POPUP)
$GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, @DesktopWidth, @DesktopHeight)
GUISetState()
$Form1 = GUICreate("Navigation", 292, 51, 192, 114, -1, $WS_EX_TOPMOST)
$Input1 = GUICtrlCreateInput($oIE, 0, 0, 265, 21)
$Button1 = GUICtrlCreateButton("Back", 0, 24, 59, 25)
$Button2 = GUICtrlCreateButton("Foward", 64, 24, 59, 25)
$Button3 = GUICtrlCreateButton("Home", 128, 24, 59, 25)
$Button4 = GUICtrlCreateButton("Go", 264, 0, 27, 21)
$Label1 = GUICtrlCreateLabel("Made By", 192, 24, 46, 17)
$Label2 = GUICtrlCreateLabel("Konrad W", 238, 32, 52, 17)
GUISetState(@SW_SHOW)

$s_url = "http://www.autoitscript.com/forum/forum-2/announcement-13-forum-rules/"
_IENavigate ($oIE, $s_url)

While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $Button3
            _IENavigate ($oIE, "http://www.autoitscript.com")
        Case $msg = $Button1
            _IEAction ($oIE, "back")
        Case $msg = $Button2
            _IEAction ($oIE, "forward")
        Case $msg = $Button4
            $s_url = GUICtrlRead(String($Input1))
            _IENavigate ($oIE, $s_url)
    EndSelect
WEnd

GUIDelete()

Exit
Link to comment
Share on other sites

You're just embedding IE so all you need to do is install Flash for IE.

Now, if it still doesn't work, then I would guess that you're on a x64 system running x64 AutoIt without having x64 Flash installed.

Solutions=

A. Install x64 Flash (there seems to be a beta available)

B. Run x86 AutoIt. Set "#AutoIt3Wrapper_UseX64=n". Install SciTE4AutoIt3 if you don't already have it.

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