Re: MyMacros 1.06
Hello! G Now can we also make the case independent so I od not have to make G different search/replace strings for Gerard and gerard? No problem. In next version... ;) G As a bonus I am learning how to write these pesky litle macro´s ;-) -- Andrew Perevodchik Kiev, Ukraine Using The Bat! v2.01 on Windows XP 5.1 Build 2600 Current version is 2.01.3 | Using TBUDL information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: MyMacros 1.06
Hello! G All we need now is a combination of the %StrReplace and the %StrTr G macro, because the %StrReplace only lets you replace one word. Or G is there a way to place the result in a buffer and use it again in G the %StrReplace macro? Do you mean nested calls? %StrReplace(%StrReplace('abc','a','X'),'c','Y') If there are too many: %_MyCoolText='abcdefg'%- %_MyCoolText=%StrReplace(%_MyCoolText,'a','1')%- %_MyCoolText=%StrReplace(%_MyCoolText,'b','2')%- %_MyCoolText=%StrReplace(%_MyCoolText,'c','3')%- %_MyCoolText=%StrReplace(%_MyCoolText,'d','4')%- %_MyCoolText=%StrReplace(%_MyCoolText,'e','5')%- %_MyCoolText=%StrReplace(%_MyCoolText,'f','6')%- %_MyCoolText=%StrReplace(%_MyCoolText,'g','7')%- %_MyCoolText -- Andrew Perevodchik Kiev, Ukraine Using The Bat! v2.01 on Windows XP 5.1 Build 2600 Current version is 2.01.3 | Using TBUDL information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: MyMacros 1.06
ON Thursday, October 23, 2003, 9:22:17 AM, you wrote: AP Hello! AP Do you mean nested calls? AP %StrReplace(%StrReplace('abc','a','X'),'c','Y') AP If there are too many: AP %_MyCoolText='abcdefg'%- AP %_MyCoolText=%StrReplace(%_MyCoolText,'a','1')%- AP %_MyCoolText=%StrReplace(%_MyCoolText,'b','2')%- AP %_MyCoolText=%StrReplace(%_MyCoolText,'c','3')%- AP %_MyCoolText=%StrReplace(%_MyCoolText,'d','4')%- AP %_MyCoolText=%StrReplace(%_MyCoolText,'e','5')%- AP %_MyCoolText=%StrReplace(%_MyCoolText,'f','6')%- AP %_MyCoolText=%StrReplace(%_MyCoolText,'g','7')%- AP %_MyCoolText Andrew, Brilliant!! Now can we also make the case independent so I od not have to make different search/replace strings for Gerard and gerard? As a bonus I am learning how to write these pesky litle macro´s ;-) -- Best regards, Gerard -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= One lesson you better learn if you want to be in politics is that you never go out on a golf curse and beat the President. Lyndon B. Johnson Using The Bat! v2.01.3 on Windows 2000 5.0 Build 2195 Service Pack 4 Current version is 2.01.3 | Using TBUDL information: http://www.silverstones.com/thebat/TBUDLInfo.html
MyMacros 1.06
Hello! MyMacros 1.06 http://en.barin.com.ua/soft/mymacros/ * renamed %DaysLeft on %DaysTo * totally rewritten %StrReplace -- it's quite fast now * added macros %Chr, %Run, %KeybLayout, %RegRead, %RegWrite -- Andrew Perevodchik Kiev, Ukraine Using The Bat! v2.01 on Windows XP 5.1 Build 2600 Current version is 2.01.3 | Using TBUDL information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: MyMacros 1.06
ON Wednesday, October 22, 2003, 1:35:27 PM, you wrote: AP Hello! AP MyMacros 1.06 AP http://en.barin.com.ua/soft/mymacros/ AP * renamed %DaysLeft on %DaysTo AP * totally rewritten %StrReplace -- it's quite fast now AP * added macros %Chr, %Run, %KeybLayout, %RegRead, %RegWrite Hi Andrew, Looks like a nice addition to TB! macro´s. I tried the %StrReplace() macro, but it has a problem. If the occurance is more then once things go pear shaped. I used it this way: %StrReplace(%Text,test,XXX) -- Best regards, Gerard -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= The correlation between thinking well and making successful shots is not 100 percent. But the correlation between thinking badly and unsuccessful shots is much higher. Using The Bat! v2.01.3 on Windows 2000 5.0 Build 2195 Service Pack 4 Current version is 2.01.3 | Using TBUDL information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: MyMacros 1.06
Hello Andrew, MyMacros 1.06 Thanks mate :) -- Best regards, Miguel A. Urech (El Escorial - Spain) Using The Bat! v2.01.3 Winamp OFF: Current version is 2.01.3 | Using TBUDL information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: MyMacros 1.06
Hello! MyMacros 1.06 M Thanks mate :) Eeer... is that autoresponder...? :) -- Andrew Perevodchik Kiev, Ukraine Using The Bat! v2.01 on Windows XP 5.1 Build 2600 Current version is 2.01.3 | Using TBUDL information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: MyMacros 1.06
Hello! G I tried the %StrReplace() macro, but it has a problem. If the occurance G is more then once things go pear shaped. G I used it this way: %StrReplace(%Text,test,XXX) Thanks mate... ;) Try it out now. -- Andrew Perevodchik Kiev, Ukraine Using The Bat! v2.01 on Windows XP 5.1 Build 2600 Current version is 2.01.3 | Using TBUDL information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: MyMacros 1.06
Hello Andrew, Eeer... is that autoresponder...? :) Yes. You know TB's filters are powerful. So, every time I get an announcement about a good and useful piece of software, my filters trigger the auto-response ;-) -- Best regards, Miguel A. Urech (El Escorial - Spain) Using The Bat! v2.01.3 Winamp PLAYING: Chuck Loeb - eBop (SmoothJazz.com - The world's best Smooth Jazz - live from Monterey, Calif.) Current version is 2.01.3 | Using TBUDL information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: MyMacros 1.06
ON Wednesday, October 22, 2003, 5:17:28 PM, you wrote: AP Try it out now. Hi Andrew, Works now. That was quick :-) All we need now is a combination of the %StrReplace and the %StrTr macro, because the %StrReplace only lets you replace one word. Or is there a way to place the result in a buffer and use it again in the %StrReplace macro? -- Best regards, Gerard -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= To score consistently, a golfer must think consistently. A sound, consistent pre-shot routine makes it easier. Using The Bat! v2.01.3 on Windows 2000 5.0 Build 2195 Service Pack 4 Current version is 2.01.3 | Using TBUDL information: http://www.silverstones.com/thebat/TBUDLInfo.html