Jump to content
Sign in to follow this  

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] ---------------------

Share this post

Link to post
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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.