Zilee Posted February 23, 2011 Share Posted February 23, 2011 I have this program at work that's been written a while back and the author doesn't work here anymore. Anyways, now I have been asked to add command line support to this GUI app. I don't know if I should meddle and try to patch the existing code or instead duplicate the necessary methods and create a pure cmd version of it(Ie a seperate .exe). If I do duplicate it future changes will have to be done at two different places, but if I patch the GUI application it might get ugly and I've read that you can't write output to the shell from an gui application. Anyways, I would appreciate feedback. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 23, 2011 Moderators Share Posted February 23, 2011 Zilee,Look in the Help file under <Using Autoit - Command Line Parameters> - using them is really easy so you should be able to patch your script without problem. And you know where we are if you do get into difficulties. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Zilee Posted February 23, 2011 Author Share Posted February 23, 2011 Zilee, Look in the Help file under <Using Autoit - Command Line Parameters> - using them is really easy so you should be able to patch your script without problem. And you know where we are if you do get into difficulties. M23 Well I know how to use the CMDLines[] it's similar to args in java or c++ passed to a main. I'm just wondering how real-world applications incorporate command line support. I'm not sure but I have a feeling they might check for arguments and if there is at least one then they launch an other exe which is pure cmd style. Autoit doesn't allow OOP so I am obligated to duplicate functions because they are mixed with gui elements(Such as an export function that relies on a treeview(gui) to get each of it's elements). Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 23, 2011 Moderators Share Posted February 23, 2011 Zilee,so I am obligated to duplicate functionsOr rewrite them so that they can accept input from either the GUI or the commandline - probably longer to do, but much easier to maintain. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area 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