Menu (comparing 2 alternative ways)

Get help with using AutoHotkey and its commands and hotkeys
K201902
Posts: 6
Joined: 23 Feb 2019, 11:31

Menu (comparing 2 alternative ways)

17 Mar 2019, 09:15

Hi,
I have a long .ahk file with many little scripts inside. All of a sudden my menu stopped working so I figured out a way to get it running again, but now I wonder if the new way is ok. It works for me (the latter code excerpt), but it differs from what I have seen posted around here and in the manual.
So my question is, if I may interest anybody, is there any difference between the following two ways to do a menu, pls?

Thanks in advance for any kind help!
:)
K

Code: Select all

Menu, xNabidka, Add, &Calibre, xCalibre
Return

xCalibre:
Run, C:\Program Files\Calibre\calibre.exe, , max
Gui +LastFound +AlwaysOnTop +ToolWindow -Caption
Gui, Color, 000000
WinSet, TransColor, 000000 150
Gui, Font, s24 q3
Gui, Add, Text, cLime, Calibre
Gui, Show, x700 y930 NoActivate
Sleep, 2000
Gui, Destroy
Return

#z::
CoordMode, Menu, Screen
Menu, xNabidka, Show, 674, 400 
Return

Code: Select all

xCalibre:
Run, C:\Program Files\Calibre\calibre.exe, , max
Gui +LastFound +AlwaysOnTop +ToolWindow -Caption
Gui, Color, 000000
WinSet, TransColor, 000000 150
Gui, Font, s24 q3
Gui, Add, Text, cLime, Calibre
Gui, Show, x700 y930 NoActivate
Sleep, 2000
Gui, Destroy
Return

#z::
CoordMode, Menu, Screen
Menu, xNabidka, Add, &Calibre, xCalibre
Menu, xNabidka, Show, 674, 400 
Return

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], Gibbons, letacio, unconnu and 43 guests