The script that I have been working on is still growing as I take more and more things into consideration. One of those things is making sure the reports That I am running with this script are saved in the correct location.
I have looked through a bunch of different functions and I think the ControlTreeView is my best bet to select the proper network drive and folder to save this out to. My first question is am I right?
If I am correct the question then How would I properly format my item to select a particular folder. I'm not quite following the help file.
Edited by sriKnight, 11 May 2012 - 12:54 PM.
No, I'm not a programer.Yes, I am a noob.You know what the difference is between you and me?I make this look good.
I would take a look at FileSelectFolder if I were you.
M23
StringSize - Automatically size controls to fit text - ExtMsgBox - A user customisable replacement for MsgBox
Toast - Small GUIs which pop out of the Systray - Marquee - Scrolling tickertape GUIs
Scrollbars - Automatically sized scrollbars with a single command - GUIFrame - Subdivide GUIs into many adjustable frames
GUIExtender - Extend and retract multiple sections within a GUI - NoFocusLines - Remove the dotted focus lines from buttons, sliders, radios and checkboxes
ChooseFileFolder - Single and multiple selections from specified path tree structure - - Notify - Small notifications on the edge of the display
RecFileListToArray
- An alternative to _FileListToArray with user-defined include/exclude masks, maximum recursion level, sorting and displayed path options
GUIListViewEx - Insert, delete, move, drag and sort ListView items
You asked for something "to select the proper network drive and folder" - that is what the FileSelectFolder function does and why I suggested it. Now you speak of a "save as" window" - that is another thing altogether.
What exactly do you want to do and what code do you have so far to do it? Is this "save as" window something you have coded in your script or a dialog in another app? Help us to help you by clearly explaining the problem - I could suggest possible solutions all night, but I get bored quickly when people keep changing the goalposts in mid-thread.
M23
StringSize - Automatically size controls to fit text - ExtMsgBox - A user customisable replacement for MsgBox
Toast - Small GUIs which pop out of the Systray - Marquee - Scrolling tickertape GUIs
Scrollbars - Automatically sized scrollbars with a single command - GUIFrame - Subdivide GUIs into many adjustable frames
GUIExtender - Extend and retract multiple sections within a GUI - NoFocusLines - Remove the dotted focus lines from buttons, sliders, radios and checkboxes
ChooseFileFolder - Single and multiple selections from specified path tree structure - - Notify - Small notifications on the edge of the display
RecFileListToArray
- An alternative to _FileListToArray with user-defined include/exclude masks, maximum recursion level, sorting and displayed path options
GUIListViewEx - Insert, delete, move, drag and sort ListView items
I am writing a script that will navigate the software that my company uses to run reports every month. Process of my script is to log into the GUI, run a report(Crystal Reports), export to a pdf, and save that pdf to a folder on a network drive.
Here is most of my script( all I need to to is copy and paste 2 times and change some labels)
Where I have run into issues is with the window that my software generates to save the file.
Problem #1 - I have having difficulties getting AutoIT to "cleanly" elect to save the file as a .pdf. I currently use keyboard navigation for this process. I have already created a thread for this issue, but I never got it resolved.
Here is the Information for that particular control ....
>>>> Window <<<<
Title: Export Report
Class: #32770
Position: -1452, 94
Size: 1102, 792
Style: 0x96CC02C4
ExStyle: 0x00010101
Handle: 0x0000000000AB1B74
>>>> Visible Text <<<<
Namespace Tree Control
Tree View
Crystal Reports (*.rpt)
ShellView
&Save
Cancel
Address: W:\Corridor\Month End Reports
>>>> Hidden Text <<<<
Namespace Tree Control
&Help
Problem #2 - While saving the file I would like to specify the folder on a net work drive that this document will be saved to. This is done from the same window that the software we uses generates. Here is the control info for that System Tree.
>>>> Window <<<<
Title: Export Report
Class: #32770
Position: -1452, 94
Size: 1102, 792
Style: 0x96CC02C4
ExStyle: 0x00010101
Handle: 0x0000000000AB1B74