sstivers Posted June 14, 2007 Share Posted June 14, 2007 I have a script that creates a folder on the desktop and copies some files into it. It then launches an application and clicks a couple of controls. Now the hard part. I need to find the folder I created on the desktop and drag it into the window of the application I just launched. Any Ideas? I can not find any other way to get the files into the application. It is Sonic RecordNow a CD / DVD burner. Thanks for your time. Link to comment Share on other sites More sharing options...
evilertoaster Posted June 14, 2007 Share Posted June 14, 2007 It doubt you can find the coordinates for a click command so i don't think you can drag it this way. Can you copy+paste into the recordnow GUI? Also I'd look more into the proram and make sure there isn't another way to burn somthing that the gui ineterface (or at least no other way to select a folder...) Link to comment Share on other sites More sharing options...
PaulIA Posted June 14, 2007 Share Posted June 14, 2007 I have a script that creates a folder on the desktop and copies some files into it. It then launches an application and clicks a couple of controls. Now the hard part. I need to find the folder I created on the desktop and drag it into the window of the application I just launched. Any Ideas? I can not find any other way to get the files into the application. It is Sonic RecordNow a CD / DVD burner. Thanks for your time.Welcome to the forum. Regardless of what you have previously been told, you can indeed find the coordinates of Desktop items. The Desktop is nothing more than a SysListView control. The following snippet shows how to list all of the items on your Desktop: #include <A3LListView.au3> $hList = ControlGetHandle("Program Manager", "", "SysListView321") for $iI = 0 to _ListView_GetItemCount($hList) - 1 _Lib_ConsoleWrite(_ListView_GetItemText($hList, $iI)) nextThis script can be easily modified to get the click coordinates of the item by using the Auto3Lib _ListView_GetItemRect function. You'll need Auto3Lib (and the latest production release of AutoIt) in order to do this. If you get stuck, PM me and I'll be glad to help you out with the coding. Auto3Lib: A library of over 1200 functions for AutoIt Link to comment Share on other sites More sharing options...
evilertoaster Posted June 14, 2007 Share Posted June 14, 2007 I stand corrected... Link to comment Share on other sites More sharing options...
sstivers Posted June 15, 2007 Author Share Posted June 15, 2007 I spent a lot of time working with Sonic trying to find a way to pass a file list or do a cut and paste. I even opened a help case with them and I never found a way. I am working with the RecordNow version that comes on Dell machines. It is very limited. I was able to use the following functions to solve my problem. _ListView_FindText() _ListView_GetItemPositionX() _ListView_GetItemPositionY() Thanks for the assistance. 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