Search found 1129 matches

by TAC109
27 Aug 2023, 18:03
Forum: Ask for Help (v2)
Topic: (default) alphabetical Sort oversight ?
Replies: 17
Views: 1039

Re: (default) alphabetical Sort oversight ?

neogna2 I can’t see that it matters which order the items are presented to the callback function. In any case the offset parameter can be used to determine this. I prefer not to use a callback function as it has a noticeable detrimental effect on the efficiency of the sort except for a trivially sh...
by TAC109
26 Aug 2023, 23:58
Forum: Ask for Help (v2)
Topic: Run() doesn't run my SCRCPY .vbs
Replies: 6
Views: 375

Re: Run() doesn't run my SCRCPY .vbs

Try adding extra single quotes around the parameter.
Run('"D:\phone stuff\scrcpy\example.vbs"')

Edit: As Boiler said!

Cheers
by TAC109
25 Aug 2023, 23:43
Forum: Ask for Help (v2)
Topic: To BOM or not to BOM?
Replies: 12
Views: 881

Re: To BOM or not to BOM?

This is because cmd.exe (the batch file interpreter) doesn’t understand UTF8. (It partially understands an early version of UTF16.) However it can’t be updated by Microsoft without potentially breaking the millions of batch scripts out there.

Cheers
by TAC109
25 Aug 2023, 19:18
Forum: Ask for Help (v2)
Topic: To BOM or not to BOM?
Replies: 12
Views: 881

Re: To BOM or not to BOM?

I'm happy to leave it that way as a 'safety net' for any future v1 scripts I may create, but as it's superfluous to include BOM for v2 scripts, shouldn't there be a settings option in Dash for the preference to include it or not - can it be assumed that a v2 BOM won't incur a performance hit? The p...
by TAC109
24 Aug 2023, 21:39
Forum: Ask for Help (v2)
Topic: about V1->V2 and a script with strange behavior
Replies: 21
Views: 1104

Re: about V1->V2 and a script with strange behavior

Looking at the error message, the word ‘AutoHotkey' may have been left out of the '#Requires' directive in the failing script.

Cheers
by TAC109
20 Aug 2023, 23:59
Forum: Scripts and Functions (v1)
Topic: Upcoming Ahk2Exe Changes (2024)
Replies: 630
Views: 191879

Re: Upcoming Ahk2Exe Changes (2023)

Update - 1.1.37.01b, 21 August 2023
  • Fix: compile of new .exe failed in 1.1.37.01a.
See this post for download details.
by TAC109
19 Aug 2023, 20:23
Forum: Scripts and Functions (v1)
Topic: Upcoming Ahk2Exe Changes (2024)
Replies: 630
Views: 191879

Re: Upcoming Ahk2Exe Changes (2023)

Update - 1.1.37.01a, 20 August 2023
  • Avoid copying compiled .exe permissions from temp.
  • Fix 'Save script as' when Base compiler directive selected.
  • Local help now shows v2 if Base compiler directive selected.
See this post for download details.
by TAC109
15 Aug 2023, 04:31
Forum: Scripts and Functions (v1)
Topic: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
Replies: 77
Views: 23050

Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation

red12sin Can you check that you have copied and pasted the compiler directives correctly into your script. If you past them here from your script I can double-check them as well. Edit: It looks like the two ;@Ahk2Exe-Obey compiler directives further up weren’t executed properly. Could you check the...
by TAC109
13 Aug 2023, 22:20
Forum: Bug Reports
Topic: UX Launcher ignores multi-line comments around #Requires
Replies: 3
Views: 649

Re: UX Launcher ignores multi-line comments around #Requires

lexikos wrote:
13 Aug 2023, 21:46
The launcher supports versions that predate #Requires.
I’m sure it does, although I can’t see what that has to do with behaving differently depending on whether ; or /*..*/ characters are used to comment out directives.

Cheers
by TAC109
13 Aug 2023, 21:42
Forum: Bug Reports
Topic: UX Launcher ignores multi-line comments around #Requires
Replies: 3
Views: 649

UX Launcher ignores multi-line comments around #Requires

UX Launcher ignores multi-line comment characters around #Requires when both v1 + v2 are installed. /* ;#Requires AutoHotkey v2.0 */ v1 := "v2" MsgBox v1 When this code is run, the launcher asks for the version of AutoHotkey to run, as expected. If the ; is removed from the start of line 2, the laun...
by TAC109
12 Aug 2023, 18:29
Forum: Ask for Help (v2)
Topic: How to properly create a library that loads a dll file to account for compiling.
Replies: 9
Views: 1077

Re: How to properly create a library that loads a dll file to account for compiling.

I hope I’m not stating the obvious, but you could adjust the path by checking A_IsCompiled and substituting A_ScriptFullPath in place of A_LineFile. Or perhaps I’m not understanding the question properly…

Cheers
by TAC109
03 Aug 2023, 18:23
Forum: Ask for Help (v2)
Topic: Embedding files in a compiled script and using them without extracting them
Replies: 17
Views: 1608

Re: Embedding files in a compiled script and using them without extracting them

Using FileInstall is certainly simpler and more straightforward, especially if the embedded files are to be accessed by a runwait executable.

Cheers
by TAC109
21 Jul 2023, 00:29
Forum: Ask for Help (v2)
Topic: Error when trying to compile a v2 script
Replies: 4
Views: 580

Re: Error when trying to compile a v2 script

I would suggest that you should uninstall your existing V2 and v1 AutoHotkey, then reinstall v1 followed by v2. This will ensure that the installation is correct.

Edit: Install into the offered directory.
Cheers
by TAC109
20 Jul 2023, 22:44
Forum: Ask for Help (v2)
Topic: Error when trying to compile a v2 script
Replies: 4
Views: 580

Re: Error when trying to compile a v2 script

It would help if you could post a screen shot of Ahk2Exe with the failing message.

Edit: In addition you should select a v2 base file (which should be present in the dropdown). Anyway, the screenshots should help me diagnose the problem.

Cheers
by TAC109
18 Jul 2023, 23:21
Forum: Ask for Help (v2)
Topic: RUN WAIT A_comspec stops execution
Replies: 3
Views: 227

Re: RUN WAIT A_comspec stops execution

When DOS commands are separated with '&&' it means 'only do the second command if the first command is successful'. To do the second command regardless, just use a single '&' to separate them. To complete the picture, if commands are separated by '||' this means 'only do the second command if the fi...
by TAC109
18 Jul 2023, 19:14
Forum: Ask for Help (v2)
Topic: RUN WAIT A_comspec stops execution
Replies: 3
Views: 227

Re: RUN WAIT A_comspec stops execution

If there are files/directories in the 'IndexLinked' directory, use ‘rmdir /s ' to delete these files/directories as well as the top level directory itself.

Cheers
by TAC109
15 Jul 2023, 18:21
Forum: Bug Reports
Topic: Ahk2Exe Start Menu Shortcut Missing, v1 + v2 Topic is solved
Replies: 4
Views: 730

Ahk2Exe Start Menu Shortcut Missing, v1 + v2 Topic is solved

In the situation when AutoHotkey v1 is installed (including the compiler), then v2 is installed, the Start menu item for Ahk2Exe is removed and not created again even though Ahk2Exe is still present, having been installed with v1.
by TAC109
05 Jul 2023, 19:50
Forum: Scripts and Functions (v1)
Topic: Upcoming Ahk2Exe Changes (2024)
Replies: 630
Views: 191879

Re: Upcoming Ahk2Exe Changes (2023)

Update - 1.1.37.00a, 05 July 2023
  • Ahk2Exe: Add sub-version check for base file *.exe allowed. (Compile v2.1 scripts correctly.)
See this post for download details.

Edit: Fixed link In first post.
by TAC109
04 Jul 2023, 20:13
Forum: Scripts and Functions (v1)
Topic: Upcoming Ahk2Exe Changes (2024)
Replies: 630
Views: 191879

Re: Upcoming Ahk2Exe Changes (2023)

Update - 1.1.37.00a, 05 July 2023
  • Ahk2Exe: Add sub-version check for base file *.exe allowed. (Compile v2.1 scripts correctly.)
See this post for download details.

Go to advanced search