1. Compiling problem
I watched this webinar https://www.youtube.com/watch?v=ao5FdsqWTVQ&feature=youtu.be and compiled the source myself.
I have a few questions:
When compiling the source, the output is different from what comes with the release of ahk_h, like the size is half of the released version of ahk_h.
Size of Autohotkey.exe from released version in Github: 2,3mb.
Size of Autohotkey.exe from compiled version: 1,1mb
Both x64w.
The dll is the same size.
I read somewhere that I had to run: CleanUpAndPack.exe but when I do it outputs that the function "ChangeVersionInfo" doesn't exist.
Questions:
- What should I do here?
- When using ahk2exe to "compile" an ahk script, I can select AutoHotkeySC.bin or AutoHotkey.exe Is there any difference?
Let's say I make a function that generates a random amount of characters (let's say it is between 19 and 35 characters) using letters, numbers and symbols.
In ahk_h v1's source I searched "g_default_pwd" and found the following:
1.
Code: Select all
pw[i] = pwd == g_default_pwd ? (TCHAR) _T("A\0\0\0\0u\0\0\0\0t\0\0\0\0o\0\0\0\0H\0\0\0\0o\0\0\0\0t\0\0\0\0k\0\0\0\0e\0\0\0\0y\0\0\0\0")[i*5] : (TCHAR)*pwd[i];
Code: Select all
pw = pwd == g_default_pwd ? randompassword() : (TCHAR)*pwd;
Code: Select all
extern TCHAR g_default_pwd0;
extern TCHAR g_default_pwd1;
extern TCHAR g_default_pwd2;
extern TCHAR g_default_pwd3;
extern TCHAR g_default_pwd4;
extern TCHAR g_default_pwd5;
extern TCHAR g_default_pwd6;
extern TCHAR g_default_pwd7;
extern TCHAR g_default_pwd8;
extern TCHAR g_default_pwd9;
extern TCHAR *g_default_pwd[];
Code: Select all
Loop, Password_Size
extern TCHAR g_default_pwd Loop_Index;
extern TCHAR *g_default_pwd[];
Code: Select all
TCHAR g_default_pwd0 = 0;
TCHAR g_default_pwd1 = 0;
TCHAR g_default_pwd2 = 0;
TCHAR g_default_pwd3 = 0;
TCHAR g_default_pwd4 = 0;
TCHAR g_default_pwd5 = 0;
TCHAR g_default_pwd6 = 0;
TCHAR g_default_pwd7 = 0;
TCHAR g_default_pwd8 = 0;
TCHAR g_default_pwd9 = 0;
TCHAR *g_default_pwd[] = { &g_default_pwd0, &g_default_pwd1, &g_default_pwd2, &g_default_pwd3, &g_default_pwd4, &g_default_pwd5, &g_default_pwd6, &g_default_pwd7, &g_default_pwd8, &g_default_pwd9, 0, 0 };
Code: Select all
loop, Password_Size
{
TCHAR g_default_pwd Loop_Index = 0;
TCHAR *g_default_pwd[Loop_Index] = { &g_default_pwd Loop_Index};
}
TCHAR *g_default_pwd[Loop_Index+1] = {0};
TCHAR *g_default_pwd[Loop_Index+2] = {0};
Code: Select all
for (int i = 0; i < 10; i++)
*g_default_pwd[i] = i + 1;
How it works?
Let's say I compile ahk_h v1's source with this random function, will the password be different everytime I use ahk2exe to "compile" an ahk script? or it is randomly generated everytime I compile ahk_h v1's source code?
Thanks in Advance.