Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.