Jump to content

IE Control


Recommended Posts

Hey,

I'm looking for a way to login to my website using autoit (proof can be given that I own the said website) read the contents of the page and if a certain bit of html is found on the page it needs to navigate to a javascript function:

If this exists: <a href="javascript:B()">Click</a>
Navigate to:
javascript:B()

I could do with some pointers :/

Link to comment
Share on other sites

What's the website's name?

You can try to navigate to this using run command o-o

Run(<Whatever your thing's name is>)

I can't post the address publicly, only in pm.

You're not understanding the navagate part, I basically want to poll certain pages (an array of links) on my site let's say every 10 mins and if in the html of the page that html string is visible then it needs to run the JavaScript function.

Link to comment
Share on other sites

What have you tried thus far? Are you familiar with the _IE functions? If not, look in the help file under IE Management.

Yeah, I've had a look through those functions in the _IE file but I couldn't work out how to do it. I even used other peoples code on here and tried to edit it >_< lol

Link to comment
Share on other sites

 whats the source of B() java func? do it need some parameter?

$buffer = (in this case) returned variable with object form _IECreate _IEAttach func

$buffer.document.parentwindow.execScript('javascript:B()', "javascript")

or

$buffer.document.parentwindow.execScript('B()', "javascript")

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
Link to comment
Share on other sites

Okay, I have the main part working now thanks :D

I'm trying to now work on an array.
 

$TCount = 11
Local $iMax = 11
Local $arr[$iMax] = [$TCount, $T1, $T2, $T3, $T4, $T5, $T6, $T7, $T8, $T9, $T0]

Why do I have to define tcount, I want it to cycle through all of the arrays and if its blank to just ignore it...

 

For $i = 1 to $arr[0]
$x = $arr[$i]
If $arr[$i] = "" Then
$TCount = $i
EndIf
Next
Link to comment
Share on other sites

no need to define tcount if you don't need to you can leave it 0 or blank string "" or start your data from array 0 but then you need to define $I = 0 and UBound($arr) - 1 will do the work for you

 

For $i = 1 To UBound($arr) - 1
    If $arr[$i] Then;if array isn't empty
        ;do something like MsgBox(0,'',$arr[$I])
    EndIf
Next
Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
Link to comment
Share on other sites

im not familiar with that command,

/editstart

but you can post it heare for others to see if you want to or you need help with it coz i realy did not find that command even on google, so im wondering did you create it yourself or?

/editend

i can be wrong about this but ... more info about Status Bars

http://msdn.microsoft.com/en-us/library/windows/desktop/aa511492.aspx

 

Text
  • Generally, use concise labels. Cut any text that can be eliminated.
  • Prefer sentence fragments, without ending punctuation. Use full sentences (with ending punctuation) only when sentence fragments aren't significantly shorter.
  • For optional progress labels, indicate what the operation is doing with a label that starts with a verb (gerund form) and ends with an ellipsis. For example: "Copying...". This label may change dynamically if the operation has multiple steps or is processing multiple objects.
  • Don't use color, bold, or italic to emphasize status bar text.

 

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

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