AutoHotkey_H TLS Callback

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
loter
Posts: 38
Joined: 26 May 2016, 00:35

AutoHotkey_H TLS Callback

08 Jul 2016, 06:44

Hi

I want to remove the AHK_H TLS Callback
I was so changed in order to remove the "TLS".

modify _H AutoHotkey.cpp : http://pastebin.com/miJgZp1q
Original _H AutoHotkey.cpp : https://github.com/HotKeyIt/ahkdll/blob ... Hotkey.cpp

Applying the MPRESS is not running.
HotKeyIt was answered as follows:

/
You have to keep following, you can move it to WinMain:
module = LoadLibrary(_T("kernel32.dll"));
g_VirtualAlloc = (_VirtualAlloc)GetProcAddress((HMODULE)module, "VirtualAlloc");
g_VirtualFree = (_VirtualFree)GetProcAddress((HMODULE)module, "VirtualFree");
module = LoadLibrary(_T("shlwapi.dll"));
g_HashData = (_HashData)GetProcAddress((HMODULE)module, "HashData");
module = LoadLibrary(_T("Crypt32.dll"));
g_CryptStringToBinaryA = (_CryptStringToBinaryA)GetProcAddress((HMODULE)module, "CryptStringToBinaryA");
/

Can you help me? Please.
guest3456
Posts: 3463
Joined: 09 Oct 2013, 10:31

Re: AutoHotkey_H TLS Callback

08 Jul 2016, 12:32

you may need to get HotKeyIt to help you directly

it looks like hes saying you need to remove some code, and save other code, and then re-compile the binary. you could check this thread for some more help compiling:
https://autohotkey.com/boards/viewtopic ... 22&t=13373

what is the TLS callback and why do you want to remove it?

loter
Posts: 38
Joined: 26 May 2016, 00:35

Re: AutoHotkey_H TLS Callback

08 Jul 2016, 14:07

Thank you for answer.
I want to use the executable file compression/packing. For this reason, i should remove the TLS.
Previously, it was possible if only deletes the phrase:

if (!g_TlsDoExecute)
return 0;".

But this way I can not anymore.
please give me your help.
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: AutoHotkey_H TLS Callback

08 Jul 2016, 15:40

Why don't you use UPX instead of MPRESS?
Does it work when you don't use MPRESS or other packers?
loter
Posts: 38
Joined: 26 May 2016, 00:35

Re: AutoHotkey_H TLS Callback

08 Jul 2016, 23:44

"MPRESS or packer will not run.
In addition, if Applying the "TLS callback ' can not run on some computers .
It is difficult to solve ?
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: AutoHotkey_H TLS Callback

09 Jul 2016, 11:17

MPRESS does not work with TLS callback, simply use UPX which is now included in downloads, I have removed mpress.exe.
What is the problem you have running ahk_h on some computers, is there any error message?
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: AutoHotkey_H TLS Callback

09 Jul 2016, 12:59

What ANSI/UNICODE/32/64-bit version and which Windows version?
Do you get an error from AutoHotkey.exe too?
If possible can you please also post code.
loter
Posts: 38
Joined: 26 May 2016, 00:35

Re: AutoHotkey_H TLS Callback

10 Jul 2016, 00:30

unicode 32bit
bin,exe both error output
ahk code
f1::
send,a
loter
Posts: 38
Joined: 26 May 2016, 00:35

Re: AutoHotkey_H TLS Callback

10 Jul 2016, 02:49

windows 7 x64 x86 ultimate
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: AutoHotkey_H TLS Callback

10 Jul 2016, 03:19

I've noticed upx.exe was not included in downloads, I have added it now and tested on W7 64-bit with ahkSC.bin unicode 32-bit.
Can you download the package and try again, make sure you also use latest (included) compiler!
loter
Posts: 38
Joined: 26 May 2016, 00:35

Re: AutoHotkey_H TLS Callback

10 Jul 2016, 05:00

V1, V2 Is the same TLS?
loter
Posts: 38
Joined: 26 May 2016, 00:35

Re: AutoHotkey_H TLS Callback

10 Jul 2016, 11:33

TLS support is there any plan to remove version?
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: AutoHotkey_H TLS Callback

10 Jul 2016, 12:03

No, why? This would reduce compiled script protection.
loter
Posts: 38
Joined: 26 May 2016, 00:35

Re: AutoHotkey_H TLS Callback

10 Jul 2016, 12:57

i understand,
But it can be rude,I want to use the "packing".

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 309 guests