Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a hotkey setup like this:

Numpad1::
ClipSave := ClipboardAll
Send, ^+{Left}^+{Left}
Send ^x
StringSplit, Commands, Clipboard, {Space}
Send, local{Space}
Send, %Commands1%
Send, {Space}={Space}
Send, %Commands2%
Return

Given the input lua 1, it should produce local lua = 1. But, it produces Local lu = 1. Why and how can i fix it?

share|improve this question

Use %A_Space% rather than {Space}

Numpad1::
ClipSave := ClipboardAll
Send, ^+{Left}^+{Left}
Send ^x
StringSplit, Commands, Clipboard, %A_Space%
Send, local{Space}
Send, %Commands1%
Send, {Space}={Space}
Send, %Commands2%
Return

produces local lua = 1 from lua 1 over here, wheras {Space} gives lu, as you experienced :)

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .