Hey,
Is it possible to arrange a menu so each category will have it's own column, instead of having to hover or click over the categories to see what's inside?
I basically want to see the entire menu when it's opened, instead of having to click on the categories. The problem is that if I try to do that now without the categories, it's just gets all the items into 1 big column that doesn't fit into my screen.
Appreciate your help, thank you
Arrange menu Topic is solved
-
- Posts: 296
- Joined: 07 Nov 2020, 08:37
Re: Arrange menu
Then just make a GUI with a bunch of buttons in several columns. There doesn’t seem to be any reason to make it a menu per your description. Just have your script invoke the GUI instead of a menu. You can implement the equivalent of check marks if that’s one reason for using a menu.
-
- Posts: 296
- Joined: 07 Nov 2020, 08:37
Re: Arrange menu
Just not sure how to work with GUIs..
I only want a simple menu that will be displayed like I said, nothing more..
I only want a simple menu that will be displayed like I said, nothing more..
Re: Arrange menu
Not sure what to tell you if you’re not interested in learning the solution to your problem.hemsith14_ wrote: ↑ Just not sure how to work with GUIs..
-
- Posts: 296
- Joined: 07 Nov 2020, 08:37
Re: Arrange menu
Could you make a simple GUI that will work like a menu?
Re: Arrange menu
What you described doesn’t work like a menu because all the options are always visible. It’s more like what I described, which is a GUI with a bunch of buttons. Yes, that’s standard GUI operation.
-
- Posts: 296
- Joined: 07 Nov 2020, 08:37
Re: Arrange menu
Could you show me an example script?
Re: Arrange menu
See Example #2 from the GUI documentation page. Just make a bunch of buttons and none of the other stuff.
Re: Arrange menu
Code: Select all
Gui, 1:+AlwaysOnTop
Index := 0
Loop, 10 {
Gui, 1:Add, Button, xm y+10 w110 , % "Button " ++Index
Loop, 9 {
Gui, 1:Add, Button, x+10 yp wp , % "Button " ++Index
}
}
Gui, 1:Show
-
- Posts: 296
- Joined: 07 Nov 2020, 08:37
Re: Arrange menu
Is it possible to just simply turn my existing menu into something like this?
Also, how do I get it to behave like a menu, so it would be opened from where my mouse is?
Also, how do I get it to behave like a menu, so it would be opened from where my mouse is?
Re: Arrange menu
YES? NO? MAYBE?hemsith14_ wrote: ↑02 Jan 2022, 18:35Is it possible to just simply turn my existing menu into something like this?
A variation of this.Also, how do I get it to behave like a menu, so it would be opened from where my mouse is?
Code: Select all
GuiClose:
Gui, 1:Hide
return
F1::
CoordMode, Mouse, Screen
MouseGetPos, x, y
Gui, 1:Show, % "x" x " y" y
return
-
- Posts: 296
- Joined: 07 Nov 2020, 08:37
Re: Arrange menu
I currently have this:
Couldn't get it to follow my mouse yet, and I also want it to be closed if I click on any other place rather than on the GUI (like a menu).
Also, not sure how to get the buttons to be aligned side by side.
Could you help me with that?
Code: Select all
^1::
MouseGetPos, X1, Y1
Gui, New,,Test
Gui, Font, s30, Verdana
Gui, +AlwaysOnTop -SysMenu +Owner
Gui, Add, Button, Y+10 W110 , TEST
Gui, Show
Return
ButtonTEST:
Send, {LWin}
Gui, Hide
Return
Also, not sure how to get the buttons to be aligned side by side.
Could you help me with that?
Re: Arrange menu
Hellbent showed examples of how to align buttons in columns and how to have it appear where the mouse is.
To get it to close when you click, make a hotkey ~LButton:: that is active only when your GUI exists, and if the click is outside of your GUI, then it would close the GUI.
To get it to close when you click, make a hotkey ~LButton:: that is active only when your GUI exists, and if the click is outside of your GUI, then it would close the GUI.
-
- Posts: 296
- Joined: 07 Nov 2020, 08:37
Re: Arrange menu
I figured everything out but how to get it to follow the mouse and the exit function.
Do you mind helping me with that?
Do you mind helping me with that?
Code: Select all
^1::
CoordMode, Mouse, Screen
MouseGetPos, x, y
Gui, 1:New,,Test
Gui, 1:Font, s30, Verdana
Gui, 1:+AlwaysOnTop -SysMenu +Owner
Gui, 1:-Caption
Gui, 1:Add, Button, y+10 W110 , TEST
Gui, 1:Add, Button, x+10 W110 , TEST2
Gui, 1:Show
Return
ButtonTEST:
Send, {LWin}
Gui, Hide
Return
ButtonTEST2:
Send, {LWin}
Gui, Hide
Return
Re: Arrange menu
As Hellbent showed:
Code: Select all
Gui, 1:Show, % "x" x " y" y
-
- Posts: 296
- Joined: 07 Nov 2020, 08:37
Re: Arrange menu
Oh yea I got confused with the ordering there, it works now. Thank you!
Now would you mind helping me with the ~LButton solution you suggested?
Now would you mind helping me with the ~LButton solution you suggested?
Re: Arrange menu
Sure. Try this:
Code: Select all
^1::
CoordMode, Mouse, Screen
MouseGetPos, x, y
Gui, 1:New,,Test
Gui, 1:Font, s30, Verdana
Gui, 1:+AlwaysOnTop -SysMenu +Owner
Gui, 1:-Caption
Gui, 1:Add, Button, y+10 W110 , TEST
Gui, 1:Add, Button, x+10 W110 , TEST2
Gui, 1:Show, % "x" x " y" y
Return
ButtonTEST:
Send, {LWin}
Gui, Hide
Return
ButtonTEST2:
Send, {LWin}
Gui, Hide
Return
#If WinExist("Test ahk_class AutoHotkeyGUI")
~LButton::
MouseGetPos,,, WinID
if (WinExist("Test ahk_class AutoHotkeyGUI") != WinID)
Gui, Hide
return
- flyingDman
- Posts: 2848
- Joined: 29 Sep 2013, 19:01
Re: Arrange menu Topic is solved
Have you considered using menu with barbreak ?
Code: Select all
loop, 15
Menu, scripts, Add, test%a_index%, Execute, % !mod(a_index - 1,5) ? "+barbreak" : ""
Menu, scripts, Show
return
execute:
return
14.3 & 1.3.7
Re: Arrange menu
@flyingDman
Who is online
Users browsing this forum: No registered users and 175 guests