Maybe when you pick this up again, you can give additional information on what you really want to do. You said that you wanted to print a few pages from a cookbook but then you show the code for a gui with an edit box with the word Pasta. No further information (?). It's no surprise that you did not...
@jinok I like the open and closing brackets with 2 spaces!
Note: if you include the +E0x08000000 in the gui options you can remove the MyGui.hide and MyGui.restore and the gui will not flicker. +E0x08000000 allows you send to the window below the script's window.
The fonts on the forum are a bit tricky when it comes to distinguishing between l and 1. I typically name a list (a series of strings separated by linefeeds or other delimiter) "lst".
Save with UTF-8 with BOM #Requires AutoHotkey v2.0 SetKeyDelay 0 OnMessage(0x200, WM_MOUSEMOVE) h:= 24, w := 26.5, v := 12 ; height & width for each symbol; v is number of symbols per row. MyArr := ["ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÑÒÓÔŒÕÖØÙÚÛÜßàáâãäåæçèéêëìíîïñòóôœõöøùúûüÿ" ,"≈∝≡≠≤≥×·÷∂′″∇‰°∴ø∈∩∪⊂⊃⊆⊇¬∧∨∃∀⇒⇔→↔↑ℵ∉°✓...
I would do it this way: startDate := "2024-03-09" endDate := "2024-03-08" startDate := strreplace(startDate,"-") endDate := strreplace(endDate,"-") endDate -= startDate , days msgbox % (endDate>0) ? "The end date is greater than the start date" :(endDate<0) ? "The end date is smaller than the start ...
try: List :="Class 2. Book 1|Class 1. Book 13|Class 1. Book 2|Class 1. Book 5|Class 1. Book 6|Class 2. Book 12|Class 1. Book 14|Class 1. Book 1|Class 2. Book 2|Class 1. Book 10" Sort, List, D| F logical_cmp List := StrReplace(List, "|", "`n") msgbox % List logical_cmp(a,b, o) { return dllcall("Shlwa...
I agree that the use of msgbox item is possibly due to a poor understanding of what maps are. I suggest for the OP to review the documentation about objects and maps in particular. (see https://www.autohotkey.com/docs/v2/Objects.htm). Going out on a limb: if the intent is to create a map from the el...
if there're some blank paragraphs in between it won't work and got this error. These rogue blank paragraphs should probably be deleted for the script to work. "Previous" refers to the prior paragraph whether blank or not and there is no easy way to have it refer to "prior if not blank". This is a s...