Discussion
Topics
Last Day
Last Week
Tree View

Search
New Messages
Keyword Search

Help
Getting Started
Formatting
Troubleshooting
Program Credits

Utilities
Edit Profile
Administration
Contact

 
forum - discussion board
- about - downloads - registration - forum - misc - home - © 1996-99 GWD Text Editor

FIND command in Macros

GWD Text Editor Forum: Technical Support: FIND command in Macros
Top of pagePrevious messageNext messageBottom of pageLink to this message  By JohnSeitz on Tuesday, April 4, 2000 - 03:14 am:

I have been trying out about ever known text editor out there. So far you are only second to MultiEdit. However, they cost $129, which I personally think is just to much money. So I wanted to say, great job on a great editor.

However, before I can spend my money, I need to make sure of one feature that I have to have.

I record a macro, and use the FIND command. When I play the macro back, instead of finding the text, it opens up the dialog. I found a way around this by searching for the text first, then recording the macro. Then using the FindNext command (which doesn't require a dialog).

Is there a way within the macro language, that the find dialog will not come up. I noticed that we can edit the macro, but I have the eval version, so I can.

Any ideas?

John Seitz


Top of pagePrevious messageNext messageBottom of pageLink to this message  By Anonymous on Wednesday, April 5, 2000 - 02:48 am:

You can use FindParam, FindParamC, FindParamCW, FindParamR or FindParamRCW macro commands.

FindParam Finds the next occurrence of the text specified with Param1 command.
FindParamC Finds the next occurrence of the text specified with Param1 command with Match Case option turned on.
FindParamCW Finds the next occurrence of the text specified with Param1 command with Match Case and Match Word Only options turned on.
FindParamR Finds the next occurrence of the text specified with Param1 command using regular expression.
FindParamRCW Finds the next occurrence of the text specified with Param1 command using regular expression with Match Case and Match Word only options turned on.

For example if you want to create a macro which will search for next occurrence of the "search text" in your document:

  • Choose the Macro command from the Macro menu.
  • In the Macro dialog box, choose the New button.
  • Specify the name of the new macro and select OK button.
  • In the Edit Macro dialog box enter following two lines:

Param1 "search text"
FindParam

For power search, you can use GWD C Script language Gte_Find() and/or Gte_FindInLine() functions. Recorder keystroke macros can be converted to a GWD C Script with the ScripWizard command.

Vedran Gaco

Add a Message


This is a public posting area. If you do not have an account, enter your full name into the "Username" box and leave the "Password" box empty. Your e-mail address is optional.
Username:  
Password:
E-mail:


- about - downloads - registration - forum - misc - home - © 1996-99 GWD Text Editor