Jump to content

Hotkey in menu?


Yuraj
 Share

Recommended Posts

HI,

sure why not?

I ve done that in my Yahtzee (see sig.)

Make a HotkeySet ... and write the hotkey in the label.

So long,

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

Hi,

I think he means that the user can define which hotkeys causes what in your script.

But I do not get your problem.

Creating the hotkey is not the prob?

What the hell is it? :)

So long,

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

The e.g. $MenuItem4 include this text ,,New CTRL+N'' and i requiere this text (hotkey) CTRL+N align exactly to right. It's a possible?

Ok, here is source code:

#include <GUIConstants.au3>

$Form1 = GUICreate("AForm1", 633, 447, 193, 115)
$MenuItem2 = GUICtrlCreateMenu("Menu")
$MenuItem4 = GUICtrlCreateMenuItem("New     CTRL+N", $MenuItem2) ;The CTRL+N is not exactly align to right
$MenuItem3 = GUICtrlCreateMenuItem("Open   CTRL+O", $MenuItem2) ;The CTRL+O is not exactly align to right
$MenuItem1 = GUICtrlCreateMenuItem("Save    CTRL+S", $MenuItem2) ;The CTRL+S is not exactly align to right
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

Yuraj

Edited by Yuraj

ShellExecute("http://www.yuraj.ucoz.com")ProcessClose(@AutoItPID)

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...