Search found 8 matches
Search found 8 matches • Page 1 of 1
- Tue May 29, 2018 11:51 pm
- Forum: General Discussion
- Topic: Version 1.5 - Template Examples
- Replies: 1
- Views: 18619
Well, I just worked out some improvements to the above. This version does not require you to supply a Max from a clipboard entry, instead it completely ignores what clipboard entry you invoke it upon and uses an InputBox to ask you what maximum value you want to use. My code defaults to 1e9 (that's ...
- Tue May 29, 2018 11:09 pm
- Forum: Actions
- Topic: Handy random number generator (not cryptographically strong, just trivial)
- Replies: 0
- Views: 297
Sometimes my roommate and I are coding up something in Secondlife, and we need a large random number to hardcode a channel not likely to be used by anybody else. It would be handy to just have a 3Dclip action to choose such a number for us, so I made one. :) Dim max,min If(IsNumeric(clipboard.value)...
Most places in north america need phone numbers formatted this way Set s_reTrimWS = New RegExp s_reTrimWS.Pattern = "[^0-9]" s_reTrimWS.Global = True Clipboard.Value = s_reTrimWS.Replace( Clipboard.Value, "" ) If(Len(Clipboard.Value) = 7) Then Clipboard.Value = "541" & Clipboard.Value If(Len(Clipboa...
Format any input mac address (collection of 12 hex digits ignoring any non-hex-digits as if they were messy punctuation) in lowercase dotted 4's the way Cisco gear likes it: Set s_reTrimWS = New RegExp s_reTrimWS.Pattern = "[^0-9a-f]" s_reTrimWS.Global = True Clipboard.Value = s_reTrimWS.Replace(...