Sign in to follow this  
Followers 0
Jon

Unstable V3.0.92 Available

41 posts in this topic

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

Share this post


Link to post
Share on other sites



Someone get Jon a valium ... Windows is taking its toll :whistle:


We have enough youth. How about a fountain of SMART?

Share this post


Link to post
Share on other sites

Whoa ... Autoit ate Jons Hampster!!! Will this increase the main executable's file size?? Inquiring minds wanna know .. :whistle:


We have enough youth. How about a fountain of SMART?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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?

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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.

Yeah, it will use the last successful "match" that went through the internal WindowSearch function.

Share this post


Link to post
Share on other sites

Added: Controls will be checked by visible text as well as classname (waves to Chris :whistle: )

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##.

Share this post


Link to post
Share on other sites

/unstable/ updated with the WinTitleMatchMode 4 stuff and Cyberslug's doc updates.

Is there a reason why WinGetHandle return 1 on error not 0?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Does it?  Whoops.

THat the doc is saying

I have not check at the moment

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  
Followers 0