svenjatzuu Posted March 12, 2017 Share Posted March 12, 2017 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? Link to comment Share on other sites More sharing options...
water Posted March 12, 2017 Share Posted March 12, 2017 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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
svenjatzuu Posted March 12, 2017 Author Share Posted March 12, 2017 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 Link to comment Share on other sites More sharing options...
water Posted March 12, 2017 Share Posted March 12, 2017 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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
svenjatzuu Posted March 12, 2017 Author Share Posted March 12, 2017 so how to solve it? Link to comment Share on other sites More sharing options...
water Posted March 12, 2017 Share Posted March 12, 2017 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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Danp2 Posted March 12, 2017 Share Posted March 12, 2017 Maybe you are looking for _FFTabSetSelected? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now