Jump to content

Run shortcut Maximized/Minimized


Recommended Posts

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

Link to comment
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.

Link to comment
Share on other sites

  • 7 years later...
  • Moderators

VAN0,

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

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see 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

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...