Search found 850 matches

by Drugwash
05 Feb 2024, 21:48
Forum: Other Utilities & Resources
Topic: My experience porting AHK scripts to Linux.
Replies: 42
Views: 47949

Re: My experience porting AHK scripts to Linux.

Unless you set your WINE to run in Windows 9x/ME mode by default you don't have to install the old Basic/1.0 version of AHK. The 1.1 version runs fine and would allow you to run the relatively more recent scripts too - except for those meant specifically for AHK 2.0+. But you can always deploy the 1...
by Drugwash
02 Jan 2024, 05:20
Forum: Scripts and Functions (v1)
Topic: Church Bells Tower - auto bell chimer
Replies: 65
Views: 21948

Re: Church Bells Tower - auto bell chimer

Guess soon you'll make it to the Microsoft team for such persistence. :D

Happy New Year, best wishes Marius! ;)
by Drugwash
22 Aug 2023, 15:38
Forum: Ask for Help (v1)
Topic: SmartGui Creator
Replies: 4
Views: 3322

Re: SmartGui Creator

Hi guys. :wave: For what it's worth I'm in the process of uploading some of my mostly-working scripts to my new GitLab account after deleting the GitHub one due to unacceptable forced 2FA requirement. I have just finished uploading SmartGUI XP Creator Mod minutes ago. There is the last known ANSI-co...
by Drugwash
16 Apr 2023, 00:50
Forum: Scripts and Functions (v1)
Topic: Upcoming Ahk2Exe Changes (2024)
Replies: 626
Views: 179441

Re: Upcoming Ahk2Exe Changes (2023)

TAC109 wrote:
16 Apr 2023, 00:25
Resource numbers must be unique within resource types, but otherwise can overlap.
Ah, that was my mistake - always thought all numbers should be unique across all resource types. What in the MS documentation could've produced such confusion so long ago...
by Drugwash
15 Apr 2023, 14:37
Forum: Scripts and Functions (v1)
Topic: Upcoming Ahk2Exe Changes (2024)
Replies: 626
Views: 179441

Re: Upcoming Ahk2Exe Changes (2023)

Do you know of an easy/automated way to do that? Off the top of my head no, way too rusty with Windows generally, but I seem to remember there was some EnumResource API or something similar. A very quick search returned EnumResourceTypes() and EnumResourceNames() . However they need to be run in co...
by Drugwash
15 Apr 2023, 11:18
Forum: Scripts and Functions (v1)
Topic: Upcoming Ahk2Exe Changes (2024)
Replies: 626
Views: 179441

Re: Upcoming Ahk2Exe Changes (2023)

But I'm wondering if I can include many icon files in the EXE from Ahk2Exe, not just the four from the AddResource directives (160, 206, 207, 208). You can include as many as you want, theoretically as long as no resource number overlaps. For that you'd have to first make a list of all resource num...
by Drugwash
05 Oct 2022, 12:33
Forum: Scripts and Functions (v1)
Topic: [Class] SQLiteDB - Update on 2022-10-04
Replies: 303
Views: 204734

Re: [Class] SQLiteDB - Update on 2022-10-04

I vaguely remember some old problems with INVALID_POINTER (-1) or similar negative numbers returned by APIs that were misinterpreted in 64bit vs 32bit.
by Drugwash
04 Oct 2022, 13:43
Forum: Scripts and Functions (v1)
Topic: [Class] SQLiteDB - Update on 2022-10-04
Replies: 303
Views: 204734

Re: [Class] SQLiteDB - Update on 2022-10-04

Maybe the better way to approach this issue is to research where and in which situations could a signed pointer be safely passed to the library or returned by the library. This should be done separately for 32bit and for 64bit AHK, then the results should be compared. If there are such situations th...
by Drugwash
18 Sep 2022, 03:48
Forum: Scripts and Functions (v1)
Topic: [Class] SQLiteDB - Update on 2022-10-04
Replies: 303
Views: 204734

Re: [Class] SQLiteDB - Update on 2022-09-18

You're welcome. :) BTW, that's not my PR - just happened to notice it as I follow the repository. ;)
by Drugwash
17 Sep 2022, 21:46
Forum: Scripts and Functions (v1)
Topic: [Class] SQLiteDB - Update on 2022-10-04
Replies: 303
Views: 204734

Re: [Class] SQLiteDB - Update on 2021-10-10

At line 401 in Class_SQLiteDB.ahk you have to remove the ByRef in the function call so it would become This._DB._StrToUTF8(Param3, UTF8). After that it'll work.

The issue has been opened on GitHub as a PR but there has been no reaction so far from the developer.
by Drugwash
15 Sep 2022, 15:18
Forum: Other Programming Languages
Topic: Python MessageBox display variable
Replies: 2
Views: 2011

Re: Python MessageBox display variable

If the format in that example still stands you could try

Code: Select all

messagebox.showinfo("Title here", "You opened %s" % myvar)
But that's only a theory. ;)
by Drugwash
08 Sep 2022, 17:31
Forum: Scripts and Functions (v1)
Topic: Church Bells Tower - auto bell chimer
Replies: 65
Views: 21948

Re: Church Bells Tower - auto bell chimer

I ran the AHK script retrieved directly fromGitHub master branch, not the zip. AHK version is the current 1.1.34.04. Wine is set for XP compatibility but that shouldn't affect in any way the simple display of a GUI. Also tried with Wine 7.15 (latest is 7.16 in the devel branch). Situation seemed wor...
by Drugwash
08 Sep 2022, 11:00
Forum: Scripts and Functions (v1)
Topic: Church Bells Tower - auto bell chimer
Replies: 65
Views: 21948

Re: Church Bells Tower - auto bell chimer

Apparently you're using a dark theme in your system. With a light theme many controls in the Settings dialog are unreadable because of black on black. However setting a dark interface in the script shows other problems. At least that's how it looks here in Linux Mint/Wine 5.14: Screenshot from 2022-...
by Drugwash
07 Sep 2022, 23:16
Forum: Scripts and Functions (v1)
Topic: Upcoming Ahk2Exe Changes (2024)
Replies: 626
Views: 179441

Re: Upcoming Ahk2Exe Changes (2022)

Yep, that's the one. I had just updated the AHK package to latest, and yesterday when compiling a script it complained about a helper file that I knew was in the main Lib. Didn't bother to search further, just dragged a copy of that file to script's own Lib folder and it went through smoothly. AHK w...
by Drugwash
07 Sep 2022, 20:01
Forum: Scripts and Functions (v1)
Topic: Upcoming Ahk2Exe Changes (2024)
Replies: 626
Views: 179441

Re: Upcoming Ahk2Exe Changes (2022)

Thanks, good to know it wasn't me or the system. :D
by Drugwash
24 Aug 2022, 10:35
Forum: Scripts and Functions (v1)
Topic: Upcoming Ahk2Exe Changes (2024)
Replies: 626
Views: 179441

Re: Upcoming Ahk2Exe Changes (2022)

For script files (.ahk files). Executables have their own MZ header. Obviously every coder would have to manually add those headers and footers to their own scripts. The idea was to first agree upon a standard. Many years ago after a similar drive disaster I began to build a recovery script in AHK. ...
by Drugwash
24 Aug 2022, 08:36
Forum: Scripts and Functions (v1)
Topic: Upcoming Ahk2Exe Changes (2024)
Replies: 626
Views: 179441

Re: Upcoming Ahk2Exe Changes (2022)

That has a limited scope. A file header (plus optional but recommended footer) would much better fit multipurpose, such as recovery software, text search patterns across the system, and any other usage purposes yet to be identified. Recently I had a partition screwed up by a defrag software which le...
by Drugwash
24 Aug 2022, 00:40
Forum: Scripts and Functions (v1)
Topic: Upcoming Ahk2Exe Changes (2024)
Replies: 626
Views: 179441

Re: Upcoming Ahk2Exe Changes (2022)

An idea came to mind; might be a stupid one or a good one, may have even been discussed before without my knowledge. Here goes nothing. Standardize AHK scripts by providing all of them with a sort of file header that would allow for: - a clear distinction between various AHK target versions (1.0/1.1...

Go to advanced search