Jump to content
Sign in to follow this  
Milanezi

Show window

Recommended Posts

Milanezi

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

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 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Milanezi

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 by Milanezi

Share this post


Link to post
Share on other sites
water

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 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Milanezi

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 by Milanezi

Share this post


Link to post
Share on other sites
water

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 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Milanezi

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

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 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Milanezi

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

Don't know how to help you then.

Anyone else?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Milanezi

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
Milanezi

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
water

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 :wacko:


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Milanezi

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
Milanezi

No. The window stays minimized.

Share this post


Link to post
Share on other sites
Gibbz

lol i cant help u sry

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
Sign in to follow this  

×