Sign in to follow this  
Followers 0
livewire

Run shortcut Maximized/Minimized

5 posts in this topic

Why doesn't the following work?

1. Compile a GUI program to exe

2. Create a shortcut to the compiled GUI program

3. Right-click shortcut and do (Run: Minimized)

4. Run the shortcut and the program should run initially minimized

Here is an example GUI program (using AutoIt3 beta v3.1.1.124):

#include <GUIConstants.au3>

$Form1 = GUICreate("AForm1", 622, 441, 192, 125)
$Button1 = GUICtrlCreateButton("AButton1", 152, 80, 209, 41)
GUISetState(@SW_SHOW)
While 1
    $msg = GuiGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case Else
            ;;;;;;;
    EndSelect
WEnd

Is this possible in AutoIt?

Livewire

Share this post


Link to post
Share on other sites



Why doesn't the following work?

1. Compile a GUI program to exe

2. Create a shortcut to the compiled GUI program

3. Right-click shortcut and do (Run: Minimized)

4. Run the shortcut and the program should run initially minimized

Here is an example GUI program (using AutoIt3 beta v3.1.1.124):

#include <GUIConstants.au3>

$Form1 = GUICreate("AForm1", 622, 441, 192, 125)
$Button1 = GUICtrlCreateButton("AButton1", 152, 80, 209, 41)
GUISetState(@SW_SHOW)
While 1
    $msg = GuiGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case Else
            ;;;;;;;
    EndSelect
WEnd

Is this possible in AutoIt?

Livewire

Just add a GUISetState(@SW_MINIMIZE) after the GUISetState(@SW_SHOW)

You need to show first unless the minmize will be rejected.

Share this post


Link to post
Share on other sites

How do I make the code recognize that the "user" selected Run minimize from Windows (Right-click: Run Minimized)?

Share this post


Link to post
Share on other sites

Any updates on this?

Share this post


Link to post
Share on other sites

VAN0,

8 years on - and you expect an answer? Please do not necro-post like this - just open a new thread. ;)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0