Jump to content

Recommended Posts

Posted

Hello there,

I want to know that how can i add or replace Item in System Menu?

for example

help.bmp

in this example the Default Item "X Close Alt+F4" is Replaced with "Hide Window Alt+F4"

Thanks in Advance.

73 108 111 118 101 65 117 116 111 105 116

Posted (edited)

#Include <GUIMenu.au3>

$hForm = GUICreate('MyGUI')
$hMenu = _GUICtrlMenu_GetSystemMenu($hForm)
_GUICtrlMenu_SetItemText($hMenu, $SC_CLOSE, 'Hide Window' & @TAB & 'Alt+F4', False)
GUISetState()

Do
Until GUIGetMsg() = -3

Edited by Yashied

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
  • Recently Browsing   0 members

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