svenjatzuu

firefox kurze frage 2 fenster

7 posts in this topic

#1 ·  Posted

ich habe ein problem mit firefox und mehreren fenstern.

zuerst öffnet mein script ein fenster um ein formular auszufüllen füllt es aber nicht aus da es erst aus einer anderen seite eine information ziehen muss.
dafür öffnet es ein weiteres fenster und zieht dort die information raus, schliesst es und holt das erste fenster wieder in den fordergrund um das formular auszufüllen.

das zweite fenster ist vom ersten fenster abhängig also kann ich das erste fenster nicht neu laden da sich sosnt alle werte verändern.

mein problem dabei ist dass ich das erste fenster mit winactivate wieder in den vordergrund rufe und dadurch verbindet sich autoit nicht wieder mit dem fenster so dass es das formular nicht ausfüllt.

habt ihr eine alternative zu winactivate oder eine andere lösungsidee?

Share this post


Link to post
Share on other sites



#2 ·  Posted

Du bist hier im engl. Forum unterwegs. Da der Großteil der User mehr oder weniger perfekt Englisch spricht, mit Deutsch aber eher weniger am Hut hat, erhältst Du mehr Antworten, wenn Du

  • hier auf Englisch postest
  • Deine Frage im deutschen Forum stellst.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#3 ·  Posted

Hey water - Danke für den hinweis

i got a prob with firefox and while use diferent windows.

first of all my script opens a window for signing a form but it doesnt do cuz it first got to get an info from the following window. so it opens the following window for copy the value it needs and closes it again. then reopens the first window for entering the values.

the second window is dependend from the first one so i cant reload the first window cuz every value changes on every reload.

 

i reopen the first window by command winactivate, that causes autoit doesnt reconnect to the window and wont fill in the values.

you got any alternatives to winactivate or another sollution?

 

i just tried it with the samplescript http://www.thorsten-willert.de/index.php/software/autoit/beispiele add tab but this samplescript also creates an error

ERROR:
[object HTMLDocument] - {location: {...}, getElementsByName: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, writeln: function() {...}, execCommand: function() {...}, ...}
"C:\Users\IIII\Desktop\Neuer Ordner 3\gui.au3" (13) : ==> Incorrect number of parameters in function call.:
_FFTabGetSelected("FF","label")
^ ERROR
>Exit code: 1 Time: 13.45



SAMPLESCRIPT:
#include <FF.au3>

_FFStart()

If _FFIsConnected() Then
; add a new tab with an URL
_FFTabAdd("http://ff-au3-example.thorsten-willert.de/")
sleep(3000)
; add a new blank tab and bring it to front
_FFTabAdd(default,true)
Sleep(3000)
; select the tab with "FF" in the label
_FFTabGetSelected("FF","label")
; shows the number of tabs
MsgBox(64,"Number of tabs:",_FFTabGetLength())
; closing all tabs except the current
_FFTabCloseAll()
Sleep(3000)
; closes FireFox
_FFQuit()
EndIf



 

Share this post


Link to post
Share on other sites

#4 ·  Posted

23 minutes ago, svenjatzuu said:

Incorrect number of parameters in function call.

The error message explains exactly what went wrong.You need to provide at least the mandatory parameters when calling a function.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#5 ·  Posted

so how to solve it?

Share this post


Link to post
Share on other sites

#6 ·  Posted

Check the help file or have a look at the FF UDF to determine the mandatory parameters and provide the needed information.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

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