Jump to content
Sign in to follow this  
Guest xeneizeusa

WinClose

Recommended Posts

Guest xeneizeusa

I need to close multiple windows with UNC titles. I can't seem to make the WinClose command execute properly. It has only worked for a titled Notepad window. My window titles shows the full UNC path \\servername\share folder.

TIA

Share this post


Link to post
Share on other sites
Jos

I need to close multiple windows with UNC titles. I can't seem to make the WinClose command execute properly. It has only worked for a titled Notepad window. My window titles shows the full UNC path \\servername\share folder.

TIA

<{POST_SNAPBACK}>

You can use AU3_Spy.exe to find the correct window title and check if you are using the correct windowTitleMatch Mode:

Opt("WinTitleMatchMode", 1) ;1=start, 2=subStr, 3=exact, 4=...


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest xeneizeusa

You can use AU3_Spy.exe to find the correct window title and check if you are using the correct windowTitleMatch Mode:

Opt("WinTitleMatchMode", 1)    ;1=start, 2=subStr, 3=exact, 4=...

<{POST_SNAPBACK}>

Thank You! I did run both Au3 and AutoIt reveal mode and I copied and pasted the Windows title and it still did not work. Here is a sample with the first open window I'm trying to close, the other 6 lines are similar:

WinClose, \\oscadvzps1\GMAFiles\Archive

Share this post


Link to post
Share on other sites
sugi

WinClose, \\oscadvzps1\GMAFiles\Archive

You're either posting in the wrong forum (this is 3.x) or you're using a far outdated version of AutoIt.

Share this post


Link to post
Share on other sites
Matt @ MPCS

@Larry,

Is that documented anywhere in the help file? I am sure I have seen it somewhere before but I don't recall if it was on the forum or if I read it in the online help.

*** Matt @ MPCS

Share this post


Link to post
Share on other sites
Guest xeneizeusa

Much thanks Larry! That worked. :ph34r:

I do apologize for not recognizing that I had downloaded and installed ver 2.64 and posted on a 3x thread. My Bad. :(

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  

×