Hi all,
Lately I'we got new remote for PC and found EventGhost, wich I see in future to be much better than Girder(and for those using strange HID remotes like me it is the only usable thing right now). As there are not too many actions, I'we decided to make one that I need by myself. I am not familiar with python, so it'd be nice opportunity to learn it at least a bit as I know few other programming languages.
As I want to have action wich would execute ALL macros in selected folder (maybe recursion as an option) I'we started inspecting Jump action, which somehow calls another macro's. At the point I have already read all doc's on the web(both of them).
So there I find such things:
eg.programReturnStack
eg.SetProgramCounter
and there is no infos about those.
So finally my question would be - is there any real documentation about programming for EventGhost? Docs for classes methods and variables? All of them, not 3 or 4 that are mentioned in the howto.
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 there any extended docs about creating actions/plugins?
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
Re: Is there any extended docs about creating actions/plugins?
No, for the internal code there is no documentation, as I refactor it often and only concentrate myself on keeping the documented plugin API fixed. And jumping around is really something that needs attention from both sides (from the codes that calls it and the code that handles it).
What exactly do you want to achieve? You can assign the same event to multiple macros and control which should execute be enabling/disabling particular macros or the folders that contain them.
What exactly do you want to achieve? You can assign the same event to multiple macros and control which should execute be enabling/disabling particular macros or the folders that contain them.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
Re: Is there any extended docs about creating actions/plugins?
I'd like to start with the action I would call "Call multiple actions" witch would (optionally recursively) execute all actions in certain folder.
Next that I desperately need is an analog to girder's window conditional. From the other hand I don't expect to be able to write it.
BTW I'we found what I'd describe as a bug. When executing keyboard emulation and there is an action assigned to emulated key, that action is executed like the key came from keyboard...
Next that I desperately need is an analog to girder's window conditional. From the other hand I don't expect to be able to write it.
BTW I'we found what I'd describe as a bug. When executing keyboard emulation and there is an action assigned to emulated key, that action is executed like the key came from keyboard...
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
Re: Is there any extended docs about creating actions/plugins?
FindWindow already works as an conditional, but most times the Task plugin is the thing you want.
The keyboard bug:
http://www.eventghost.org/forum/viewtopic.php?f=4&t=472
The keyboard bug:
http://www.eventghost.org/forum/viewtopic.php?f=4&t=472
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
Re: Is there any extended docs about creating actions/plugins?
I'we seen, that find window stops macros's execution if no window found. But let's say I'we like 20 macros for a task. In the case I want them to be able to run only in one specific foreground window, I need to put find window action in everyone of them. In case of girder's conditionals i put one conditional in that folder.
For the keyboard I'we found temporary workaround - I make macro disable itself, disable keyboard plugin and only then output the keystroke. Then I jump to another action wich enables everything back. Somehow it still repeats the action twice, but on the second run macro is disabled, to does nothing...
What I'd like to say is that EG is much better than girder at the moment with it's simplicity for novice user, but to be the best one it needs to have posibilities for everyone to extend it. I understand that python a popular and really powerfull language, but for intermediate users LUA is much easyer. Even this wouldn't do much harm, but absence of documentations could make EG a project for only few people... For example I'd still use girder for the moment, if it wouldn't have HID bugs. From the other hand each time I miss something I start to think to use EG only as gateway wich would send HID events to girder.
For the keyboard I'we found temporary workaround - I make macro disable itself, disable keyboard plugin and only then output the keystroke. Then I jump to another action wich enables everything back. Somehow it still repeats the action twice, but on the second run macro is disabled, to does nothing...
What I'd like to say is that EG is much better than girder at the moment with it's simplicity for novice user, but to be the best one it needs to have posibilities for everyone to extend it. I understand that python a popular and really powerfull language, but for intermediate users LUA is much easyer. Even this wouldn't do much harm, but absence of documentations could make EG a project for only few people... For example I'd still use girder for the moment, if it wouldn't have HID bugs. From the other hand each time I miss something I start to think to use EG only as gateway wich would send HID events to girder.
Re: Is there any extended docs about creating actions/plugins?
You could also try playing with exclusives, then you'll make multiple folders with similar events and different actions.