Sign in to follow this  
Followers 0
simphax

Run application without showing in the start-menu-bar

4 posts in this topic

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) ?

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

If it is the icon in the system tray, then add the below at the top of your script

#NoTrayIcon

:D

Share this post


Link to post
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 )

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  
Followers 0