Post reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Name:
Email:
Subject:
Message icon:

Verification:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:
What is the last letter in the word "SlickEdit":
How many LETTERS are in the following? "a1b2c3":
Which number is missing?  "12345689":

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: Scott H
« on: October 28, 2009, 03:39:18 PM »

We'll take a look at that at the same time, thanks for the suggestion.
Posted by: pvonkaenel
« on: October 28, 2009, 03:10:03 PM »

I guess I have one more request to go along with this: since I want to include the batch macro file in source control, I don't have an easy way to include that directory in the VSLICKPATH (it will be different for everyone).  Would it be possible to have the macro file in the "Run from dir:" on the Project Properties page where I'm defining the tool?

Thanks,
Peter
Posted by: Scott H
« on: October 28, 2009, 01:33:55 PM »

I've logged that as a feature request also.
Posted by: pvonkaenel
« on: October 28, 2009, 01:28:42 PM »

Thanks Scott, I'll use that for now.  I would like to see the ability to run a batch macro at some point in the future.

Thanks again,
Peter
Posted by: Scott H
« on: October 28, 2009, 01:04:55 PM »

I tried making it a batch macro and you're right, the build complains that it can't find the function if it's not in a loaded macro file.  There's no work-around for this, but I can log a feature enhancement to add an escape sequence that prompts the user for a value, similar to aliases.  The first solution should still work, but your team will just have to coordinate on loading that macro file manually.
Posted by: pvonkaenel
« on: October 28, 2009, 12:17:40 PM »

It works great as long as it's in a loaded macro module.  To make it easier to share I would like to put it in a batch macro in the same directory as the vpw file (make it part of source control so that no one has to worry about it).  Is there a way to get that to work?

Thanks again,
Peter
Posted by: pvonkaenel
« on: October 27, 2009, 08:30:54 PM »

That sounds perfect, thanks.

Peter
Posted by: Scott H
« on: October 27, 2009, 08:19:07 PM »

You can prompt for values on the command line by using the get_string() function.  You can also call macros during the build process using the %m escape sequence.  You could make a macro function like this:

Code: [Select]
#include "slick.sh"

_str queryForValue()
{
   get_string(result,'Value:')
   return result;
}
and load it (press escape to bring up the command line, then type 'load' and hit enter).

Then do the following:
1. Go to Project Properties > Tools tab.  
2. Select "Build" in the tool list.  
3. On the "command line" text box insert "%mqueryForValue%" where you want your custom value (don't use the quotes though).
4. Click OK and build the project.  You will be prompted for a value on the command line and the value you enter will replace the %m sequence.

Posted by: pvonkaenel
« on: October 27, 2009, 04:00:32 PM »

Hi all,

I've defined a few custom tools in [Project --> Project Properties] on the Tools page.  Is it possible to add a % modifier which will prompt the user for some data like you can do with aliases?  Alternatively, do you have suggestions on how to create a user interactive project tool?

Thanks,
Peter