Jump to content

Close Menu but leave system tray when close is pressed


Recommended Posts

this is what i tried so far,

systemtray menu = traymenu.au3

systemInformation Tabs = funcSystemInfo.au3

-------------------------------------systemtray--------------------------------------

Case $msg = $sysInfo

$sysStatus = 1

#include "functionsSystemInfo.au3"

-----------------------------------Tab Menu Popup--------------------------------

at the top i have

While $sysStatus = 1

at the bottom i have

GUISetState(@SW_SHOW)

#EndRegion ### END Koda GUI section ###

While 1

If GUIGetMsg() = -3 Then

GUISetState(@SW_HIDE)

$sysStatus = 0

EndIf

Wend

WEnd

Description of what happens

It successfully hides it when i close it but then it wont let me open it again afterwards without restarting the traymenu.au3

Link to comment
Share on other sites

figured it out, if anyone needs to do the same thing, this is what i did

Case $msg = $sysInfo

#Region ### START Koda GUI section ### Form=

GUICreate("System Information", 900, 600)

GUICtrlCreateTab(10,10,850,20)

;Create System Tabs

$driveTab = GUICtrlCreateTabItem("Hard Drives")

GetDriveInfo()

$biosTab = GUICtrlCreateTabItem("Bios")

$serviceTab = GUICtrlCreateTabItem("Services")

$processTab = GUICtrlCreateTabItem("Running Processes")

$displayTab = GUICtrlCreateTabItem("Display")

$systemTab = GUICtrlCreateTabItem("System")

$printTab = GUICtrlCreateTabItem("Print")

GUISetState(@SW_SHOW)

#EndRegion ### END Koda GUI section ###

While 1

If GUIGetMsg() = -3 Then ExitLoop ; <---Exits the Loop to run.....

WEnd

GuiDelete("System Information") ; <---The Delete Gui, Notice i specified it so that it would make sure to delete the correct one

Edited by shawnmstout
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...