| Author |
Message |
Forum: Support Topic: Remove single line breaks, keep "empty" lines |
| Honest Abe |
|
Posted: May 8th, 2012, 4:17 pm
|
|
Replies: 2 Views: 119
|
This is an exact duplicate of viewtopic.php?f=1&t=81044 which has been thoroughly answered.
From all of us on that topic: you're welcome. |
|
 |
Forum: Support Topic: Replacing single line breaks with spaces with RegExReplace |
| Honest Abe |
|
Posted: May 6th, 2012, 4:07 am
|
|
Replies: 13 Views: 1148
|
| First, you don't have a space in between $1 and $3. Second, you aren't considering: This is a test This "T" is not a new line, i.e. there is not two line breaks in a row. This is actually pretty simple. Use a negative look ahead assertion: text = ( This is a test This is a test This is a t... |
|
 |
Forum: Support Topic: Replacing single line breaks with spaces with RegExReplace |
| Honest Abe |
|
Posted: May 5th, 2012, 7:12 pm
|
|
Replies: 13 Views: 1148
|
| With my original idea I had replaced multiple instances of `r`n`r`n with their own placeholders. I then got confused in testing, and thought that it was unnecessary. So here is the original, that considers something like: This is a test. (i.e. The script leaves it as it is.) f1::ReplaceCRLFwith(... |
|
 |
Forum: Support Topic: Switch Speech Recognition ON/OFF (Windows 7) |
| Honest Abe |
|
Posted: April 6th, 2012, 1:42 am
|
|
Replies: 1 Views: 122
|
| One option, at least for turning it on, is create a folder on your desktop and rename it GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} then open it and search: speech you will see "start speech recognition" drag that onto your desktop (thereby making a shortcut) then right-click on that s... |
|
 |
Forum: Support Topic: 3D Navigation |
| Honest Abe |
|
Posted: April 5th, 2012, 4:05 am
|
|
Replies: 9 Views: 210
|
|
 |
Forum: Support Topic: detecting a keystroke |
| Honest Abe |
|
Posted: April 4th, 2012, 4:37 am
|
|
Replies: 4 Views: 119
|
| Sure! I don't like explaining this unless the person is interested. When % is the first thing in a command's parameter, the parameter becomes an expression. What follows in this case is ternary, which is if/else shorthand. The ? and : together is what is called the ternary operator. Think of % as if... |
|
 |
Forum: Support Topic: detecting a keystroke |
| Honest Abe |
|
Posted: April 4th, 2012, 2:57 am
|
|
Replies: 4 Views: 119
|
| I see you have <> so I think you are looking for: [color=red]![/color]GetKeyState("f11", "P") With that said, I would write it as a toggle to increase the success rate of it stopping. With the while-loop you have to be holding f11 when it starts the next iteration. f9:: S... |
|
 |
Forum: Support Topic: Novice annot get simple script for "cut" (Crtrl+X) |
| Honest Abe |
|
Posted: April 2nd, 2012, 6:16 am
|
|
Replies: 3 Views: 108
|
|
 |
Forum: Support Topic: Regex match returns 1 when the variable doesn't even exist. |
| Honest Abe |
|
Posted: March 28th, 2012, 11:56 pm
|
|
Replies: 9 Views: 259
|
| It's not a RegEx issue, InStr() is yielding the same result: 1. It would be more accurate to say that the issue is not confined to RegEx. I can confirm the RegEx behavior using Python: import re var = "" test = "this is a test" result = re.match(var, test) result.start... |
|
 |
Forum: Support Topic: Regex match returns 1 when the variable doesn't even exist. |
| Honest Abe |
|
Posted: March 28th, 2012, 1:53 pm
|
|
Replies: 9 Views: 259
|
|
 |
Forum: Support Topic: Regex match returns 1 when the variable doesn't even exist. |
| Honest Abe |
|
Posted: March 28th, 2012, 7:28 am
|
|
Replies: 9 Views: 259
|
To be clear, does this behavior exist simply for checking if a string is empty?
e.g.
Code: f4::traytip,, % (var = "") ? ("empty") : ("not empty")
Or is there any other reason you know of?
Thanks for the help. |
|
 |
Forum: Support Topic: Regex match returns 1 when the variable doesn't even exist. |
| Honest Abe |
|
Posted: March 28th, 2012, 5:12 am
|
|
Replies: 9 Views: 259
|
Hmmm. It also seems to find "t" at position 1.
Help me understand that. |
|
 |
Forum: Support Topic: Regex match returns 1 when the variable doesn't even exist. |
| Honest Abe |
|
Posted: March 28th, 2012, 4:34 am
|
|
Replies: 9 Views: 259
|
| I just noticed that if you pass a nonexistent variable to RegExMatch's second parameter it returns 1 ! What do I not understand? string := "this is a test" f1:: result := string ~= z traytip,, % result Return aka f1:: result := RegExMatch(string, z) traytip,, % result Return |
|
 |
Forum: Support Topic: key auto-repeating intersperses with SendInput |
| Honest Abe |
|
Posted: March 28th, 2012, 3:13 am
|
|
Replies: 5 Views: 260
|
| If you are going to submit bug reports, make sure you are using the latest version, which is v1.1.07.03, because the issue might have been resolved. With that said, I can verify that it very rarely opened the start menu, but never triggered the ^Esc hotkey (it didn't open keyhistory). In fact you ca... |
|
 |
Forum: Support Topic: One curious request that seems interesting (at least, to me) |
| Honest Abe |
|
Posted: March 18th, 2012, 7:57 pm
|
|
Replies: 5 Views: 217
|
| $rControl:: Keywait, rControl, T0.5 If (ErrorLevel) { Send, {rControl Down} Keywait, rControl Send, {rControl up} } Else { Keywait, rControl, d, T0.5 If (ErrorLevel) { Sendinput, {control} Traytip,, Control was sent. } Else ... |
|
 |
| Sort by: |