Execute internal action with parameter 123

Post your questions and problem reports here

Moderator: kfury77

Forum rules
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;

Execute internal action with parameter 123

Postby javiecholson188 » Thu Mar 15, 2018 11:01 am

I am writing plugin.
I would like to know if it is possible to execute internal action with a parameter.
javiecholson188
 
Posts: 1
Joined: Thu Mar 15, 2018 9:58 am

Re: Execute internal action with parameter 123

Postby Aivars » Thu Mar 15, 2018 12:02 pm

The actions that are assigned to menu items, toolbars etc are parameterless by nature.

What are you trying to write? Maybe I can help.
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2453
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Execute internal action with parameter 123

Postby pmk65 » Thu Mar 15, 2018 2:34 pm

I was facing the same "problem" a while ago, and found a "workaround" using WScript.Shell "Sendkeys" functionality.

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.
User avatar
pmk65
 
Posts: 678
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark


Return to HTMLPad / Rapid CSS / Rapid PHP / WeBuilder Support

Who is online

Users browsing this forum: No registered users and 7 guests

cron