Search found 6822 matches

by jeeswg
Yesterday, 19:59
Forum: Ask For Help
Topic: ACC.AHK - Get IAccessible for Context menu
Replies: 17
Views: 3477

Re: ACC.AHK - Get IAccessible for Context menu

- @sancarn: I've been doing various tests with Acc. - Most of the time I haven't been able to get anything useful out of the accChild method. - Typically these fail: oAcc.accChild(n) and Acc_Child(oAcc, n) (from Acc.ahk), as do attempts to call the vtable directly via DllCall. - When I test on a chi...
by jeeswg
Yesterday, 18:42
Forum: Bug Reports
Topic: bug?
Replies: 5
Views: 324

Re: bug?

Just FYI, by writing a function like this, you can define a hotstring anywhere in a script, versus being forced to define it in the auto-execute section.

Code: Select all

MyHotstring()
{
	static vDummy := MyHotstring()
	Hotstring(":*::", "abc")
}
by jeeswg
13 Nov 2019, 19:44
Forum: Ask For Help
Topic: BoundFunc Object, .Bind() parameter variadic syntax: Preserve function paramter type
Replies: 3
Views: 129

Re: BoundFunc Object, .Bind() parameter variadic syntax: Preserve function paramter type

Perhaps something like this: aParams := [] sParams := "true, 123, ""Hello""" MsgBox, % sParams ;true, 123, "Hello" for vKey, vValue in StrSplit(sParams, ", ") { if RegExMatch(vValue, "s)^\x22.*\x22$") aParams.Push("" SubStr(vValue, 2, -1)) else if (vValue = "true") aParams.Push(1) else if (vValue = ...
by jeeswg
13 Nov 2019, 19:17
Forum: Ask For Help
Topic: FileSelectFile(Save) on Read-Only Files Topic is solved
Replies: 24
Views: 906

Re: FileSelectFile(Save) on Read-Only Files Topic is solved

I've added these lines to the q:: example: oFilters := ["Text Documents (*.txt)", "*.txt", "All Files", "*.*"] VarSetCapacity(ArrayCOMDLG_FILTERSPEC, oFilters.Length()*A_PtrSize) Loop % oFilters.Length() { VarSetCapacity(vFilter%A_Index%, StrLen(oFilters[A_Index])*2+2) StrPut(oFilters[A_Index], &vFi...
by jeeswg
12 Nov 2019, 17:31
Forum: Ask For Help
Topic: recreating AHK v2's ComCall function
Replies: 4
Views: 338

Re: recreating AHK v2's ComCall function

'OUTPUT' VARIABLES - Ah yes, in my testing, I hadn't come across the problem of 'output' variables yet. (Do you have another name for this?) - A workaround is to use 'Ptr' and avoid special types such as 'Int*'/'Str'. - (Otherwise AHK v1 could be given either: ComCall (officially), or, some form of ...
by jeeswg
12 Nov 2019, 16:41
Forum: C/C++
Topic: #pragma pack and struct offsets/sizes
Replies: 0
Views: 118

#pragma pack and struct offsets/sizes

- In general: - The basic rules are the same for both 64-bit and 32-bit processes. - An n-byte parameter must start at an n-byte offset. - The overall size of the struct must be divisible by the size of the biggest parameter. - However, I came across around 9-11 structs where this is not the case, t...
by jeeswg
12 Nov 2019, 11:10
Forum: Ask For Help
Topic: Remove duplicates from a string Topic is solved
Replies: 31
Views: 1392

Re: Remove duplicates from a string Topic is solved

@john_c: Re. why I prepended 'z' to the key names, see: KEY NAMES THAT CLASH WITH METHOD NAMES jeeswg's objects tutorial - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=7&t=29232 Also, in the tutorial, I've fixed the Sort line: ;before: ;Sort, vText, CS ;add this line to sort th...
by jeeswg
12 Nov 2019, 08:42
Forum: Ask For Help
Topic: dynamic function calls silently fail
Replies: 8
Views: 520

Re: dynamic function calls silently fail

I've tweaked it to list all parameters passed. It's been really useful for catching non-existent functions/methods. Thanks Helgef. OnCallNonFunc(oParams*) { local static vIsReady := 0, vDummy := OnCallNonFunc("") vText := "" for vKey, vValue in oParams vText .= "`r`n" vKey " " vValue if vIsReady thr...
by jeeswg
12 Nov 2019, 08:30
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 638
Views: 148322

Re: Suggestions on documentation improvements

since the command's behaviour (0 implies 0.5) is so senseless, the human brain will try to fix it Great description. Attempts to ponder what the behaviour is, and why, could last half-an-hour or more. As I told you, that doesn't say that the minimum is 0.5 , that was your erroneous interpretation. ...
by jeeswg
11 Nov 2019, 19:59
Forum: Ask For Help
Topic: recreating AHK v2's Integer function
Replies: 3
Views: 279

Re: recreating AHK v2's Integer function

Thanks lexikos. In short, starting with the principle of: avoid NumGet/NumPut unless needed, had overcomplicated things. Also, it wasn't immediately obvious that the UInt64 option could handle a negative to positive range, 1.5 times larger than Int64. I have this now, based on your 'Integer2' functi...
by jeeswg
11 Nov 2019, 19:22
Forum: Ask For Help
Topic: recreating AHK v2's ComCall function
Replies: 4
Views: 338

Re: recreating AHK v2's ComCall function

This will not work with output variables (there is no really good solution for that). What are you referring to? V1 comobjs have no ptr property if I'm not mistaken, I guess you could use comobjvalue instead. Yes, I meant to relook at this. So ... Ptr := IsObject(ComObject) ? ComObject.Ptr : ComObj...
by jeeswg
11 Nov 2019, 14:46
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 638
Views: 148322

Re: Suggestions on documentation improvements

- @swagfag: Nice use of 'clamped'. - script2.cpp says this, I half-agree, however, they didn't consider WaitForAnyData, i.e. if the clipboard is *completely* empty: // Waiting 500ms in place of a "0" seems more useful than a true zero, which // doesn't need to be supported because it's the same thin...
by jeeswg
11 Nov 2019, 09:53
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 638
Views: 148322

Re: Suggestions on documentation improvements

- @swagfag: 'misinterpretations by multiple users (and uncertainty), caused by the docs (in a way that could be easily anticipated)'. - Your conception that people might assume 0.1 as the minimum, helps to confirm my point, and I did take that into account. Anything lower than 0.1 is pretty much neg...
by jeeswg
11 Nov 2019, 09:37
Forum: Ask For Help
Topic: FileSelectFile(Save) on Read-Only Files Topic is solved
Replies: 24
Views: 906

Re: FileSelectFile(Save) on Read-Only Files Topic is solved

- The old-style Common File Dialog and new-style Common Item Dialog have numerous options. However, I could not see any options where the Save As dialog would allow you to choose a read-only file, and no way to disable the read-only file warning. (Apologies if I've overlooked an option.) - However, ...
by jeeswg
11 Nov 2019, 09:30
Forum: Ask For Help
Topic: Remove duplicates from a string Topic is solved
Replies: 31
Views: 1392

Re: Remove duplicates from a string Topic is solved

I have a code box on the thread that I linked to, and it contains the upper-case titles that I listed.

They come under GENERAL EXAMPLES.
by jeeswg
11 Nov 2019, 08:44
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 638
Views: 148322

Re: Suggestions on documentation improvements

- As a general rule, anything unintuitive should be acknowledged as such in some way. - If people suspect that the way something is written has led or will lead to the wrong interpretation, amendments should be considered. - I suggested a one-line addition, by using 0.1 as an example, this demonstra...
by jeeswg
11 Nov 2019, 08:03
Forum: Ask For Help
Topic: Remove duplicates from a string Topic is solved
Replies: 31
Views: 1392

Re: Remove duplicates from a string Topic is solved

Helgef's script uses InStr, which can be really slow on large strings.
In the link that I posted above (3rd post), I have examples using a case-sensitive Scripting.Dictionary object and a case-insensitive AHK basic object.
by jeeswg
11 Nov 2019, 07:08
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 638
Views: 148322

Re: Suggestions on documentation improvements

- @Helgef: I'd really like it if you could try and understand other points of view about the documentation. - E.g. standards such as: 'abundantly clear' / 'not misleading' / 'unlikely to be misinterpreted'. - I felt exactly the same way as john_c, when I first came across this. It's *very* misleadin...
by jeeswg
10 Nov 2019, 20:38
Forum: Ask For Help
Topic: FINAL change autohotkey tray icons
Replies: 1
Views: 96

Re: FINAL change autohotkey tray icons

Hello maxkill. This may be related. Cheers.

change AutoHotkey's 4 systray icons - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=46043
by jeeswg
10 Nov 2019, 18:49
Forum: AutoHotkey v2 Development
Topic: slightly-improved dialogs
Replies: 10
Views: 2527

Re: slightly-improved dialogs

Hello rommmcek, I see that lexikos gave you a good explanation here: Movable ToolTip - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=6&t=42257 I was already preparing some comments, so I'll post them here: ;imagine 32 on/off switches (bits) each representing an extended window s...

Go to advanced search