Jump to content

firefox button


concept
 Share

Recommended Posts

I need to clikc a button in firefox. the info file is:

>>>> Window <<<<

Title: SMS testleht - Mozilla Firefox

Class: MozillaUIWindowClass

Position: -4, -4

Size: 1288, 1002

Style: 0x15CF0000

ExStyle: 0x00000100

Handle: 0x0728025C

>>>> Control <<<<

Class: MozillaWindowClass

Instance: 5

ClassnameNN: MozillaWindowClass5

ID:

Text:

Position: 0, 119

Size: 1280, 834

ControlClick Coords: 905, 234

Style: 0x56000000

ExStyle: 0x00000000

Handle: 0x086803A4

>>>> Mouse <<<<

Position: 905, 372

Cursor ID: 1

Color: 0xD4D0C8

>>>> StatusBar <<<<

>>>> Visible Text <<<<

>>>> Hidden Text <<<<

the source is:

<html>

<head>

<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" >

<title>SMS testleht</title>

</head>

<body>

<center>

<br/>

<br/>

<br/>

<form method = "Post" action = "gateway.aspx">

<table>

<tr>

<th colspan = "2">SMS saatmine<th>

</tr>

<tr>

<th>Lühinumber</th>

<td><input type = "text" name = "short" value = "1333"/></td>

</tr>

<tr>

<th>Telefon</th>

<td><input type = "text" name = "phone" value = "372555123"/></td>

</tr>

<tr>

<th>Sõnum</th>

<td>

<textarea name = "message" rows = 3 cols = 60>Kredits 150 15 121250-12345</textarea>

</td>

</tr>

<tr>

<td colspan = "2" align = "right" >

<input type="reset" value = "Tühjenda"/>

<input type="submit" value = "Saada"/>

</td>

</tr>

</form>

</center>

</body>

</html>

the button with the value "saada"

I do not want to use coordinates to clikc it as theis page will be changed and I need the script to work when it has been schanged.

Thank you.

ps.Could you please keep it short and not point me to manual.

Link to comment
Share on other sites

This does a blind click on the coordinates you gave:

ControlClick("SMS testleht - Mozilla Firefox", "", "", "Left", 1, 905, 372)

Since Firefox does not expose its internals to a COM interface the way IE does (for reasons including security) it is not easily scripted from the outside the way we do with Dale's IE.au3 UDF.

:)

Edited by PsaltyDS
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

You should be able to do it scripting the DOM, It is the same as IE.

No, it's not.

Run a WHS script using Autoit to create a DOM Object, then find the form

and submit it.

If you can do that with Firefox and post it you win 10,000 Geek Points.

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Well, from your answer I assume there is now simple way to click by visible text or hanldle or anything that is in the summary info...

Too bad.

Thanks for clearing that up tho.

Not in Firefox, I'm afraid.

If you can use IE for the scripted activity, then the _IE* functions work wonders. This is the path I have taken. I never run IE if I can help it, using Firefox for everything. But if I have to script some HTML based config or something, I resort to IE.

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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...