Search found 3567 matches

by jeeswg
Today, 20:44
Forum: Ask For Help
Topic: objects: get dimensions
Replies: 2
Views: 56

Re: objects: get dimensions

So far I have it that [] and ["a"] have the same dimension, i.e. the same capacity, even though it isn't filled, e.g. an empty folder. So by that definition, for your example you have a maximum of 4 square brackets [[[[, and so the dimensions would be 4. But I haven't seen any dimension de...
by jeeswg
Today, 19:55
Forum: Ask For Help
Topic: Seek for duplicates in an array
Replies: 11
Views: 121

Re: Seek for duplicates in an array

Here are two examples for removing duplicates. q:: ;remove duplicates (case insensitive) vText := "abc,def,ghi,ABC,def" oArray := {} vOutput := "" Loop, Parse, vText, % "," { if !oArray.HasKey("z" A_LoopField) { oArray["z" A_LoopField] := ""...
by jeeswg
Today, 18:37
Forum: AutoHotkey v2 Development
Topic: AHK v1 to AHK v2 converter
Replies: 6
Views: 560

Re: AHK v1 to AHK v2 converter (initial work)

- I have a first release if anybody wants to play around with it. - The script is written for AHK v1, a main script, and a library that comes with it. It also needs the 2 libraries from here, the main functions library and expansion pack: commands as functions (AHK v2 functions for AHK v1) - Page 2 ...
by jeeswg
Today, 15:34
Forum: Ask For Help
Topic: Very Strange Error Topic is solved
Replies: 4
Views: 47

Re: Very Strange Error Topic is solved

Perhaps you want:

Code: [Select all]GeSHi © Codebox Plus

if (Var = "W")
by jeeswg
Today, 15:30
Forum: Ask For Help
Topic: Identify different types of associative arrays
Replies: 3
Views: 42

Re: Identify different types of associative arrays

- For my question, I've started a new thread. Cheers. objects: get dimensions - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=5&t=44568 - Your question was essentially: does an object have 1 or more dimensions. My question was: how many dimensions does an object have.
by jeeswg
Today, 15:25
Forum: Ask For Help
Topic: objects: get dimensions
Replies: 2
Views: 56

objects: get dimensions

- I wondered if anyone had written a function to get the number of dimensions for an object. - Prompted by this link: Identify different types of associative arrays - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=5&t=44551&p=201862#p201862 - Btw for SafeArrays: ComObjArr...
by jeeswg
Today, 13:32
Forum: Ask For Help
Topic: DLLCall: Call a topic on existing help window (CHM) with hhctrl.ocx\HtmlHelpA
Replies: 9
Views: 114

Re: DLLCall: Call a topic on existing help window (CHM) with hhctrl.ocx\HtmlHelpA

- It's good that Internet Explorer_Server method is working, but I will try to investigate the HTML Help API further, and would welcome anyone else to do the same. - I remember some annoyance I had with Excel 2007, and so since then have kept some chm files from MS Office 2003, for general help and ...
by jeeswg
Today, 12:58
Forum: Ask For Help
Topic: Identify different types of associative arrays
Replies: 3
Views: 42

Re: Identify different types of associative arrays

- It seems that you want to check if any of the values are objects. Here's a way: ArrayType := "SimpleArray" ;for ID, FieldArray in Color for ID, FieldArray in ResultArr { if IsObject(FieldArray) { ArrayType := "MultiArray" break } } - @anyone: Is there a way to get an array's di...
by jeeswg
Today, 03:50
Forum: Ask For Help
Topic: DllCall 32vs64 bit Topic is solved
Replies: 11
Views: 168

Re: DllCall 32vs64 bit Topic is solved

@nnnik: Ah yes thanks, it says 'int ExtractText', so Int, I'd read some other part that made me think it might be a Ptr.
by jeeswg
Today, 03:09
Forum: Ask For Help
Topic: DllCall 32vs64 bit Topic is solved
Replies: 11
Views: 168

Re: DllCall 32vs64 bit Topic is solved

- Perhaps try adding Ptr at the end: fileLength := DllCall("xd2txlib\ExtractText", "Str", Search, "Int", False, "Ptr*", fileText, "Ptr") - Perhaps try specifying fileLength as an arbitrary number like 10, to see if fileText is valid. - What d...
by jeeswg
Yesterday, 23:25
Forum: Ask For Help
Topic: FileAppend to stdout/stderr
Replies: 0
Views: 24

FileAppend to stdout/stderr

- I have some concerns re. the following lines: ;FileAppend, % vOutput, *, UTF-8 FileAppend, % vOutput, **, UTF-8 ;FileAppend, % vOutput, * *, UTF-8 ;doesn't work ;FileAppend, % vOutput, * **, UTF-8 ;doesn't work ;FileAppend, % vOutput, %vPath%, UTF-8 ;FileAppend, % vOutput, * %vPath%, UTF-8 - There...
by jeeswg
Yesterday, 13:39
Forum: Ask For Help
Topic: Better understanding of pseudo-arrays Topic is solved
Replies: 5
Views: 91

Re: Better understanding of pseudo-arrays Topic is solved

Keeping it simple: q:: ;StrSplit v. StringSplit vText := "a,b,c" oArray := StrSplit(vText, ",") MsgBox, % oArray.Length() " " oArray.1 " " oArray.2 " " oArray.3 StringSplit, vPseudoArray, vText, % "," MsgBox, % vPseudoArray0 " " v...
by jeeswg
Yesterday, 13:32
Forum: Ask For Help
Topic: Wild cards in filepatterns
Replies: 2
Views: 36

Re: Wild cards in filepatterns

- AFAIK and based on tests I just did, wildcards can only be used on the last part in a File loop.
- I couldn't find an explicit mention of this here:
Loop (files & folders)
https://autohotkey.com/docs/commands/LoopFile.htm
by jeeswg
Yesterday, 12:45
Forum: Wish List
Topic: StrJoin bulitin function
Replies: 15
Views: 4421

Re: StrJoin bulitin function

- @joefiesta: Ideally you would also use VarSetCapacity, and a not-currently-available ObjCount function, unless it's a very small array, to improve performance. Complications to do with VarSetCapacity is one reason I think that both StrRept and StrJoin functions should be implemented. (Other reason...
by jeeswg
Yesterday, 12:22
Forum: Ask For Help
Topic: DLLCall: Call a topic on existing help window (CHM) with hhctrl.ocx\HtmlHelpA
Replies: 9
Views: 114

Re: DLLCall: Call a topic on existing help window (CHM) with hhctrl.ocx\HtmlHelpA

- Yes, without the LoadLibrary line, it appears to crash AutoHotkey. - There's all sorts of good code, that shouldn't appear in the help. When I complete my beginner tutorial, I might put some links there, to make certain things easier to find. I might put a link here also: jeeswg's documentation ex...
by jeeswg
19 Feb 2018, 18:37
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 343
Views: 56299

Re: Suggestions on documentation improvements

- The zoom/text size techniques work on Internet Explorer (online) *and* HTML Help (offline). - @joefiesta: My hunch is that it might be good if you collected your documentation ideas together, a bit like this: jeeswg's documentation extension tutorial - AutoHotkey Community https://autohotkey.com/b...
by jeeswg
19 Feb 2018, 17:19
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 343
Views: 56299

Re: Suggestions on documentation improvements

- It appears that the online documentation is preventing Alt+Left/Alt+Right from working on Internet Explorer. - I often do 'Google search, click, find, copy, back (alt+left)' in quick succession. - Workaround: ;WBGet function - AutoHotkey Community ;https://autohotkey.com/boards/viewtopic.php?f=6&a...
by jeeswg
19 Feb 2018, 16:38
Forum: Ask For Help
Topic: DLLCall: Call a topic on existing help window (CHM) with hhctrl.ocx\HtmlHelpA
Replies: 9
Views: 114

Re: DLLCall: Call a topic on existing help window (CHM) with hhctrl.ocx\HtmlHelpA

- Try this. q:: ;AutoHotkey Help (HTML Help) - navigate to page vPathChm := "C:\Program Files\AutoHotkey\AutoHotkey.chm" vPath := vPathChm "::/docs/commands/Random.htm" if !hModuleHH hModuleHH := DllCall("kernel32\LoadLibrary", Str,"hhctrl.ocx", Ptr) ;HtmlHelp...
by jeeswg
19 Feb 2018, 07:18
Forum: Ask For Help
Topic: Break text into new lines
Replies: 4
Views: 47

Re: Break text into new lines

Some ideas: q:: ;split text by '--', using RegExReplace vText := "--AAA-BBB--CCC-DDD--EEE-FFF" ;[^a] means not a, in RegEx, text between square brackets is a character class ;[^\-] means not -, - is escaped with \ because - has a special meaning within a character class e.g. [a-z] means al...

Go to advanced search