PlayAction - Forum

Forum Navigation
You need to log in to create posts and topics.

PlayAction

I noticed that NEO Win has some more features than Neobook5 did, such as PlayAction.

Is there more info on how to use this?

I want to call external files but am not sure how they should be formatted.

I wonder what relation it has to the hpwPlayAction plugin, which actually consists of six different plugins.

Is there any more documentation?

Thanks

Uploaded files:
  • You need to login to have access to uploads.

Hello,

https://winhelp.visualneo.com/Control.html#PLAYACTION

The text file should be plain text and ASCII/ANSI.

I do usally gave such files the *.nbs extension to remind me to "neobook script". Or maybe now *.vns ! ;-)

hpwPlayAction use the same internal function through the SDK of VisualNeo.

PlayAction was added because many user wants that without a plugin use.

Regards

 

luishp and Vadim have reacted to this post.
luishpVadim
Quote from HPW on September 20, 2022, 5:01 pm

Hello,

https://winhelp.visualneo.com/Control.html#PLAYACTION

The text file should be plain text and ASCII/ANSI.

I do usally gave such files the *.nbs extension to remind me to "neobook script". Or maybe now *.vns ! ;-)

hpwPlayAction use the same internal function through the SDK of VisualNeo.

PlayAction was added because many user wants that without a plugin use.

Regards

 

Thanks. What does hpwEncode do?

.

Hello,

hpwEncode was developed to be able to encrypt a nbs script and play it with passwort.

It was meant to get an option for protecting your scriptwork from spying eyes.

It was also later used to build custom plugins with neobook with encypted script code in the resource-string-space of a custom plugin.

Regards

Hans-Peter

 

Vadim has reacted to this post.
Vadim
Quote from HPW on September 21, 2022, 4:05 pm

Hello,

hpwEncode was developed to be able to encrypt a nbs script and play it with passwort.

It was meant to get an option for protecting your scriptwork from spying eyes.

It was also later used to build custom plugins with neobook with encypted script code in the resource-string-space of a custom plugin.

Regards

Hans-Peter

 

Thank you.

what is proper syntax within VNW to use this PlayAction command?

i have a ANSI encoded textfile saved to Desktop with:
"Alertbox " [#34]Message[#34] [#34]Hello world![#34]"

within an Action, Left-Click window  i have
PlayAction "C:\Users\ilcaa72\Desktop\playthisaction.txt"

no alertbox...what am i doing wrong? thanks

 

 

 

fkapnist has reacted to this post.
fkapnist
Quote from ilcaa72 on February 18, 2023, 6:02 pm

what is proper syntax within VNW to use this PlayAction command?

i have a ANSI encoded textfile saved to Desktop with:
"Alertbox " [#34]Message[#34] [#34]Hello world![#34]"

within an Action, Left-Click window  i have
PlayAction "C:\Users\ilcaa72\Desktop\playthisaction.txt"

no alertbox...what am i doing wrong? thanks

.............................

Remove the quotation mark right after Alertbox. But keep the final quotation mark (you mistakenly have three quotation marks)....

"AlertBox [#34]Message[#34] [#34]Hello world![#34]"

.

 

thanks for the suggestion... i played with the quotes and this is what worked within text file

AlertBox  "Message"  "Hello from TextFile"

 

luishp and fkapnist have reacted to this post.
luishpfkapnist

The PlayAction action could be used to create a rather simple interpreter program for VisualNeo coding.
I created a multiline TextEntry object and a button to execute the PlayAction action using the TextEntry variable.

My only problem, however, is that the ShowErrors "False" seems to only return part of any [LastErrors] variable.
But this could be a handy tool.

Quote from PaulJonestindall on March 1, 2023, 8:57 pm

The PlayAction action could be used to create a rather simple interpreter program for VisualNeo coding.
I created a multiline TextEntry object and a button to execute the PlayAction action using the TextEntry variable.

My only problem, however, is that the ShowErrors "False" seems to only return part of any [LastErrors] variable.
But this could be a handy tool.

@pauljonestindall

The PlayAction of VisualNEO Win was originally from the hpwPlayAction plugin for Neobook.

It also allows you to create custom macros and plugins.

.

question fkapnist to better understand this function...

the original is obsolete (hpwPlayAction ) or does it provide additional functionality the built-in one cant provide?

to create a macro or plugin using PlayAction you can only use strings of functions currently within your installation of NVWin, (a macro being a list of consecutive commands that allow you to achieve something, basically automate).

But how would Plugin work for this PlayAction command.  do you have a simple sample of building a Plugin with PlayAction you can provide so i can reverse engineer to understand better?

 

fkapnist has reacted to this post.
fkapnist
Quote from ilcaa72 on March 2, 2023, 3:35 pm

question fkapnist to better understand this function...

the original is obsolete (hpwPlayAction ) or does it provide additional functionality the built-in one cant provide?

to create a macro or plugin using PlayAction you can only use strings of functions currently within your installation of NVWin, (a macro being a list of consecutive commands that allow you to achieve something, basically automate).

But how would Plugin work for this PlayAction command.  do you have a simple sample of building a Plugin with PlayAction you can provide so i can reverse engineer to understand better?

 

@ilcaa72

In VisualNEO Win, "PlayAction" is found in Control > SubRoutine Access > ... along with "GoSub" and "Return."
The original (hpwPlayAction ) is NOT obsolete. You can download it and install it like any other plugin. It contains more actions for macros and even a "wizard" folder to help create new plugins. I suggest you contact Hans-Peter @hpw who wrote the PlayAction code for more details.

But if your problem is that you can't put an entire list of consecutive commands on a single text string, try creating an external Function (i.e. MyFunction) that contains the entire block or list of commands that you want to use. Then create a simple Subroutine (i.e. CallMyFunction) that is a single "Call" string, to run your external function list of actions using PlayAction. I was able to use PlayAction to send information to the Chrome browser from a rectangle within VisualNEO Win (or Neobook5).

Good luck.

.

 

 

Vadim has reacted to this post.
Vadim