Jump to content

Building a GUI + Console Application


Recommended Posts

Hi there !

I'm looking for a way to have an application that would be both a GUI and a command line application.

I found a way to do that but it's not very clean. This code would do the trick (use it only compiled or it will hide you Scite Editor !)

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

if $CmdLine[0]>0 then
    ConsoleWrite("test1" & @CRLF)
    WinSetState(@ScriptDir, "", @SW_HIDE)

Basically, my application would start as a GUI only if no parameters are passed.

This would be very useful for blind people.

Thank you in advance.

--------------------- [font="Franklin Gothic Medium"]LinuxLive USB Creator[/font], [size="3"]The only Linux Live USB creator with easy integrated virtualization (made with AutoIT)[/size] ---------------------

Link to comment
Share on other sites

  • 1 year later...

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

  • Recently Browsing   0 members

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