anonymous1184/bitwarden-autotype

[question] what is bw-at.bin in assets?

Closed this issue · 1 comments

looking at the readme and going over the git log couldn't understand what is the asset bw-at.bin?
is it needed? what is it used for?

thanks for the great tool :) trying to understand it a bit.

Thanks for your interest in the source, glad to clear any concern!

AutoHotkey is not a compiled programming language but an interpreted scripting language. When "building" from source what it really does is to attach the script to an interpreter via Ahk2Exe.exe.

That file is the same as Unicode 64-bit.bin found in the AutoHotkey distribution, is only "optimized" (if the small changes I made can be labeled somehow). It been stripped a few assets: a menu, the accelerators and the icons the Auto-Type application won't need (AutoHotkey's built-in).

The Ahk2Exe.exe knows that it needs to use this specific file for the final executable as is defined via a Script Compiler Directive in the code:

;@Ahk2Exe-Base %A_ScriptDir%\assets\bw-at.bin, bw-at.exe, CP65001

Hope is more clear now.