Jump to content

Unstable V3.0.92 Available


Jon
 Share

Recommended Posts

  • Administrators

http://www.hiddensoft.com/autoit3/files/unstable/

After much twatting around with the SHFileOperation thing I managed to get DirCopy working on the unholy trinity of Win95/NT4 and XP. WHAT IS THE POINT OF A STANDARD API THAT WORKS DIFFERENTLY ON EACH PLATFORM!!!?!?! :whistle:

Well I _think_ it is working.

For the "move" stuff I've added in checks for when moving between volumes, these are then turned into Copy/Delete opertations (quote from the APIs "moving files between volumes is only supported under some operating systems" - some? SOME? What the hell is some?? B) )

3.0.92 (29th Jan, 2004)

- Added: DirCopy()

- Added: DirMove()

- Changed: FileMove() overwrite flag added

- Changed: *.* assumed if a directory is used in FileCopy/FileMove

- Fixed: @TempDir under certain conditions

- Changed: (Internal) DirRemove changed

Link to comment
Share on other sites

  • Replies 40
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Administrators

Jon your a machine.  It is amazing the amount of code you have put out lately.  Now go for a ride on your bike and relax :whistle:

red

Can't. It's been snowing and raining since November. B)
Link to comment
Share on other sites

  • Administrators

Updated. Getting there...getting there.

3.0.92 (30th Jan, 2004)

- Added: #comments-start and #comments-end for multiline comments

- Added: DirCopy()

- Added: DirMove()

- Changed: optional variation added to PixelSearch()

- Changed: FileMove() overwrite flag added

- Changed: *.* assumed if a directory is used in FileCopy/FileMove/FileDelete

- Fixed: @TempDir under certain conditions

- Changed: (Internal) DirRemove changed

- Changed: (Internal) Sendkeys tweaked

Link to comment
Share on other sites

  • Administrators

As hinted at in the new docs I've been playing around with WinTitleMatchMode 4

Current implementation is "title" and "text" are used as follows in this mode:

"classname=parent window classname", "text"

"handle=22ff4556", ""

"", "" (last window rather than active)

There is also a WinGetHandle("title", "text") function

I've got the classname working at the moment, just a few other changes to make.

Suggestions?

Link to comment
Share on other sites

As hinted at in the new docs I've been playing around with WinTitleMatchMode 4

Current implementation is "title" and "text" are used as follows in this mode:

"classname=parent window classname", "text"

"handle=22ff4556", ""

"", "" (last window rather than active)

There is also a WinGetHandle("title", "text") function

I've got the classname working at the moment, just a few other changes to make.

Suggestions?

perhaps it is no more need but at AutoItV2 time frame a lot of my synchro with winWaitActive would have bee solve if the checked title was only the first one given by /reveal.

if it is good same thing can be done with the first title show by AU3_Spy

Link to comment
Share on other sites

The proposed approach seems perfect to me. I'm glad you're adding the "last used" window feature (assuming I'm reading it right). You're probably doing it as the last window used by any command, which could well be a simpler and better method than mine.

Link to comment
Share on other sites

  • Administrators

This is what I've just finished documenting:

WinTitleMatchMode Mode 4

Advanced mode.

In this mode special sequences are used in the title parameter so that window classnames and handles can be used. The text parameter remains the same.

The special sequences must contain no whitespace. They are:

"classname=CLASSNAME"

"handle=HANDLE"

"active"

"last" or ""

For example when in mode 4 and you want to identify a window that has the classname "MYCLASS1" then you would use "classname=MYCLASS1" for the title parameter. When using a handle you must use the return value of a WinGetHandle function (see function for an example).

"active" matches the currently active window (same as "" in the default WinTitleMatchMode).

"last" or "" uses the last successful window match so you don't have to keep specifying the title and text again and again. e.g.

AutoItSetOption("WinTitleMatchMode", 4)

WinWaitActive("Untitled - Notepad")

WinClose("last") ; Closes the previously matched notepad window

Note: If "classname=", "handle=", "active", "last" or "" are not used as the title then the window matching takes place as in Mode 1 making this a good mode for general use.

Link to comment
Share on other sites

  • Administrators

The proposed approach seems perfect to me.  I'm glad you're adding the "last used" window feature (assuming I'm reading it right).  You're probably doing it as the last window used by any command, which could well be a simpler and better method than mine.

Yeah, it will use the last successful "match" that went through the internal WindowSearch function.
Link to comment
Share on other sites

  • Administrators

I don't see any documentation on this feature.  I'm assuming that I can use the "text" on a button instead of the classname##.

I'm modifying Au3Spy at the moment to show extra stuff. Check later.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...