Search found 42 matches

by DrReflex
01 Feb 2024, 22:49
Forum: Scripts and Functions (v2)
Topic: [AHK v2] Function Broadcast to Array/Object
Replies: 1
Views: 1123

Re: [AHK v2] Function Broadcast to Array/Object

DO NOT BOTHER TO TRY TO RUN THE ABOVE CODE.
It may have have been written with a very early version of V2. It does not run with released version v2 and is full of numerous syntax errors.
by DrReflex
24 Jan 2024, 03:53
Forum: Wish List
Topic: Request for shorthand to define maps
Replies: 1
Views: 287

Request for shorthand to define maps

AHK has shorthand notation for defining objects and for defining arrays that make writing multidimensional objects, multidimensional arrays, and mixtures of the two relatively easy.' 3x3 2D OBJECT oGrid := {1:{1:1,2:2,3:3}, 2:{1:4,2:5,3:6}, 3:{1:7,2:8,3:9}} Uses curly brackets, colons, and commas. 3...
by DrReflex
24 Jan 2024, 02:33
Forum: Ask for Help (v2)
Topic: Shortest way to define a 2D Map
Replies: 8
Views: 512

Re: Shortest way to define a 2D Map

Thanks Mike, I should have labeled the post "Shortest way to define a multidimensional map and should have left the examples as 3x3x3 3D. It looks like your example is an array of maps. I am looking for a shorthand way to write a multidimensional map of maps. To keep things simple and similar betwee...
by DrReflex
22 Jan 2024, 03:19
Forum: Ask for Help (v2)
Topic: Shortest way to define a 2D Map
Replies: 8
Views: 512

Shortest way to define a 2D Map

I can define a 2D object as: oGrid := {1:{1:1,2:2,3:3}, 2:{1:4,2:5,3:6}, 3:{1:7,2:8,3:9}} and, I can define a 2D array as: aGrid := [[1,2,3], [4,5,6], [7,8,9]] Is there a shorter way to define a 2D map than: mGrid := Map(1,Map(1,1, 2,2, 3,3), 2,Map(1,4, 2,5, 3,6), 3,Map(1,7, 2,8, 3,9)) Lexios and ot...
by DrReflex
04 Aug 2023, 19:14
Forum: Scripts and Functions (v2)
Topic: Extract a sorted list of functions
Replies: 2
Views: 700

Extract a sorted list of functions

It is often useful to have a sorted list of AHK functions. This is particularly useful for large libraries. Here is a simple function that will extract a list of functions that conform to the format: Function(parameters) { ... code lines ... } etc. It requires input and output file names (with full ...
by DrReflex
02 May 2023, 01:43
Forum: Tips and Tricks
Topic: Build multitier popup menus from CSV data
Replies: 1
Views: 1357

Build multitier popup menus from CSV data

Here is a short program that shows how to build multitier menus from CSV data (in this case a CSV data string). { ;Multitier_Popup_Menu_From_CSV_Example.v2.ahk - v2 - ; Language: English ; Platform: Windows11 ; Script Function: Example of how to build a multitier menu from a CSV data string ; REFERE...
by DrReflex
19 Apr 2023, 11:39
Forum: Tips and Tricks
Topic: A caution about combining Gui.Add and onEvent functions
Replies: 5
Views: 2001

A caution about combining Gui.Add and onEvent functions

Combining Gui.Add() and onEvent() functions on a single line is appealing as a programming technique (see below). However, this can lead to unexpected issues. Gui.Add() returns the GuiControl object (GuiCtrl) for the control that was added. This is a powerful reference that you will want to have if ...
by DrReflex
24 Feb 2023, 03:54
Forum: Scripts and Functions (v1)
Topic: v1 -> v2 Script Converter
Replies: 146
Views: 72067

Re: v1 -> v2 Script Converter

Very helpful. I hope the community with work with guest3456 to improve the conversion process. Here is my first input. An update for the v2converter.ahk script. { ;FILE_NAME My_v2converter.ahk - v2 - ; Language: English ; Platform: Windows11 ; Author: guest3456 ; Update to v2converter.ahk (DrReflex)...
by DrReflex
21 Feb 2023, 20:42
Forum: Ask for Help (v2)
Topic: V2 Possible bug - addListView() Error: Too many parameters passed to function
Replies: 7
Views: 960

Re: V2 Possible bug - addListView() Error: Too many parameters passed to function

Thanks just me. FYI: It is possible to pass a variadic paramenter for the listview header in v2. See my example. This is a great addition to V2! In V1 you had to use a loop to construct the header (see https://www.autohotkey.com/boards/viewtopic.php?t=28155) ;sCSV = CSV formated string. Obtain from ...
by DrReflex
12 Feb 2023, 09:43
Forum: Ask for Help (v1)
Topic: Order of indices in for k, v in array-style loop
Replies: 7
Views: 521

Re: Order of indices in for k, v in array-style loop

Great example. I like this modification even better. Both show how in arr1 the keys are numeric and are accessed sequentially in numerical order (A,D,C,B) and in arr2 the keys are strings and are accessed sequentially in alphabetically sorted order (E,G,F,H) #Requires AutoHotkey >=2.0-<2.1 #SingleIn...
by DrReflex
11 Feb 2023, 18:02
Forum: Ask for Help (v2)
Topic: V2 Possible bug - addListView() Error: Too many parameters passed to function
Replies: 7
Views: 960

Re: V2 Possible bug - addListView() Error: Too many parameters passed to function

Thanks just me! I agree. However, I am still new to V2 and I did not find variadic loading of the header in .Add("ListView"...) to be as intuitive in V2 as it was in V1. In V1, you just built a header string and inserted it. With V2 the load should be direct and once you workout the formatting it is...
by DrReflex
11 Feb 2023, 01:25
Forum: Ask for Help (v2)
Topic: V2 Possible bug - addListView() Error: Too many parameters passed to function
Replies: 7
Views: 960

Re: V2 Possible bug - addListView() Error: Too many parameters passed to function

Thanks flyingDman. I really appreciate your Help. It turns out that in addition to replacing "row*" with "row" as you suggested, replacing "row*" with [row*] also works. I prefer the semantics of the latter since I am loading listviews with variadic lists of elements from CSV files. FOR LEXiKOS: 1. ...
by DrReflex
10 Feb 2023, 12:56
Forum: Ask for Help (v2)
Topic: V2 Possible bug - addListView() Error: Too many parameters passed to function
Replies: 7
Views: 960

V2 Possible bug - addListView() Error: Too many parameters passed to function

addListView() fails when trying to pass header as an expanded array. See comments below: #SingleInstance Force data := [] row1 := ["Col1", "Col2", "Col3"] row2 := ["R1C1", "R1C2", "R1C3"] row3 := ["R2C1", "R2C2", "R2C3"] row4 := ["R3C1", "R3C2", "R3C3"] data.push(row1) data.push(row2) data.push(row3...
by DrReflex
05 Feb 2023, 03:00
Forum: SciTE4AutoHotkey
Topic: SciTE4AutoHotkey v3.1.0
Replies: 78
Views: 29221

Re: SciTE4AutoHotkey v3.1.0

SCITE BUILT IN KEYBOARD SHORT CUTS (HotKeys) Below is a list of the built in SciTE Hotkeys for SciTE4AutoHotkey version 3.1.0. I'm sorry that the forum editor eats the formatting. Hopefully fincs will consider adding the formatted version to the Help file. Just about every user will find one or mor...
by DrReflex
03 Feb 2023, 03:07
Forum: SciTE4AutoHotkey
Topic: Folding in S4AHK
Replies: 3
Views: 3538

Re: Folding in S4AHK

Here is an alernative. It has a few advantages: 1. Fewer keystrokes since there is no need to add the comment after Return. 2. The intellisence will now highlight the brackets. Could help debugging a dropped bracket. 3. The indenting after return is now automatic. "Return"<Enter>"}"<Enter>"...the ne...
by DrReflex
03 Feb 2023, 02:28
Forum: SciTE4AutoHotkey
Topic: Changing the Font Size and Backup Settings
Replies: 4
Views: 1633

Re: Changing the Font Size and Backup Settings

CHANGE TEXT SIZE
Magnify <Ctrl><Keypad+>
Shrink <Ctrl><Keypad->
Restore <Ctrl><Keypad/>
by DrReflex
02 Feb 2023, 20:04
Forum: SciTE4AutoHotkey
Topic: Is there a shortcut for folding code? Please share?
Replies: 2
Views: 1322

Re: Is there a shortcut for folding code? Please share?

<Ctrl><Shift><LClick> on Fold column
by DrReflex
31 Jan 2023, 03:17
Forum: SciTE4AutoHotkey
Topic: SciTE4AutoHotkey v3.1.0
Replies: 78
Views: 29221

Re: SciTE4AutoHotkey v3.1.0

I found another issue. Fixing it still did not fix the SciTE.exe build failure. The cloning instructions above for scintilla and scite are incorrect. They are pulling the most recent versions of scintilla and SciTE rather than the 5.2.2 versions that this build is reportedly based upon. The error ca...
by DrReflex
29 Jan 2023, 01:22
Forum: SciTE4AutoHotkey
Topic: SciTE4AutoHotkey v3.1.0
Replies: 78
Views: 29221

Re: SciTE4AutoHotkey v3.1.0

Looking for ideas. I am trying to recompile the most recent SciTE4AutoHotkey commit from 11/20/22 but I can't quite get there following the included build instructions which clearly contain some errors. I am stuck at building SciTE.exe. I have MSYS2 installed and fully updated with the following pac...
by DrReflex
28 Jan 2023, 18:52
Forum: SciTE4AutoHotkey
Topic: SciTE4AutoHotkey v3.1.0
Replies: 78
Views: 29221

Re: SciTE4AutoHotkey v3.1.0

v3.1.00 is more than a major upgrade SciTE4AutoHotkey (SciTE4AHK). I am not one of the programmers on SciTE4AHK. Like you, I am a regular user. SciTE4AHK is based upon the SCIntilla based Text Editor. Originally SciTE was built to demonstrate Scintilla. SciTE has become a popular program editor. Sci...

Go to advanced search