PDA

View Full Version : Recorder and macros questions


Walter Brokowski
08-03-1998, 11:50 AM
I used the recorder "goodie" to record a set of keystrokes. This macro was to do the following: prompt the user for text to be placed in a title box. I edited the .rec file and put in ":interactive" where the user was to enter the text. This worked pretty well. But when I created a toolbar and put the exact macro steps in the "command" area, and then used the toolbar to run the macro, it gave an error saying the input was wrong at every place where ":interactive" existed. It seemed to run through all the prompts but never opened to "Text" window to get my input. I am determined to solve this problem. If anyone has an alternate way of filling a title box using a macro, I am willing to listen.

Markus Kuehl
08-03-1998, 06:14 PM
The usage of :interactive is not supported in SolidDesigner. Although it might work in some cases, it has several shortcomings. For instance it is not possible to change the view dynamically during an input request via :interactive. If you can live with this kind of shortcomings you can write as "command" behind a toolbar button something like this: (put-buffer "(extrude :distance :interactive)"). Note the usage of put-buffer and the command sequence in parenthesis.

Markus Kuehl
08-03-1998, 06:17 PM
... a better solution to your problem would be to write your own "dialog" using the Integration Kit. Please take a look at the documentation of the function sd-defdialog. This type of coding is fully supported and fully functional.