Problem with SciTE Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
Elermino
Posts: 114
Joined: 29 Nov 2021, 17:43

Problem with SciTE

Post by Elermino » 28 Jun 2022, 10:47

Hello everyone!
When executing this line of the run command, which starts a script with SciTE, for some reason if the ahk file name has spaces (Counter keys) it splits the name and opens two files (1. Counter, 2. keys)

Code: Select all

run, C:\Program Files\AutoHotkey\SciTE\SciTE.exe C:\Users\Usuario\Desktop\Counter keys.ahk
Thanks in advance

gregster
Posts: 9002
Joined: 30 Sep 2013, 06:48

Re: Problem with SciTE  Topic is solved

Post by gregster » 28 Jun 2022, 10:51

From the Run docs:
https://www.autohotkey.com/docs/commands/Run.htm#Parameters wrote:If the program/document name or a parameter contains spaces, it is safest to enclose it in double quotes (even though it may work without them in some cases). For example, Run, MyProgram.exe "param with spaces".

User avatar
Elermino
Posts: 114
Joined: 29 Nov 2021, 17:43

Re: Problem with SciTE

Post by Elermino » 28 Jun 2022, 11:04

gregster wrote:
28 Jun 2022, 10:51
From the Run docs:
https://www.autohotkey.com/docs/commands/Run.htm#Parameters wrote:If the program/document name or a parameter contains spaces, it is safest to enclose it in double quotes (even though it may work without them in some cases). For example, Run, MyProgram.exe "param with spaces".
Thanks :thumbup:

Post Reply

Return to “Ask for Help (v1)”