Milanezi 0 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? Share this post Link to post Share on other sites
water 2,359 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 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
Milanezi 0 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 Share this post Link to post Share on other sites
water 2,359 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 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
Milanezi 0 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 Share this post Link to post Share on other sites
water 2,359 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 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
Milanezi 0 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) Share this post Link to post Share on other sites
water 2,359 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 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
Milanezi 0 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 Share this post Link to post Share on other sites
water 2,359 Posted October 7, 2012 Don't know how to help you then. Anyone else? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
Gibbz 0 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 Share this post Link to post Share on other sites
Milanezi 0 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. Share this post Link to post Share on other sites
Gibbz 0 Posted October 7, 2012 WinSetState("","",@SW_MAXIMIZE) i wish this is what do u mean Share this post Link to post Share on other sites
Milanezi 0 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. Share this post Link to post Share on other sites
Gibbz 0 Posted October 7, 2012 WinSetState ( "title", "text", @SW_SHOW) WinSetState ( "title", "text". @SW_MAXIMIZE) Share this post Link to post Share on other sites
water 2,359 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 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
Milanezi 0 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. Share this post Link to post Share on other sites
Gibbz 0 Posted October 7, 2012 WinSetState ( "title", "text", @SW_SHOW) WinSetState ( "title", "text". @SW_MAXIMIZE) did this worked ? Share this post Link to post Share on other sites
Milanezi 0 Posted October 7, 2012 No. The window stays minimized. Share this post Link to post Share on other sites
Gibbz 0 Posted October 7, 2012 lol i cant help u sry Share this post Link to post Share on other sites