fuhsjr00 / bug.n

Tiling Window Manager for Windows
GNU General Public License v3.0
3.36k stars 214 forks source link

Hotkey for running a program whose name includes whitespaces #172

Open johannesgerer opened 6 years ago

johannesgerer commented 6 years ago

The following will swallow the whitespace:

Config_hotkey=#a::Run, "my prog.exe"
joten commented 6 years ago

I am currently not working with Windows and therefor cannot reproduce the problem.

Looking at the code, the whitespace in between the quotation marks should not be swallowed. parameters := SubStr(command, 6) = "my prog.exe" and Run, %parameters% should do the same as Run, "my prog.exe" run from an AutoHotkey script. Did you successfully test the explicit program command in a standalone script? Does using WinY (#y::Bar_toggleCommandGui()) and inserting Run, "my prog.exe" there has a different result?