Administrators Jon Posted January 29, 2004 Administrators Share Posted January 29, 2004 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!!!?!?! 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?? )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 Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
sykes Posted January 30, 2004 Share Posted January 30, 2004 Someone get Jon a valium ... Windows is taking its toll We have enough youth. How about a fountain of SMART? Link to comment Share on other sites More sharing options...
sykes Posted January 30, 2004 Share Posted January 30, 2004 Whoa ... Autoit ate Jons Hampster!!! Will this increase the main executable's file size?? Inquiring minds wanna know .. We have enough youth. How about a fountain of SMART? Link to comment Share on other sites More sharing options...
redndahead Posted January 30, 2004 Share Posted January 30, 2004 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 red Link to comment Share on other sites More sharing options...
Administrators Jon Posted January 30, 2004 Author Administrators Share Posted January 30, 2004 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 redCan't. It's been snowing and raining since November. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Administrators Jon Posted January 30, 2004 Author Administrators Share Posted January 30, 2004 Inquiring minds wanna know .. My guess is "The Lost Boys". Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Administrators Jon Posted January 30, 2004 Author Administrators Share Posted January 30, 2004 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 Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Administrators Jon Posted January 31, 2004 Author Administrators Share Posted January 31, 2004 Updated. Added the #comments support into the compiler and added a couple more sections to the helpfile for compiling. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Administrators Jon Posted January 31, 2004 Author Administrators Share Posted January 31, 2004 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? Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
jpm Posted January 31, 2004 Share Posted January 31, 2004 As hinted at in the new docs I've been playing around with WinTitleMatchMode 4Current 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 More sharing options...
CyberSlug Posted February 1, 2004 Share Posted February 1, 2004 Would the new additions allow one to get the titles and/or handles of all currently open windows? Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
cmallett Posted February 1, 2004 Share Posted February 1, 2004 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 More sharing options...
Administrators Jon Posted February 1, 2004 Author Administrators Share Posted February 1, 2004 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. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Administrators Jon Posted February 1, 2004 Author Administrators Share Posted February 1, 2004 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. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Administrators Jon Posted February 1, 2004 Author Administrators Share Posted February 1, 2004 /unstable/ updated with the WinTitleMatchMode 4 stuff and Cyberslug's doc updates. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
sconley Posted February 1, 2004 Share Posted February 1, 2004 Added: Controls will be checked by visible text as well as classname (waves to Chris )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##. Link to comment Share on other sites More sharing options...
jpm Posted February 1, 2004 Share Posted February 1, 2004 /unstable/ updated with the WinTitleMatchMode 4 stuff and Cyberslug's doc updates.Is there a reason why WinGetHandle return 1 on error not 0? Link to comment Share on other sites More sharing options...
Administrators Jon Posted February 1, 2004 Author Administrators Share Posted February 1, 2004 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. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Administrators Jon Posted February 1, 2004 Author Administrators Share Posted February 1, 2004 Is there a reason why WinGetHandle return 1 on error not 0?Does it? Whoops. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
jpm Posted February 1, 2004 Share Posted February 1, 2004 Does it? Whoops.THat the doc is sayingI have not check at the moment Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now