Hello,
I am new to EventGhost, but was able to successfully use it to control TV/Tivo devices and play an existing .mp3 file.
Now I would like to be able to create a script to play an .mp3 file which doesnÔÇÖt exist yet. I donÔÇÖt know the fileÔÇÖs name yet, so I can not start Microsoft Media Player through the System: Start Application Action and just play this file.
So, my question is: is it possible to overwrite parameters of an existing action or create a brand new action on a fly during the run time?
Thanks,
Ary Alva
System Info:
EventGhost 0.3.7.r1462, 11.9 MB, Apr 02 2010
OS Name Microsoft┬« Windows VistaÔäó Home Premium
Version 6.0.6002 Service Pack 2 Build 6002
System Manufacturer Acer
System Model Aspire X3200
System Type x64-based PC
Processor AMD Athlon 64
Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
Is it Possible to Create Action Dynamically?
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Is it Possible to Create Action Dynamically?
Yes, some actions make it possible. Usually this is done is that instead of a specific name (in your case the file name), enter the Python expression.Ary.Alva wrote:So, my question is: is it possible to overwrite parameters of an existing action?
Usually it {eg.result} or {eg.event.payload}. The brackets must be there. EventGhost then evaluates expression using eg.ParseString().
Pako