Search found 2228 matches

by HotKeyIt
27 Feb 2021, 09:00
Forum: AutoHotkey_H
Topic: How to capture an external function inside of thread? Topic is solved
Replies: 6
Views: 247

Re: How to capture an external function inside of thread? Topic is solved

All Parameters need to be converted to string imagefull = `%A_ScriptDir`%\image.png bh := getExternalFunc.ahkFunction(""Gdip_CreateBitmapFromFile"",imagefull """") hw := getExternalFunc.ahkFunction(""Gdip_GetImageWidth"",bh """") hh := getExternalFunc.ahkFunction(""Gdip_GetImageHeight"",bh """") bh1...
by HotKeyIt
26 Feb 2021, 22:57
Forum: Wish List
Topic: Optimized access to string characters
Replies: 3
Views: 165

Re: Optimized access to string characters

Like this?

Code: Select all

text:="randomtext"
needle:="ex"
MsgBox % DllCall("msvcrt\wcsncmp","PTR",(&text)+14,"Str",needle,"Int",2)
by HotKeyIt
26 Feb 2021, 22:35
Forum: AutoHotkey_H
Topic: How to capture an external function inside of thread? Topic is solved
Replies: 6
Views: 247

Re: How to capture an external function inside of thread? Topic is solved

Return value will be always string in ahkFunction: #NoEnv #NoTrayIcon Global StopDll, share share:=CriticalObject({DllExternalFuncOn:"",ExternalMSG:""}) StopDll:=CriticalObject({StopDllExternalFuncOn:0}) share.ExternalMSG := "External Message! No Function" ; GET MSG FROM EXTERNAL FUNCTION ExternalFu...
by HotKeyIt
25 Feb 2021, 03:54
Forum: General Discussion
Topic: False Positive Battle
Replies: 12
Views: 276

Re: False Positive Battle

Have you tried compiling AutoHotkey_H using exe instead of bin? 4/70 on 32-bit Unicode MD: https://www.virustotal.com/gui/file/2f6e9e179fed4de8f6b0b6b5c60e7b7f9dca9f2695c57159cfd86d76116b4aba/detection 3/70 on 64-bit MD: https://www.virustotal.com/gui/file/7bb8b3b89e8d01eedc48db01e4c6d9890d0eb2f3c4...
by HotKeyIt
24 Feb 2021, 18:03
Forum: General Discussion
Topic: False Positive Battle
Replies: 12
Views: 276

Re: False Positive Battle

Have you tried compiling AutoHotkey_H using exe instead of bin? 4/70 on 32-bit Unicode MD: https://www.virustotal.com/gui/file/2f6e9e179fed4de8f6b0b6b5c60e7b7f9dca9f2695c57159cfd86d76116b4aba/detection 3/70 on 64-bit MD: https://www.virustotal.com/gui/file/7bb8b3b89e8d01eedc48db01e4c6d9890d0eb2f3c4d...
by HotKeyIt
20 Feb 2021, 06:31
Forum: Ask For Help
Topic: Remapping Microsoft Sculpt Ergonomic Calculator Button
Replies: 1
Views: 63

Re: Remapping Microsoft Sculpt Ergonomic Calculator Button

Did you install the Mouse and Keyboard center? https://go.microsoft.com/fwlink/?linkid=849751
If the key cannot be configured there you can compile ahk script and try replacing calculator.exe on your computer, so instead of calculator you will be able to do whatever you want.
by HotKeyIt
19 Feb 2021, 21:09
Forum: Ich brauche Hilfe
Topic: ahk_class AutoHotkeyGUI umbennen Topic is solved
Replies: 7
Views: 242

Re: ahk_class AutoHotkeyGUI umbennen Topic is solved

Klar, du hast aber die v2 heruntergeladen, es gibt ebenfalls die v1: https://hotkeyit.github.io/v1/
by HotKeyIt
17 Feb 2021, 23:02
Forum: Ich brauche Hilfe
Topic: ahk_class AutoHotkeyGUI umbennen Topic is solved
Replies: 7
Views: 242

Re: ahk_class AutoHotkeyGUI umbennen Topic is solved

In AutoHotkey_H ja: #WindowClassGui und #WindowClassMain, sonst AutoHotkey.exe neu kompilieren.
by HotKeyIt
10 Feb 2021, 18:14
Forum: AutoHotkey_H
Topic: AHK_H v1.1.33.2 Compiled file doesn't handle the large script
Replies: 3
Views: 210

Re: AHK_H v1.1.33.2 Compiled file doesn't handle the large script

Why don't you use AhkThread?
How do you read the dll from resource? The error must be here!
by HotKeyIt
10 Feb 2021, 03:30
Forum: AutoHotkey_H
Topic: How to capture an external function inside of thread? Topic is solved
Replies: 6
Views: 247

Re: How to capture an external function inside of thread? Topic is solved

exe:=AhkExported() -> exe.ahkFunction(""ExternalFunc"") see https://hotkeyit.github.io/v1/docs/commands/ahkFunction.htm #NoEnv #NoTrayIcon Global StopDll, share share:=CriticalObject({DllExternalFuncOn:"",ExternalMSG:""}) StopDll:=CriticalObject({StopDllExternalFuncOn:0}) share.ExternalMSG := "Exte...
by HotKeyIt
02 Feb 2021, 19:23
Forum: AutoHotkey_H
Topic: AHK_H Compile via cli
Replies: 4
Views: 216

Re: AHK_H Compile via cli

/NoDecompile is supported and also /pass (for a different password then AutoHotkey you will need to change password in source and recompile AHK_H!!!)
AHK v2 compiler is the same as v1 with additional folder in Compiler\v2, it is written in v1.
by HotKeyIt
02 Feb 2021, 17:57
Forum: AutoHotkey_H
Topic: AHK_H Compile via cli
Replies: 4
Views: 216

Re: AHK_H Compile via cli

First parameter needs to be Ahk2Exe.ahk script! Ahk2Exe.exe Ahk2Exe.ahk /in "E:\in.ahk /icon "E:\icon.ico" /out "E:\out.exe" /bin "C:\Users\shimao\Desktop\ahkdll-v2-release-master\x64w_MT\AutoHotkey.exe
by HotKeyIt
02 Feb 2021, 09:54
Forum: Ask For Help
Topic: Help for newbie -- I can't even get MsgBox to work, how pathetic is that! Topic is solved
Replies: 1
Views: 81

Re: Help for newbie -- I can't even get MsgBox to work, how pathetic is that! Topic is solved

There is a difference between 'one-line' Hotkey ^!r::MsgBox Hello and 'multi-line' Hotkey!!! ^!r:: MsgBox Hello MsgBox Hello again Return #NoEnv SendMode Input ; Default SendMode i.e., Event mode does not work for #s code below -- at all #SingleInstance, Force ; Development aids, to be removed when ...
by HotKeyIt
02 Feb 2021, 06:04
Forum: Ask For Help
Topic: Clear string after VarSetCapacity? Topic is solved
Replies: 4
Views: 129

Re: Clear string after VarSetCapacity? Topic is solved

It won't. It will: VarSetCapacity(var,10240) var:="" MsgBox % VarSetCapacity(var) I just want to insert a terminating character into position 0 VarSetCapacity(var,10240) StrPut("test",&var),VarSetCapacity(var,-1) MsgBox % (var) . "`nCapacity: " VarSetCapacity(var) StrPut("",&var),VarSetCapacity(var...
by HotKeyIt
01 Feb 2021, 05:42
Forum: AutoHotkey_H
Topic: C# with AHK_H
Replies: 3
Views: 848

Re: C# with AHK_H

Yes but CleanUpAndPack acts on the exe, not dll.
You can use ResourceHacker to add dll to RCDATA in your executable.
by HotKeyIt
01 Feb 2021, 00:07
Forum: AutoHotkey_H
Topic: C# with AHK_H
Replies: 3
Views: 848

Re: C# with AHK_H

To be able to use AhkThread from AutoHotkey.dll you will need to include AutoHotkey.dll in RCData of your executable as F903E44B8A904483A1732BA84EA6191F!
by HotKeyIt
30 Jan 2021, 12:12
Forum: Ask For Help
Topic: How to convert the first letter of a string to lowercase Topic is solved
Replies: 7
Views: 142

Re: How to convert the first letter of a string to lowercase Topic is solved

Anoter variant:

Code: Select all

text:="ABCD"
MsgBox % Format("{:L}", SubStr(text,1,1)) SubStr(text,2)
by HotKeyIt
28 Jan 2021, 16:05
Forum: AutoHotkey v2 Help
Topic: RegEx works in v1 but not v2 Topic is solved
Replies: 8
Views: 1104

Re: RegEx works in v1 but not v2 Topic is solved

Yes, not sure why it works in v1, as I understand it should not.
by HotKeyIt
28 Jan 2021, 12:29
Forum: AutoHotkey v2 Help
Topic: RegEx works in v1 but not v2 Topic is solved
Replies: 8
Views: 1104

Re: RegEx works in v1 but not v2 Topic is solved

Code: Select all

multiLineVar := "
(
    line0
    "line1"
    line2
    "line3"
    line4
    "line5"
    line6
)"
RegEx := 's).*(?<=\n"line1").*?("line3?").*?("line5").*'
result := RegExReplace(multiLineVar, RegEx, "$1 $2")
MsgBox result ;v2

Go to advanced search