Easily aligning text in a messagebox?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
lawnmowerobot
Posts: 9
Joined: 21 Oct 2020, 04:04

Easily aligning text in a messagebox?

Post by lawnmowerobot » 26 Jun 2022, 04:07

The code extract below shows keyboard shortcuts I use and gets displayed in a context sensitive manner when on a particular website
While use of the `t thingy (not sure what it is called - copied from some other script) does work in a way to allow essentially the two columns to be displayed, it is not all that easy to use as a bit fiddly and not sure how many thingys to insert to get the two columns aligned etc

Is there any easier way to create two columns in a messagebox that are all aligned vertically when displayed? Thanks LMR

Code: Select all

MsgBox, 
			(LTrim
			

			Ctrl h `t`t`t`t` Highlight
			Ctrl Shft m `t`t`t` Move
			pound symbol `t`t`t` Tag

			SEARCHING
			Ctrl f `t`t`t`t` Search in current document
			Ctrl f then Ctrl Enter `t`t` Search all

			Ctrl + `t`t`t`t` expand
			Ctrl Shft + `t`t`t` expand all
			Ctrl ] `t`t`t`t` expand and that item as focus 
			Ctrl arrow `t`t`t` up or down swaps that item
			Right click `t`t`t` Add to Favourites (bookmarks)
			text ! `t`t`t`t` add text to calendar
[Mod edit: [code][/code] tags added.]

User avatar
mikeyww
Posts: 26601
Joined: 09 Sep 2014, 18:38

Re: Easily aligning text in a messagebox?

Post by mikeyww » 26 Jun 2022, 06:31

I generally use a GUI in this situation, because it can be easier and faster to create & maintain.

Post Reply

Return to “Ask for Help (v1)”