water Posted October 7, 2012 Share Posted October 7, 2012 Did you really test the above script? Line two gives me a syntax error because of the dot. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
JohnOne Posted October 7, 2012 Share Posted October 7, 2012 But when i tried moving my mouse to the position i wanted to click and click, nothing happend.The window activates (so i could type text in it) but not click in it.WinSetState gives 1 back (succes)So it activates so you "could type text in it" but it stays minimized?Start making sense, and you will start getting the help you need. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
water Posted October 7, 2012 Share Posted October 7, 2012 Maybe you grab the wrong FF window? Make sure ALL windows are minimized before you run the script. Does a FF window pop up? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Milanezi Posted October 7, 2012 Author Share Posted October 7, 2012 Yes, i tested it but fixed the dot It is what i said it did. I typed text in it with ControlSend while it was minimized. Link to comment Share on other sites More sharing options...
Milanezi Posted October 7, 2012 Author Share Posted October 7, 2012 I start at my desktop so they are all minimized. The script runs and it stays on my desktop so nothing happens. Link to comment Share on other sites More sharing options...
water Posted October 7, 2012 Share Posted October 7, 2012 It is what i said it did.I typed text in it with ControlSend while it was minimized.Why didn't you tell that in first place? We assumed you typed in the text yourself so the window was maximized.Always give as much information as you can! My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Milanezi Posted October 7, 2012 Author Share Posted October 7, 2012 (edited) Sorry, im a Java programmer so all the syntax and difference between them are still new to me It seems such a basic task to script. Several FF-windows which i catch in the WinList. Switch between them and click on a certain position. Frustrating Edited October 7, 2012 by Milanezi Link to comment Share on other sites More sharing options...
JohnOne Posted October 7, 2012 Share Posted October 7, 2012 What version of firefox are you using? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Milanezi Posted October 7, 2012 Author Share Posted October 7, 2012 Im using 11.0. Seems I can get a newer version Could that cause it? Link to comment Share on other sites More sharing options...
water Posted October 7, 2012 Share Posted October 7, 2012 We can't test - so give it a try. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Milanezi Posted October 7, 2012 Author Share Posted October 7, 2012 It didn't change a thing. Trying ControlClick now again and see what it does. Link to comment Share on other sites More sharing options...
Milanezi Posted October 7, 2012 Author Share Posted October 7, 2012 Local $windows = WinList("[CLASS:MozillaWindowClass]") WinActivate(Hwnd($windows[1][1])) sleep(1000) ControlClick(Hwnd($windows[1][1]), "[CLASS:MozillaWindowClass]","left",1,1550,78) It doesn't click in the window... Link to comment Share on other sites More sharing options...
water Posted October 7, 2012 Share Posted October 7, 2012 Did you upgrade your addon as well? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Milanezi Posted October 7, 2012 Author Share Posted October 7, 2012 Yes, they are all up to date with FF 15 Link to comment Share on other sites More sharing options...
water Posted October 7, 2012 Share Posted October 7, 2012 ControlClick(Hwnd($windows[1][1]), "[CLASS:MozillaWindowClass]","left",1,1550,78) The text (parameter 2) is missing in your statement: Should be: ControlClick(Hwnd($windows[1][1]), "", "[CLASS:MozillaWindowClass]", "left",1,1550,78) My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Milanezi Posted October 7, 2012 Author Share Posted October 7, 2012 (edited) But the controlclick returns a 0 so it seems to know it didnt work. Any reason for that? Local $windows = WinList("[CLASS:MozillaWindowClass]") WinActivate(Hwnd($windows[1][1])) sleep(1000) ControlClick(Hwnd($windows[1][1]), "[CLASS:MozillaWindowClass]","left",1,1550,78) MsgBox(0,"result"," title =" & ControlClick(Hwnd($windows[1][1]), "[CLASS:MozillaWindowClass]","left",1,1550,78)) I tried with the extra "" for the text but that didnt help. I though Hwnd replaced Title + text. Edited October 7, 2012 by Milanezi Link to comment Share on other sites More sharing options...
Gibbz Posted October 7, 2012 Share Posted October 7, 2012 i cant understand your problem Link to comment Share on other sites More sharing options...
Milanezi Posted October 7, 2012 Author Share Posted October 7, 2012 It doesnt click in the FF window. ControlCLick give 0 back and i dont know why. Link to comment Share on other sites More sharing options...
Gibbz Posted October 7, 2012 Share Posted October 7, 2012 It doesnt click in the FF window.ControlCLick give 0 back and i dont know why.tell me what do u want the script do and i will help u Link to comment Share on other sites More sharing options...
Milanezi Posted October 7, 2012 Author Share Posted October 7, 2012 It seems that WinList doesnt return the correct list of active FF-windows. Fixed with WinGethandle and using title. 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