Jump to content

Recommended Posts

Hi guys,

I would like to create an application that uses CUI, and consolewrite.

At compiling I set the CUI enabled and It works well.

#AutoIt3Wrapper_Change2CUI=y

Now I have only one question:

Is there any way to hide/delete the CUI?

(I write something on it, let it be there for some sec, then it would disappear)

Thanks a lot:

Unc3nZureD

Edited by Unc3nZureD
Link to comment
Share on other sites

  • Developers

The only benefit of using CUI is that, when you run a script from the COMMANDPROMPT, the ConsoleWrite() output is shown in this CMD window and can be Piped into a file or something.

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

You have to search for the CMD windows and hide it:

Something like that:

$var = WinList()
For $i = 1 To $var[0][0]
    If $var[$i][0] <> "" And BitAND(WinGetState($var[$i][1]), 2) Then
        If WinGetProcess($var[$i][0], "") = @AutoItPID Then
            WinSetState($var[$i][1], "", @SW_HIDE)
            ExitLoop
        EndIf
    EndIf
Next

I used the code above in Head-Tail to have a semi CLI version.

Br,

UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

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

×
×
  • Create New...