livewire Posted May 25, 2006 Share Posted May 25, 2006 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 More sharing options...
jpm Posted May 25, 2006 Share Posted May 25, 2006 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? LivewireJust 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 More sharing options...
livewire Posted May 25, 2006 Author Share Posted May 25, 2006 How do I make the code recognize that the "user" selected Run minimize from Windows (Right-click: Run Minimized)? Link to comment Share on other sites More sharing options...
VAN0 Posted March 7, 2014 Share Posted March 7, 2014 Any updates on this? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 7, 2014 Moderators Share Posted March 7, 2014 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 Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts