Sign in to follow this  
Followers 0
VeeDub

IE - working with Flash?

4 posts in this topic




Hi,

Is it possible to work with a site like this with the IE UDF?

http://www.goodco.com.au/main.html

VW

As volley says, no, at least not directly. It appears that flash does open some interfaces to Javascript -- see here for example. It may require knowledge about the flash object that you may not have however.

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

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Havnt checked the site, my me and AzKay are working on somthing that involves flash (.swf)

so I guess Ill post the code that Im gonna send him whenever he gets on AIM and see if it helps.

;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX LOOK HERE FOR .SWF FILES XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX;
$Fishing_Bassken = 'http://graphics.gaiaonline.com/images/Gaia_Flash/FISHING/bassken3.3.swf'
$Fishing_Durem = 'http://graphics.gaiaonline.com/images/Gaia_Flash/FISHING/durem3.3.swf'
$Fishing_Gambino = 'http://graphics.gaiaonline.com/images/Gaia_Flash/FISHING/gambino3.3.swf'
;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX LOOK HERE FOR .SWF FILES XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX;                                                                         |
;------------------------
; Based off Simucal's Bot.
;------------------------
#include <GUIConstants.au3>
While 1
    $SelectionForm = GUICreate("Concept for Fishing bot", 298, 83, 350, 400)
    GUICtrlCreateLabel("Choose a game:", 32, 8, 81, 17)
    $Bassken_Button = GUICtrlCreateButton("Bassken", 32, 40, 105, 25)
    $Durem_Button = GUICtrlCreateButton("Durem", 168, 40, 105, 25)
    
    GUISetState()
    
    While 1
        $msg = GUIGetMsg()
        Select
            Case $msg = $Bassken_Button
                $Game = "Bassken"
                GUIDelete($SelectionForm)
                ExitLoop
            Case $msg = $Durem_Button
                $Game = "Durem"
                GUIDelete($SelectionForm)
                ExitLoop
            Case $msg = $GUI_EVENT_CLOSE
                Exit
        EndSelect
    WEnd
    
    $oGame = ObjCreate ("ShockwaveFlash.ShockwaveFlash.1")
    $GUI = GUICreate("Fishing Concept", 820, 660, -1, -1)
    $GUIActiveX = GUICtrlCreateObj ($oGame, 10, 10, 800, 580)
    
    If $Game = "Bassken" Then
        With $oGame
            .bgcolor = "#000000"
            .Movie = $Fishing_Bassken
            .ScaleMode = 2
            .Loop = True
            .wmode = "Opaque"
        EndWith
    Else
        With $oGame
            .bgcolor = "#000000"
            .Movie = $Fishing_Durem
            .ScaleMode = 2
            .Loop = True
            .wmode = "Opaque"
        EndWith
    EndIf

    GUISetState()
    While 1
        Sleep(1000)
    WEnd
WEnd
Exit

all that does is embed the flash file in a GUI but it makes it easy to work with for makeing bots and such.

EDIT: Just looked at the site and you should be able to use _MouseClickPlus (A UDF [search scripts and scraps]) to click it after you embed it in a GUI.

Also Heres the .swf file incase you dont have it already 'http://www.goodco.com.au/main.swf'.

Edited by Vivvic

[quote name='DaleHohm']You have a strange habit of posting error messages that don't match your code.[/quote][quote name='SmOke_N']Forget the learning... straight to the scripting :lol: (laugh.gif)[/quote]

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  
Followers 0