Using regular expression in Toolbar ...
I am invoking an already opened application with the following command.
set_window ("Shell_TrayWnd", 2);
toolbar_button_press ("ToolbarWindow32_0", "GPTSLauncher[v2.81, 23 July, 2003 17:18:00]: User:[ASRAO], Server:[njgptprd1], "); # Button Number 1;
But I want to replace the parameters of toolbar_button_press command with something generic, like
regular expression. something like
#something like that.
I don't want to use the index as my application will not be always on the same position, so no "by index recognition".
Please suggest me.....
Waiting for a reply.
Re: Using regular expression in Toolbar ...
I am not sure, but you may have to do something like I have done for list objects: loop through each toolbar object by number, get the label/logical name value, use match() with the desired regexp to see if this is the item you want, and if it is break out of the loop and use the current item number in the toolbar_button_press() function (i.e.: the second argument would be in the format: "#"&number).
It looks like you could use the toolbar_get_buttons_count() to get the number of buttons and the toolbar_get_button() function to get the logical name.
[i]...Sound trumpets! Every trumpet in the host! / Sixty thousand, on these words, sound, so high the mountains sound, and the valleys resound.</i] (The Song of Roland)