Sign in to follow this  
Followers 0
AceLoc

Question about IE.

10 posts in this topic

well this is the Source

<html>
<head>
<title>d2jsp - Ladder Slasher - by Paul Taulborg (njaguar)</title>
<style type="text/css" media="all">
    @import url(game.css);
</style>

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">

<script language="javascript" src="common.js"></script>
<script language="javascript" src="char.js"></script>
<script language="javascript" src="town.js"></script>
<script language="javascript" src="combat.js"></script>

<script language="javascript" src="market.js"></script>
<script language="javascript" src="sock.js"></script>
<script language="javascript">
function pageLoad() {
    checkSocketLoaded();
}
</script>

</head>
<body onload="pageLoad()">

<form name="a">

<div class="leftSide">
    <div class="titleBar">
        Character Stats
    </div>

    <div id="playerStats">
    </div>
    <div id="itemStats">
    </div>
    <br><br>
    <div class="titleBar">
        Message Logs
    </div>
    <div id="logs">

    </div>
</div>
<div class="rightSide">
    <div class="titleBar">
        d2jsp - Ladder Slasher - by Paul Taulborg (njaguar) &copy; 2006
    </div>
    <div id="mainPage">
    </div>
</div>

<div id='popup'></div>

</form>

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="1" height="1" id="sock" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="swliveconnect" value="true">
<param name="movie" value="sock.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="sock.swf" swliveconnect="true" quality="high" bgcolor="#ffffff" width="1" height="1" name="sock" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

</body>
</html>

and this is a screenshot of the page:

Posted Image

now like you see the character name isnt in the source.

and IE needs to click on it, but because it isnt in the source

that aint possible with _IEClickLinkByText (if im right)

now how can i let it click on it? :P

Thanks!


[quote name='AceLoc']I gots new sunglasses there cool.[/quote]

Share this post


Link to post
Share on other sites



I'd suggest using the Web Developer Toolbar for Firefox and click View Source-->View Generated Source.

Share this post


Link to post
Share on other sites

I'd suggest using the Web Developer Toolbar for Firefox and click View Source-->View Generated Source.

mmm i dont like toolbars at all :/

[quote name='AceLoc']I gots new sunglasses there cool.[/quote]

Share this post


Link to post
Share on other sites

What you are trying to get to is inside an Object containing the flash player. The IE DOM can see the <OBJECT> and its attributes (like height, width etc.) but it cannot interact with it unless the flash play has an interface to allow it. I have seen some discussion of interaction, but have had no need or desire to look into it.

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

What you are trying to get to is inside an Object containing the flash player. The IE DOM can see the <OBJECT> and its attributes (like height, width etc.) but it cannot interact with it unless the flash play has an interface to allow it. I have seen some discussion of interaction, but have had no need or desire to look into it.

Dale

y.. and what do i need to do now? :P

[quote name='AceLoc']I gots new sunglasses there cool.[/quote]

Share this post


Link to post
Share on other sites

Search this forum for related posts, Google, Macromedia website and support forums, trial and error...

Learn how to do what you want to do and bring your discoveries back and share them here knowing that someone at a later date saying "thank-you, that is exactly what I was looking for" will be reward enough.

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

Search this forum for related posts, Google, Macromedia website and support forums, trial and error...

Learn how to do what you want to do and bring your discoveries back and share them here knowing that someone at a later date saying "thank-you, that is exactly what I was looking for" will be reward enough.

Dale

the whole problem is which Keyword do i need to search?

[quote name='AceLoc']I gots new sunglasses there cool.[/quote]

Share this post


Link to post
Share on other sites

Fly little bird! Fly!


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

Fly little bird! Fly!

Crashed.

[quote name='AceLoc']I gots new sunglasses there cool.[/quote]

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

isnt this just possible with

Func _MouseClickPlus($Window, $Button = "left", $X = "", $Y = "", $Clicks = 1)
  Local $MK_LBUTTON       =  0x0001
  Local $WM_LBUTTONDOWN   =  0x0201
  Local $WM_LBUTTONUP     =  0x0202
  
  Local $MK_RBUTTON       =  0x0002   
  Local $WM_RBUTTONDOWN   =  0x0204
  Local $WM_RBUTTONUP     =  0x0205

  Local $WM_MOUSEMOVE     =  0x0200
  
  Local $i                = 0
  
  Select 
  Case $Button = "left"
     $Button     =  $MK_LBUTTON
     $ButtonDown =  $WM_LBUTTONDOWN
     $ButtonUp   =  $WM_LBUTTONUP
  Case $Button = "right"
     $Button     =  $MK_RBUTTON
     $ButtonDown =  $WM_RBUTTONDOWN
     $ButtonUp   =  $WM_RBUTTONUP
  EndSelect
  
  If $X = "" OR $Y = "" Then
     $MouseCoord = MouseGetPos()
     $X = $MouseCoord[0]
     $Y = $MouseCoord[1]
  EndIf
  
  For $i = 1 to $Clicks
     DllCall("user32.dll", "int", "SendMessage", _
        "hwnd",  WinGetHandle( $Window ), _
        "int",   $WM_MOUSEMOVE, _
        "int",   0, _
        "long",  _MakeLong($X, $Y))
        
     DllCall("user32.dll", "int", "SendMessage", _
        "hwnd",  WinGetHandle( $Window ), _
        "int",   $ButtonDown, _
        "int",   $Button, _
        "long",  _MakeLong($X, $Y))
        
     DllCall("user32.dll", "int", "SendMessage", _
        "hwnd",  WinGetHandle( $Window ), _
        "int",   $ButtonUp, _
        "int",   $Button, _
        "long",  _MakeLong($X, $Y))
  Next
EndFunc  ;==>MouseClickPlus

Func _MakeLong($LoWord,$HiWord)
  Return BitOR($HiWord * 0x10000, BitAND($LoWord, 0xFFFF))
EndFunc  ;==>MakeLongoÝ÷ ٩ݶ§ë-jëh×6Start()

Func Start()

_MouseClickPlus("title", "left/right", X, Y, CLICKS)
;Sleep(1000)

EndFunc

in the top of my script.

will this work?

Thanks!

Edited by aceloc

[quote name='AceLoc']I gots new sunglasses there cool.[/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