Search found 6899 matches
- 03 Dec 2019, 15:18
- Forum: Ask for Help (v1)
- Topic: How to get the ShortcutKey of a shortcut
- Replies: 16
- Views: 3652
Re: How to get the ShortcutKey of a shortcut
In the post, I'd written the thread title (which starts with 'Get shortcut target') before each of the 2 urls, I've now removed the thread titles, leaving just the urls. Good suggestion. Thanks.
- 03 Dec 2019, 04:35
- Forum: Ask for Help (v1)
- Topic: How to get the ShortcutKey of a shortcut
- Replies: 16
- Views: 3652
Re: How to get the ShortcutKey of a shortcut
OK. Done. I'm thinking we need a built-in HotkeySplit function. So +^!a would split to +^! and a. ;q:: ;test split hotkeys vList := " ;continuation section ( !+^q !^+q +!^q +^!q ^!+q ^+!q !+q !^q +!q +^q ^!q ^+q !q +q ^q q )" vList2 := vList vList2 .= "`n" StrReplace(vList, "q", "Left") vList2 .= "`...
- 03 Dec 2019, 04:26
- Forum: Ask for Help (v1)
- Topic: Get shortcut target without evaluating environment variables
- Replies: 9
- Views: 5453
Re: Get shortcut target without evaluating environment variables
I updated the 2 functions, here are links to the right posts: JEE_FileGetShortcut: https://autohotkey.com/boards/viewtopic.php?f=5&t=66420&p=285401#p285401 JEE_FileCreateShortcut: https://autohotkey.com/boards/viewtopic.php?f=5&t=66420&p=287004#p287004 I fixed 3 RegEx lines, from .? to .{0,2}
- 03 Dec 2019, 03:27
- Forum: Ask for Help (v1)
- Topic: How to get the ShortcutKey of a shortcut
- Replies: 16
- Views: 3652
Re: How to get the ShortcutKey of a shortcut
Try vShortcutKey:="+^!q".
There's a slight issue with the RegEx, I'll post again when I've replaced it with something slightly more intuitive.
There's a slight issue with the RegEx, I'll post again when I've replaced it with something slightly more intuitive.
- 03 Dec 2019, 00:24
- Forum: Ask for Help (v1)
- Topic: How to get the ShortcutKey of a shortcut
- Replies: 16
- Views: 3652
Re: How to get the ShortcutKey of a shortcut
The most up-to-date version of each function, would be the lowest-down appearance of the function definition on that page. Cheers.
- 02 Dec 2019, 23:45
- Forum: C/C++
- Topic: C++: AHK source code: where is it located?
- Replies: 3
- Views: 10825
Re: C++: AHK source code: where is it located?
Re. where it starts: the 'main' function is called _tWinMain, which corresponds to wWinMain (Unicode) or WinMain (ANSI). See tchar.h.
Link:
Can't Understand Source Code - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=65399
Link:
Can't Understand Source Code - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=65399
- 02 Dec 2019, 21:52
- Forum: General Discussion
- Topic: Regex assistance
- Replies: 4
- Views: 2967
Re: Regex assistance
Hmm, there's a problem because there's a literal parenthesis inside a string. At that point I might consider properly parsing the string, i.e. identifying parentheses, commas, quotes (the starts/ends of strings) etc. Which I do here: DllCall converter/cleaner (e.g. x32 to x64/x32 two-way compatible)...
- 02 Dec 2019, 21:34
- Forum: Wish List
- Topic: early exit from #Warn loadtime error messages
- Replies: 2
- Views: 3816
early exit from #Warn loadtime error messages
If you use #Warn, and have local variables (not defined as local) with the same names as global variables, in a script, you can get a long stream of loadtime error messages. This is a recurring problem when adding #Warn to old scripts, or using/including scripts by other people. #Warn a := b := c :=...
- 02 Dec 2019, 20:59
- Forum: Ask for Help (v1)
- Topic: How to get the ShortcutKey of a shortcut
- Replies: 16
- Views: 3652
Re: How to get the ShortcutKey of a shortcut
That was the main reason I wrote the function, to handle shortcut keys generally. Although the functions may not handle HOTKEYF_EXT (NumPad) correctly. So you might want to tweak them. That said, if you just wanted to store shortcut information, then restore it, you could create modified versions of...
- 02 Dec 2019, 20:42
- Forum: Bug Reports
- Topic: If statement changes contents of var
- Replies: 14
- Views: 8644
Re: If statement changes contents of var
I'd appreciate if anyone could help expand the info here: string/numeric caching in AHK v1 - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=5&t=69454 Here are two links that are partially related to this thread: if statement influences floating point number - AutoHotkey Community...
- 02 Dec 2019, 20:38
- Forum: Ask for Help (v1)
- Topic: How to get the ShortcutKey of a shortcut
- Replies: 16
- Views: 3652
Re: How to get the ShortcutKey of a shortcut
My link includes an alternative version of FileCreateShortcut.
- 02 Dec 2019, 20:16
- Forum: Ask for Help (v1)
- Topic: How to get the ShortcutKey of a shortcut
- Replies: 16
- Views: 3652
Re: How to get the ShortcutKey of a shortcut
For reference, I wrote something similar here:
Get shortcut target without evaluating environment variables - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=66420
Get shortcut target without evaluating environment variables - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=66420
- 02 Dec 2019, 20:10
- Forum: Bug Reports
- Topic: If statement changes contents of var
- Replies: 14
- Views: 8644
Re: If statement changes contents of var
This example suggests that by using "" you can still retrieve the original string: ;q:: ;test if with assignment int1 := "12345678901234567890" MsgBox, % int1 ;12345678901234567890 int1 := "12345678901234567890" if int1 (0) ;NoOp int2 := int1 int3 := "" int1 MsgBox, % int1 "`r`n" int2 "`r`n" int3 ;r...
- 01 Dec 2019, 23:04
- Forum: Ask for Help (v1)
- Topic: double (de)reference vs double-deref
- Replies: 8
- Views: 2275
Re: double (de)reference vs double-deref
Thanks. I did consider whether 'one or more pieces' counted as a distinct form of dynamic variable reference, or not. (Pseudo-arrays and associative pseudo-arrays would fall within this category.) Scripting Language | AutoHotkey v2 https://lexikos.github.io/v2/docs/Language.htm#dynamic-variables A d...
- 01 Dec 2019, 19:43
- Forum: Ask for Help (v1)
- Topic: double (de)reference vs double-deref
- Replies: 8
- Views: 2275
Re: double (de)reference vs double-deref
I've come up with some more specific questions: Scripting Language | AutoHotkey v2 https://lexikos.github.io/v2/docs/Language.htm The most common form of dynamic variable reference is called a double reference or double-deref. What are the other forms of dynamic variable references? Is a double-dere...
- 01 Dec 2019, 13:04
- Forum: Ask for Help (v1)
- Topic: Can't Understand Source Code
- Replies: 2
- Views: 1578
Re: Can't Understand Source Code
Great info, thanks swagfag.
c++ - "APIENTRY _tWinMain" and "WINAPI WinMain" difference - Stack Overflow
https://stackoverflow.com/questions/4681443/apientry-twinmain-and-winapi-winmain-difference
c++ - "APIENTRY _tWinMain" and "WINAPI WinMain" difference - Stack Overflow
https://stackoverflow.com/questions/4681443/apientry-twinmain-and-winapi-winmain-difference
_tWinMain is just a #define shortcut in tchar.h to the appropriate version of WinMain.
- 01 Dec 2019, 12:32
- Forum: Ask for Help (v1)
- Topic: double (de)reference vs double-deref
- Replies: 8
- Views: 2275
Re: double (de)reference vs double-deref
OK then, please assist the forum, by adapting this code, to explain the following 4 terms, in the clearest language possible:
A 'double-ref', a double-deref, a double reference and a double dereference.
A 'double-ref', a double-deref, a double reference and a double dereference.
Code: Select all
def := "abc"
ghi := "def"
MsgBox, % %ghi% ;abc
- 01 Dec 2019, 12:25
- Forum: AutoHotkey Development
- Topic: AHK v1 to AHK v2 conversion tips/changes summary
- Replies: 16
- Views: 14044
Re: AHK v1 to AHK v2 conversion tips/changes summary
I think this would be a good reason to start removing deprecated features in v1 gradually so that users will have [to] use more similar functions/concepts that v2 will use I've said we could add an option in AHK v1 to #Warn, to: warn against using deprecated practices, when more forwards compatible...
- 01 Dec 2019, 12:01
- Forum: Ask for Help (v2)
- Topic: function objects example
- Replies: 7
- Views: 3706
Re: function objects example
That's a great example. Thanks.
(Just for the record, the example uses 'for traversing sequentially', I didn't post any code.)
(Just for the record, the example uses 'for traversing sequentially', I didn't post any code.)
- 01 Dec 2019, 00:36
- Forum: General Discussion
- Topic: GitHub: contributing to the AutoHotkey documentation
- Replies: 3
- Views: 3073
Re: GitHub: contributing to the AutoHotkey documentation
Re. multiple repos. OK I think I've figured it out. The 2 folders here have '@' signs, so are relative folders: GitHub - Lexikos/lexikos.github.io https://github.com/Lexikos/lexikos.github.io v1 @ 0c552bb v2 @ bfcfd17 And they link to specific snapshots of the v1/v2 docs: (You can see the short-form...