
Quote from fkapnist on January 6, 2019, 8:50 pmI have set an entire Action command as a variable "MyAction."
SetVar " [ MyAction ] " " AlertBox [ #34 ] Greeting [ #34 ] [ #34 ] Hello World! [ #34 ] "------------------------------------------
But how do I run the variable from a script? None of the below seem to work.Call " [ MyAction ] "
GoSub " [ MyAction ] "
SendKeys " [ Self ] " " [ MyAction ] "
ExecuteAddOn " [ Self ] " " [ MyAction ] "
------------------------------------------------------------------------------
Is an Execute " [ MyAction ] " script line possible?
The problem is that I won't know what the Action command will be in advance. It is created "on the fly" by the user and set as a variable. If there is no other solution I can save the variable string as a temporary text file and then read it back as a function with the "Call" action. If the desired function is located in a sub folder then the folder's name must also be included.
I have set an entire Action command as a variable "MyAction."
SetVar " [ MyAction ] " " AlertBox [ #34 ] Greeting [ #34 ] [ #34 ] Hello World! [ #34 ] "
------------------------------------------
But how do I run the variable from a script? None of the below seem to work.
Call " [ MyAction ] "
GoSub " [ MyAction ] "
SendKeys " [ Self ] " " [ MyAction ] "
ExecuteAddOn " [ Self ] " " [ MyAction ] "
------------------------------------------------------------------------------
Is an Execute " [ MyAction ] " script line possible?
The problem is that I won't know what the Action command will be in advance. It is created "on the fly" by the user and set as a variable. If there is no other solution I can save the variable string as a temporary text file and then read it back as a function with the "Call" action. If the desired function is located in a sub folder then the folder's name must also be included.

Quote from fkapnist on January 6, 2019, 9:28 pmThis works good enough:
FileWrite " [ TempDir ] ThisActionCommand " " All " " [ MyAction ] "
Delay "250"
Call " [ TempDir ] ThisActionCommand "Using it, VisualNEO Win can read and run remote commands from the Google Chrome browser such as:
WinExecAction ' GoSub "ChromeTest2" '
.
This works good enough:
FileWrite " [ TempDir ] ThisActionCommand " " All " " [ MyAction ] "
Delay "250"
Call " [ TempDir ] ThisActionCommand "
Using it, VisualNEO Win can read and run remote commands from the Google Chrome browser such as:
WinExecAction ' GoSub "ChromeTest2" '
.

Quote from luishp on January 6, 2019, 11:44 pmI think hpwPlayAction plugin can do the work.
But I don't understand very well how can you use it to generate a WinExecAction command from Chrome.
I think hpwPlayAction plugin can do the work.
But I don't understand very well how can you use it to generate a WinExecAction command from Chrome.

Quote from fkapnist on January 7, 2019, 5:58 amRE: I don't understand very well how can you use it to generate a WinExecAction command from Chrome.
I am experimenting with execCommand(copy) which sends text strings from Chrome to the clipboard. A timer in VisualNEO scans the clipboard every second. If it finds "WinExecAction" anywhere in the clipboard it sends the entire string to be parsed and executed as an Action in VisualNEO. It works pretty good now with "WinGoSub" (instead of WinExecAction) because I can keep the GoSub part and modify only the quotation marks around the subroutine option so it can run in my VisualNEO script. Next, I will see what cookies Chrome can share with VisualNEO Win...
I would rather not use another plugin in this, since I want to develop a new one.
It does not "generate" a command. The function or subroutine must already exist in VisualNEO. But a web page in Chrome can store the command line and run it from VisualNEO with execCommand() .
(Actually, functions can be generated on the fly and saved as external files that can be executed with "Call." But subroutines cannot be generated on the fly since their "GoSub" scripts are embedded in the program.)
RE: I don't understand very well how can you use it to generate a WinExecAction command from Chrome.
I am experimenting with execCommand(copy) which sends text strings from Chrome to the clipboard. A timer in VisualNEO scans the clipboard every second. If it finds "WinExecAction" anywhere in the clipboard it sends the entire string to be parsed and executed as an Action in VisualNEO. It works pretty good now with "WinGoSub" (instead of WinExecAction) because I can keep the GoSub part and modify only the quotation marks around the subroutine option so it can run in my VisualNEO script. Next, I will see what cookies Chrome can share with VisualNEO Win...
I would rather not use another plugin in this, since I want to develop a new one.
It does not "generate" a command. The function or subroutine must already exist in VisualNEO. But a web page in Chrome can store the command line and run it from VisualNEO with execCommand() .
(Actually, functions can be generated on the fly and saved as external files that can be executed with "Call." But subroutines cannot be generated on the fly since their "GoSub" scripts are embedded in the program.)

Quote from HPW on January 7, 2019, 5:38 pm>I would rather not use another plugin in this, since I want to develop a new one.
When you create your own plugin then you can use the SDK function nbPlayAction for this.
This was used in hpwPlayAction and the related MyEmbbededPlugin etc.
Regards
Hans-Peter
>I would rather not use another plugin in this, since I want to develop a new one.
When you create your own plugin then you can use the SDK function nbPlayAction for this.
This was used in hpwPlayAction and the related MyEmbbededPlugin etc.
Regards
Hans-Peter