Standard Wait>.5

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
wilfredtr
Newbie
Posts: 16
Joined: Thu Aug 14, 2003 3:59 pm
Contact:

Standard Wait>.5

Post by wilfredtr » Thu Dec 18, 2003 12:01 am

Hi, I use this program to record my keystrokes. Often, as I'm running in an emulator, I go back and make all Wait statement >.5. is there anyway of setting it to that , or do a replace all? ( Replace All wait* didn't work!). -Wilfred

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Thu Dec 18, 2003 5:43 am

:idea: Have you tried using Regular Expressions? TextPad, a useful text editor, has built in RegEx functions and there is a syntax file for Macro Scheduler. I submitted a syntax file for version 7.2.038 that has additional information for color settings in the TextPad configuration.

This example (using POSIX format) will replace all of your "Wait>nnn.nnn" to "Wait>.5"
The next example is using an underscore "_" to represent a space character for visible clarity of the expression:

Search for:
(^Wait>)[.|0-9]*_*$
Replace with:
\1.5

I just did a test that replaced all of the following lines instantly with "Wait>.5":
Wait>.5
Wait>.02
Wait>3
Wait>4.5
Wait>.05
Wait>.009
Wait>12.345
Wait>123.4567

As I have noted before, Macro Scheduler and TextPad are my two favorite utilities. Cannot work without them. You can get free download of shareware from this link to TextPad.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts