Search found 130 matches

by Relayer
21 Feb 2020, 10:09
Forum: Scripts and Functions
Topic: Optical character recognition (OCR) with UWP API
Replies: 41
Views: 6329

Re: Optical character recognition (OCR) with UWP API

Of course results will vary depending on the input image but I did a side-by-side comparison on a scanned legal document with Tesseract that uses an image preprocessed with Letptonica. I fed the raw image and the preprocessed version to this script. Both Tesseract and this script make mistakes in di...
by Relayer
11 Feb 2020, 10:54
Forum: Scripts and Functions
Topic: [Library] Lite sqlite3 wrapper library
Replies: 2
Views: 638

Re: [Library] Lite sqlite3 wrapper library

Hi, It appears the caller can pass a value to sqlite3_exec in the 4th parameter position that will then be returned as the 1st parameter of the callback. I think we can use this to eliminate the need for a global. Relayer class SQLiteObj { __New(Path_SQLDLL, Path_DB) { if FileExist(Path_SQLDLL)="" {...
by Relayer
15 Jan 2020, 11:13
Forum: Scripts and Functions
Topic: Multiline .INI strings
Replies: 6
Views: 771

Re: Multiline .INI strings

I simply replace carriage returns with "<CR>" and the equal sign with "<EQ>" going in and coming out of the ini file.
by Relayer
25 Oct 2019, 07:29
Forum: Ask For Help
Topic: __Set, __Get... don't know if this is intended?
Replies: 3
Views: 379

Re: __Set, __Get... don't know if this is intended?

Thanks Helgef, that mostly clears things up. So, can I assume that this is an appropriate way to use the meta functions? In other words, will using them this way be safe long term (in V1... not talking about V2)? Although I kind of tripped on this behavior by accident, it works nicely for what I wan...
by Relayer
24 Oct 2019, 13:52
Forum: Ask For Help
Topic: __Set, __Get... don't know if this is intended?
Replies: 3
Views: 379

__Set, __Get... don't know if this is intended?

Interesting observation here. I typically put tests in the front end of __Set and __Get to manage what I want them to process or not, otherwise I use the ObjRawSet and ObjRawGet to avoid invoking __Set and __Get. Well, I tripped upon another method of controlling when set and get get called but I'm ...
by Relayer
05 Sep 2019, 15:24
Forum: Scripts and Functions
Topic: [TOOL] AHK Dynamic Obfuscator L - Protect your code by Obfuscation
Replies: 46
Views: 19847

Re: [TOOL] AHK Dynamic Obfuscator L - Protect your code by Obfuscation

Hi, I've been interested in this for a while and finally played with it a little. Has anyone else seen a problem where dynamic variable insertion into regular variables or built-in functions produces an error at run time: "empty variable reference"? Looking at the RMESS file I can see what the subst...
by Relayer
23 Aug 2019, 12:56
Forum: Scripts and Functions
Topic: [Class] string-similarity.ahk
Replies: 14
Views: 4198

Re: [Library] string-similarity.ahk

Pardon MY ignorance... Can anyone speak to whether there are different algorithms to assess similarity depending on what you are trying to accomplish? I can envision that depending on the context of the problem, you may want to weight the various attributes the calculation tries to embody. For examp...
by Relayer
30 Apr 2019, 08:36
Forum: Announcements
Topic: Test build - InputHook, long paths, switch-case
Replies: 30
Views: 12767

Re: Test build - InputHook, long paths, switch-case

All, I am simply grateful for any effort Lexikos puts into either version. I use v1 but understand the importance of v2 if AHK is to have a future. It requires incredible attention to detail to create code that functions well. There are many things we all *should* do but motivation is a strange thin...
by Relayer
06 Jan 2019, 09:17
Forum: Scripts and Functions
Topic: Excel Enum Constants Search
Replies: 13
Views: 2823

Re: Excel Enum Constants Search

Hi, I had a similar problem with long initialization at startup with Capn Odin's trie class ( https://www.autohotkey.com/boards/viewtopic.php?t=35837 ) loading a whole English dictionary. I broke the dictionary into 26 files alphabetically, created an array of file names, and maintained an array of ...
by Relayer
06 Dec 2018, 15:56
Forum: Wish List
Topic: Nested comment blocks using /* */
Replies: 0
Views: 864

Nested comment blocks using /* */

I have noticed that AHK doesn't handle comment blocks in the same way it handles other opening/closing punctuation like parentheses and brackets. In other words, it seems not to count the occurrence of opening '/*' and consider everything a comment until encountering an equal number of '*/". I often...
by Relayer
19 Nov 2018, 09:56
Forum: Forum Issues
Topic: Forum irregularities
Replies: 10
Views: 2646

Re: Forum irregularities

Thank you, thank you, thank you!!! It's good to get back to the "Simplicity" style!
by Relayer
19 Nov 2018, 08:58
Forum: Forum Issues
Topic: Forum irregularities
Replies: 10
Views: 2646

Re: Forum irregularities

I just noticed that if I go to the forum boards without being logged in, I get the very nice original layout of the forum in my browser. But, once I log in the format changes to something functional but not visually pleasing. Is this expected? I'm using FireFox.

Relayer
by Relayer
05 Nov 2018, 13:18
Forum: Forum Issues
Topic: Forum irregularities
Replies: 10
Views: 2646

Re: Forum irregularities

Thanks for the update; that helps a lot. I admire you guys and all the work you do to keep AutoHotkey open to sharing ideas and scripts. I depend on this site a lot and enjoy using it. Good luck on getting things back to normal.

Relayer
by Relayer
01 Nov 2018, 12:37
Forum: Forum Issues
Topic: Forum irregularities
Replies: 10
Views: 2646

Forum irregularities

Would it be possible to get a concise statement regarding the irregularities of the forum application lately and the prognosis moving forward? I see bits and pieces but really don't know what is going on or what to expect. The interface has been so well-behaved for a very long time it is interesting...
by Relayer
10 Sep 2018, 07:52
Forum: Ask For Help
Topic: Windows update stops issuing PBT_APMSUSPEND
Replies: 0
Views: 403

Windows update stops issuing PBT_APMSUSPEND

Hi, Anyone else notice that the recent Windows 10 update has stopped issuing a PBT_APMSUSPEND message when the machine is going into sleep mode? I use OnMessage(0x218, "WM_POWERBROADCAST") to capture power event messages to maintain an hour meter on the machine. An alternative would be to make a hot...
by Relayer
08 Aug 2018, 12:58
Forum: Scripts and Functions
Topic: [Game] AHK Klondike Solitaire
Replies: 18
Views: 4500

Re: [Game] AHK Klondike Solitaire

Hi,

Another enhancement idea... other solitaire games allow you to double click on a card and the pending logical move for that card is made for you so that you don't have to drag and drop the card yourself. It would be a nice addition!

Relayer
by Relayer
26 Jul 2018, 06:09
Forum: Scripts and Functions
Topic: [Game] AHK Klondike Solitaire
Replies: 18
Views: 4500

Re: [Game] AHK Klondike Solitaire

I like this a lot. Thank you. Here's a challenge: Have the script look ahead enough to provide a hint for the next move. Sometimes a user stares at a game of solitaire but for some reason doesn't see an obvious move. It would be clever to be able to ask the computer if the game is truly over. It wou...
by Relayer
18 Jul 2018, 11:03
Forum: Scripts and Functions
Topic: [Game] AHK Klondike Solitaire
Replies: 18
Views: 4500

Re: [Game] AHK Klondike Solitaire

Great program. I love to see how people do different tasks. Even though this has been done before in other code it is always fun to see how it can be done, and done this well, in AHK. Thanks. I found something I didn't like though. The code unconditionally copies all *.png to the folder intended to ...
by Relayer
04 Apr 2018, 08:45
Forum: Scripts and Functions
Topic: Switch(case)
Replies: 8
Views: 3092

Re: Switch(case)

This uses labels but I like the simplicity and the form as it mimics a nominal switch statement rather well.

Code: Select all

foo := "yada yada"
Loop 1 ;switch
{
	Goto % IsLabel("Case(" . foo . ")") ? "Case(" . foo . ")" : "Case_Default"
	Case(yada yada):
	{
	}
	Break
	Case_Default:
	{
	}
	Break
}
Relayer
by Relayer
03 Apr 2018, 09:37
Forum: Ask For Help
Topic: Anyone having issues retrieving Excel com obj?
Replies: 20
Views: 4322

Re: Anyone having issues retrieving Excel com obj?

I have always been bewildered by Microsoft's approach to security. I just cannot develop a mental model that works. I think most people struggle with it and just try things until it seems to work. I have summed up my thoughts in the following quotable: "Microsoft's approach to the computer interface...

Go to advanced search