Milanezi Posted October 7, 2012 Posted October 7, 2012 Local $windows = WinList("[CLASS:MozillaWindowClass]") WinActivate(Hwnd($windows[1][1])) WinSetState($windows[1][1],"", @SW_SHOW) I'm trying to make the FF window appear on my screen. But it doesn't do a thing. Can someone help me?
water Posted October 7, 2012 Posted October 7, 2012 You need to insert some kind of error checking! What do the functions you call return? Is $windows an array? Whats the value of @error and @extended? 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
Milanezi Posted October 7, 2012 Author Posted October 7, 2012 (edited) I imlemented some error checks: The $windows is an array and it contains all the correct FF-windows with their handles in the second column The WinActivate activates the correct window. The WinSet also return a 1 but it still doesnt pop up the FF window. The only things that doesnt seem to work is the Show window. Im not even sure im using the right command but i cant find another one. Edited October 7, 2012 by Milanezi
water Posted October 7, 2012 Posted October 7, 2012 According to the help file: "@SW_SHOW = Shows a previously hidden window" Has the window been hidden before? Could you try WinActivate? 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
Milanezi Posted October 7, 2012 Author Posted October 7, 2012 (edited) But WinActivate just activates the window.I want to click on an toolbar in FireFox so the window has to be on my screen.I tried with ControlClick () but thats didnt work either.I think i just need the right command to click on the toolbar in FireFox. Edited October 7, 2012 by Milanezi
water Posted October 7, 2012 Posted October 7, 2012 WinActivate activates the window and gives focus to it. It works on minimized windows too. According to the help file: "However, a window that is "Always On Top" could still cover up a window you Activated." What is the return code of WinSetState? 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
Milanezi Posted October 7, 2012 Author 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)
water Posted October 7, 2012 Posted October 7, 2012 So the window is active and has focus. Don't know what happens. Can you post a screenshot? 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
Milanezi Posted October 7, 2012 Author Posted October 7, 2012 No need for screenshot: I let the program runs and nothing happens What i expect to happen: popping up the FireFox window on my window
water Posted October 7, 2012 Posted October 7, 2012 Don't know how to help you then. Anyone else? 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
Gibbz Posted October 7, 2012 Posted October 7, 2012 (edited) ok what about $1 = Run(@ProgramFilesDir & "Enter The FF Dir Here") If $1 = @Eror then Msgbox(64,"","Error") EndIf Edited October 7, 2012 by MrOmAr
Milanezi Posted October 7, 2012 Author Posted October 7, 2012 Thats a Run command. I need a command thats able to switch between FireFox Windows and click. They are already running.
Gibbz Posted October 7, 2012 Posted October 7, 2012 WinSetState("","",@SW_MAXIMIZE) i wish this is what do u mean
Milanezi Posted October 7, 2012 Author Posted October 7, 2012 That just maximizes the window IF its showed on my screen. The problem is i cant even get the FF window on my screen.
Gibbz Posted October 7, 2012 Posted October 7, 2012 WinSetState ( "title", "text", @SW_SHOW) WinSetState ( "title", "text". @SW_MAXIMIZE)
water Posted October 7, 2012 Posted October 7, 2012 That just maximizes the window IF its showed on my screen.The problem is i cant even get the FF window on my screen.What do you mean by "cant even get the FF window on my screen."In post #7 you write "The window activates (so i could type text in it)".I'm confused 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
Milanezi Posted October 7, 2012 Author Posted October 7, 2012 I need to click in it. And it seems that i cant click in an activated window. (the activated window stays minimized on my laptop) I can only click if i let the FF window appear on my screen it seems.
Gibbz Posted October 7, 2012 Posted October 7, 2012 WinSetState ( "title", "text", @SW_SHOW) WinSetState ( "title", "text". @SW_MAXIMIZE) did this worked ?
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