Jump to content
Sign in to follow this  
Milanezi

Show window

Recommended Posts

water

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 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
iCal (2019-01-22 - Version 0.1.0.0) - Download - General Help & Support
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
JohnOne

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.

Share this post


Link to post
Share on other sites
water

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 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
iCal (2019-01-22 - Version 0.1.0.0) - Download - General Help & Support
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

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.

Share this post


Link to post
Share on other sites
Milanezi

I start at my desktop so they are all minimized. The script runs and it stays on my desktop so nothing happens.

Share this post


Link to post
Share on other sites
water

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 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
iCal (2019-01-22 - Version 0.1.0.0) - Download - General Help & Support
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

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

Share this post


Link to post
Share on other sites
Milanezi

Im using 11.0.

Seems I can get a newer version :)

Could that cause it?

Share this post


Link to post
Share on other sites
water

We can't test - so give it a try.


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
iCal (2019-01-22 - Version 0.1.0.0) - Download - General Help & Support
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

It didn't change a thing.

Trying ControlClick now again and see what it does.

Share this post


Link to post
Share on other sites
water

Did you upgrade your addon as well?


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
iCal (2019-01-22 - Version 0.1.0.0) - Download - General Help & Support
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

Yes, they are all up to date with FF 15

Share this post


Link to post
Share on other sites
water

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 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
iCal (2019-01-22 - Version 0.1.0.0) - Download - General Help & Support
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 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 by Milanezi

Share this post


Link to post
Share on other sites
Gibbz

i cant understand your problem

Share this post


Link to post
Share on other sites
Milanezi

It doesnt click in the FF window.

ControlCLick give 0 back and i dont know why.

Share this post


Link to post
Share on other sites
Gibbz

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

Share this post


Link to post
Share on other sites
Milanezi

It seems that WinList doesnt return the correct list of active FF-windows.

Fixed with WinGethandle and using title.

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  

×