Home Download Screenshots Wiki Plugins Translations Developers Donate Forums/Help Contact Us |
StrokeIt
Space keyboard bug fixed in 0.9.7 RC?Posted by Allen
Well, then something is obviously not done correctly by you since it does work with ' ' type spaces. I'm sure of that, I tried. Try removing the application completely (backup your actions first, of course), reinstall it afterwards and restore the actions.
By the way, the personal version (unlike the enhanced edition I'm using under Windows 7) does invert the picture under the line it draws.
the problem seems to be caused by 0.9.7 adding quotes " " before and after the keystrokes in the .cfg files. but my 0.9.6 settings dont have quotes around the keystrokes. so therefore 0.9.7 still cuts off my 0.9.6 settings. can it be fixed so that 0.9.7 updates my 0.9.6 settings correctly?
I have no remnant cfg files from earlier versions so I cannot check if there were any quotes around the string or not. But just to be sure. You say that 0.9.6 looks like this?
_Test [ N rev ] { gesture = N Reversed New Command = keys, keys surrounded[SPACE]by[SPACE]no[SPACE]quotes } and 0.9.7 looks like this? _Test [ N rev ] { gesture = N Reversed New Command = keys, keys "surrounded by[SPACE]quotes" } In this case you can convert your older scripts with a single find-replace (in any regular expressions capable text editor) using the following settings search for : ^(\s*New Command = keys, keys )(.*)$ replace with: \1"\2" This will surround your unquoted strings with quotation marks.
Yes, it would be much easier that way but currently it does not. Maybe Jeff will implement that into final release, this last one is a RC only.
Notepad++ is my choice for doing small fixes of this kind. Occasionally I write a lua script and let it settle things with three strokes: one to copy and run the lua script using the clipboard, one to paste and the last one to save. If your some of your commands already contain quotation marks, you should use the followings instead of that I previously wrote: search for: ^(\s*New Command = keys, keys )(.*)(")(.*)(")(.*)$ replace with: \1"\2\\3\4\\5\6" Please note, that the regexp above are valid for older settings only, it will ruin your 0.9.7 commands, so be careful!!! EDIT: I modified the regexp, this one should not change you 0.9.7 commands: search for: ^(\s*New Command = keys, keys )([^"])(.*)("*)(.*)("*)(.*)([^"])$ replace with: \1"\2\3\\4\5\\6\7\8" EDIT2 :) Well, in some special cases this does not do what I intended. It seems that if you have quotation marks inside a string, you must do that in two steps... 1. ^(\s*New Command = keys, keys )([^"])(.*)([^"])$ \1"\2\3" 2. ^(\s*New Command = keys, keys )(".*)([^\\])"(.*)([^\\])"(.*")$ \1\2\3\"\4\5\"\6 And even this will fail if there are more than a pair of quotation marks in the string. I'll try to improve it but I don't think I'll find a perfect solution... Edited 4 time(s). Last edit at 11/01/2009 04:50PM by gemisigo.
|