Search found 53 matches

by Jasonosaj
02 May 2024, 14:08
Forum: Scripts and Functions (v2)
Topic: AutoCorrect for v2
Replies: 136
Views: 14383

Re: AutoCorrect for v2

Not sure why but I ended up having problems integrating the revised code. The following seems to work, however. f(replace) { Global lastTrigger := "" Global KeepForLog Global ignorLen := 0 Static HSInputBuffer := InputBuffer() HSInputBuffer.Start() endchar := A_EndChar trigger := A_ThisHotkey lastTr...
by Jasonosaj
30 Apr 2024, 10:35
Forum: Ask for Help (v2)
Topic: Manipulate PDF
Replies: 9
Views: 785

Re: Manipulate PDF

if you have heavy work and not merge you better use Python if you want an easier approach because of its library, in AHK you just need to use an external app or libraries, so you can use RUN ,COM ,DLL command. I use the following to diff PDFs: import subprocess import sys from tkinter import filedi...
by Jasonosaj
25 Apr 2024, 15:34
Forum: Forum Issues
Topic: Slow forum
Replies: 111
Views: 11593

Re: Slow forum

Looks like a problem with the SSL certificate.
by Jasonosaj
12 Apr 2024, 11:12
Forum: Scripts and Functions (v2)
Topic: AutoCorrect for v2
Replies: 136
Views: 14383

Re: AutoCorrect for v2

@kunkel321 - I have been going through the process of converting my _HS() hotstrings to call your f() function. One of the major problems is sorting. Do you have any recommendations in terms of how to order the various option sets to avoid nullification (e.g., beginnings, middles, ends / :*:, :*?:,...
by Jasonosaj
11 Apr 2024, 10:06
Forum: Scripts and Functions (v2)
Topic: AutoCorrect for v2
Replies: 136
Views: 14383

Re: AutoCorrect for v2

FYI - in the making of this little tool https://abbreviation-finder.streamlit.app - I discovered espanso. It's neat. Its cross platform (win, Linux, Mac) and Free and Opensource. Some of the packages look similar to this AutoCorrect tool e.g https://hub.espanso.org/typofixer-en https://hub.espanso....
by Jasonosaj
08 Apr 2024, 12:45
Forum: Off-topic Discussion
Topic: Beginner to VSCode/GitHub/GitDeskop.
Replies: 11
Views: 699

Re: Beginner to VSCode/GitHub/GitDeskop.

Subscribed. Thanks, @kunkel321
by Jasonosaj
29 Mar 2024, 10:21
Forum: Scripts and Functions (v2)
Topic: AutoCorrect for v2
Replies: 136
Views: 14383

Re: AutoCorrect for v2

Every once in a while (actually, a lot more frequently than that) I am reminded that I am merely tinkering around the edves of work done by people that know what the hell they are doing. THIS is one of those moments. Thanks so much, @Descolda. Will report any issues and review to try to understand h...
by Jasonosaj
12 Mar 2024, 10:01
Forum: Tutorials (v2)
Topic: Understanding SendInput and keyboard hooks
Replies: 15
Views: 1559

Re: Understanding SendInput and keyboard hooks

Almost certainly a remedial question - if ScriptA and ScriptB both use keyboard hooks, would any potential conflicts be resolved by consolidating them both in ScriptC via #Include?
by Jasonosaj
11 Mar 2024, 10:50
Forum: Wish List
Topic: Access to case of one or both of A_PriorKey or A_ThisHotkey
Replies: 0
Views: 284

Access to case of one or both of A_PriorKey or A_ThisHotkey

First off, thank you, Lexicos . Honestly, the work that you have put into this language is remarkable and deserving of a lot more attention than it gets. In terms of the request/recommendation - it would be tremendously helpful to have access to the case of the character or string of characters that...
by Jasonosaj
29 Feb 2024, 19:22
Forum: Scripts and Functions (v2)
Topic: AutoCorrect for v2
Replies: 136
Views: 14383

Re: AutoCorrect for v2

@Jasonosaj This is awesome! I still need to study it more, but I definitely like how you are relying more on function-call parameters, and less on global variables. I cringe every time I add another global variable, because there are so many, and I know it's not best practice to over-use them. That...
by Jasonosaj
28 Feb 2024, 18:24
Forum: Scripts and Functions (v2)
Topic: AutoCorrect for v2
Replies: 136
Views: 14383

Re: AutoCorrect for v2

kunkel321 I've been hacking away at the latest version and thought you might like to take a look. [url]https://gist.githubusercontent.com/Jason-K/0ad62a0c203b48845c0967e2e532dc54/raw/bdcfa47a2bc22f14f603adc592ef1457b5ffa7fd/February%2028%2C%202024.md[\url] Primary changes have to do with: 1. I am n...
by Jasonosaj
26 Feb 2024, 11:30
Forum: Scripts and Functions (v2)
Topic: RegExHotstring - dynamic RegEx Hotstrings
Replies: 68
Views: 8863

Re: RegExHotstring - dynamic RegEx Hotstrings

Alright, Ladies and Gents: how's everyone using this? Great function, by the way!
by Jasonosaj
20 Feb 2024, 14:24
Forum: Scripts and Functions (v2)
Topic: AutoCorrect for v2
Replies: 136
Views: 14383

Re: AutoCorrect for v2

Descolada wrote:
20 Feb 2024, 00:01
@Jasonosaj AFAIK there currently is no way to get the case of the hotstring trigger, which is why I created a pull request that implements a way to access the hotstring recognizer, which could then be used to extract the trigger along with its case.
You're awesome. Wish I had just asked!
by Jasonosaj
19 Feb 2024, 19:45
Forum: Scripts and Functions (v2)
Topic: AutoCorrect for v2
Replies: 136
Views: 14383

Re: AutoCorrect for v2

Additional meanderings.... After studying @Descolada's _HS() function more, it occurs to me that _HS() captures the A_ThisHotkey and A_EndChar , even though they are not sent as function parameters. It seems obvious now, but all this time the f() function has been using those as the second and thir...
by Jasonosaj
17 Feb 2024, 17:30
Forum: Scripts and Functions (v2)
Topic: AutoCorrect for v2
Replies: 136
Views: 14383

Re: AutoCorrect for v2

1I created a function that nominally converts the _HS() calls to the f() call format (see end of this post). My next hurdle will be evaluating the extent to which the converted hot strings are duplicative, unnecessary, or in conflict with the rarefied strings in your (much better) script. How did yo...
by Jasonosaj
16 Feb 2024, 22:02
Forum: Scripts and Functions (v2)
Topic: AutoCorrect for v2
Replies: 136
Views: 14383

Re: AutoCorrect for v2

@kunkel321 I've been using a modified version of the _HS() function by @Descolada. My hotstrings are all in ::trigger::_HS("replacement",% backspaceCount) format. Do you have any recommendations for how to reconcile with the new format? Hmm... I could probably make a version of HotString Helper 2.0...
by Jasonosaj
16 Feb 2024, 16:48
Forum: Scripts and Functions (v2)
Topic: AutoCorrect for v2
Replies: 136
Views: 14383

Re: AutoCorrect for v2

@kunkel321 I've been using a modified version of the _HS() function by @Descolada. My hotstrings are all in ::trigger::_HS("replacement",% backspaceCount) format. Do you have any recommendations for how to reconcile with the new format?
by Jasonosaj
24 Jan 2024, 14:55
Forum: Scripts and Functions (v2)
Topic: AHK Startup (Consolidate AHK Scripts' Tray Icons)
Replies: 20
Views: 3749

Re: AHK Startup (Consolidate AHK Scripts' Tray Icons)

@Jasonosaj Even if you can add menus to mainscript How do you make other scripts execute mainscript menu commands Then you may have to modify all the sub scripts. Yeah, I figured I could use Avi's Talk() function for the menu handling communications. To be honest, though, I hadn't fully thought thr...
by Jasonosaj
23 Jan 2024, 14:55
Forum: Scripts and Functions (v2)
Topic: AHK Startup (Consolidate AHK Scripts' Tray Icons)
Replies: 20
Views: 3749

Re: AHK Startup (Consolidate AHK Scripts' Tray Icons)

Has anyone found a way to add custom script menu items dynamically? in other words, if a script has custom traymenu entries, to incorporate those into the startup script submenu?
by Jasonosaj
06 Dec 2023, 16:54
Forum: Scripts and Functions (v2)
Topic: Buffered hotstrings
Replies: 11
Views: 1491

Re: Buffered hotstrings

Nice script! Below is a quick and dirty script to convert standard hotkeys to _HS syntax lines := StrSplit(clipboard, "`n") for index, line in lines { ; If the line is a comment or does not contain a hotstring, keep it as is if (SubStr(line, 1, 1) = ";" or !RegExMatch(line, "::")) { continue } ; Par...

Go to advanced search