Jump to content

In a torn


Zilee
 Share

Recommended Posts

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

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

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

  • Moderators

Zilee,

so I am obligated to duplicate functions

Or 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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...