Hi!
Is there a possibility to create something like a cased jump with the return code of the last command?
Like:
FindWindow ...
Jump, if last return was 1, to ... --> do something
else --> do something else
DoSomething another thing...
I know that there is the possibility to jump only if the last command was successful, but ist there something like an else?
Is it possible to get the Returncode of the previous command in an other plugin?
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.
Return Case controlled commands
Re: Return Case controlled commands
I don't understand your problem. If the conditional jump doesn't fit, the next command after the conditional jump is executed. Why do you need a else command?NikoMitDaMacht wrote:Hi!I know that there is the possibility to jump only if the last command was successful, but ist there something like an else?
[/quote]NikoMitDaMacht wrote: Is it possible to get the Returncode of the previous command in an other plugin?
The retuncode of the previous command is written into the global variable "eg.result". In this case a plugin or a python command/script can use the return code of the previous command.
Regards
Prinz
Mein HTPC:
Mainboard: Gigabyte GA-G33M-DS2R
CPU: Intel E5200
OS: WinXP SP3
Graphic card: NVIDIA GeForce 210 512MB
TV-Cards: 2 * Digital Everywhere FloppyDTV-C, Terratec Cinergy 1200 DVB-C
HTPC software: DVB Viewer / EventGhost
Mainboard: Gigabyte GA-G33M-DS2R
CPU: Intel E5200
OS: WinXP SP3
Graphic card: NVIDIA GeForce 210 512MB
TV-Cards: 2 * Digital Everywhere FloppyDTV-C, Terratec Cinergy 1200 DVB-C
HTPC software: DVB Viewer / EventGhost