Jump to content

Run application without showing in the start-menu-bar


Recommended Posts

Is there a way to run my autoit scripts without showing it as a running application in the start-menu-bar (i don't know what it is called) ?

The task bar I think.

The way I have seen this done is based on the following logic.

Hidden windows aren't shown, and child windows aren't shown, a child need not be hidden even if it's parent is.

Opt("TrayIconHide",1);don't show icon in tray

#include <GUIConstants.au3>
#include <windowsconstants.au3>

$Form1 = GUICreate("hide", 52, 15, 193, 125)
;GUISetState(@SW_SHOW);don't show it
$form2 = GUICreate("child of hidden",300,300,200,200,-1,-1,$Form1)
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
    EndSwitch
WEnd
Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

The task bar I think.

The way I have seen this done is based on the following logic.

Hidden windows aren't shown, and child windows aren't shown, a child need not be hidden even if it's parent is.

Opt("TrayIconHide",1);don't show icon in tray

#include <GUIConstants.au3>
#include <windowsconstants.au3>

$Form1 = GUICreate("hide", 52, 15, 193, 125)
;GUISetState(@SW_SHOW);don't show it
$form2 = GUICreate("child of hidden",300,300,200,200,-1,-1,$Form1)
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
    EndSwitch
WEnd
Thanks! :D But for me, the only thing i needed to do was to add $hide = GUICreate("hide") and ,$hide in the end of the hidden gui. (don't know why. I added this script to Digi's splash :D )
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...