I am writing plugin.
I would like to know if it is possible to execute internal action with a parameter.
Execute internal action with parameter 123
Moderator: kfury77
Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
Please try to follow these guidelines. This will help to receive faster and more accurate response.
- Check the Support section of the corresponding product first. Chances are you will find your answer there;
- Do not create new topics for already reported problems. Add your comments to the existing topics instead;
- Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
- Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
- Include the version number of the software you are using;
- This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
-
- Posts: 1
- Joined: Thu Mar 15, 2018 9:58 am
Re: Execute internal action with parameter 123
The actions that are assigned to menu items, toolbars etc are parameterless by nature.
What are you trying to write? Maybe I can help.
What are you trying to write? Maybe I can help.
Blumentals Software Programmer
Re: Execute internal action with parameter 123
I was facing the same "problem" a while ago, and found a "workaround" using WScript.Shell "Sendkeys" functionality.
Here's my function code snippet:
Here's my function code snippet:
Code: Select all
/**
* Sends one or more keystrokes to the active window (as if typed on the keyboard).
* For more info, see: <https://msdn.microsoft.com/en-us/library/8c6yea83.aspx>
*
* Example: (Activates Find dialog and enter "hello" in searchfield)
* SendKeys("^fhello");
*
* @param string ksSeq Sequence of keystrokes
*
* @return void
*/
function SendKeys(ksSeq) {
var WSO = CreateOleObject("WScript.Shell");
WSO.AppActivate(WeBuilder.Caption);
WSO.SendKeys(ksSeq);
}
There are 10 types of people in the world: Those who understand binary and those who don't.