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.
Parsing Events
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
I started a new page in the wiki, that should explain some things related to scripting in EG:
http://www.eventghost.org/wiki/Scripting
http://www.eventghost.org/wiki/Scripting
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
I have enabled file-listing for http://www.eventghost.org/downloads/ so you can always see, which version is the newest "experimental pre-release" I have uploaded.
Keep in mind, that if the newest version is an "_Update.exe", you have to install the latest "_Setup.exe" before.
Keep in mind, that if the newest version is an "_Update.exe", you have to install the latest "_Setup.exe" before.
I have encountered an issue... 
I have a macro called "Normal All" and have an event assigned to it named "Tira.*"
This works great!
Now also in that same macro I have the action (Jump if long press) called "If button is held down 0.5 sec, go to: Repeat All"
I have another macro called "Repeat All", this has an action (AutoRepeat Current Macro) assigned to is called "Autorepeat current macro: 0.5"
so....
(Yeah I know, My ascii art sux)
Now when I press a remote button once I get the event in the logger (GREAT).
But when I press and hold a remote button i get the jump if held executing but only 1 autorepeat in the logger, no continuous autorepeat.
I have tested by making the "Tira.*" event an actual button event (Tira.A386F5D755D5) and I get the held down event and the autorepeats "continuously" (until i release the button of course).
Cheers!
I have a macro called "Normal All" and have an event assigned to it named "Tira.*"
This works great!
Now also in that same macro I have the action (Jump if long press) called "If button is held down 0.5 sec, go to: Repeat All"
I have another macro called "Repeat All", this has an action (AutoRepeat Current Macro) assigned to is called "Autorepeat current macro: 0.5"
so....
Code: Select all
-... Normal All
| |...(Event) Tira.*
| L...(JILP) If button is held down 0.5 sec, go to: Repeat All
|
-... Repeat All
L...(ARCM) Autorepeat current macro: 0.5
Now when I press a remote button once I get the event in the logger (GREAT).
But when I press and hold a remote button i get the jump if held executing but only 1 autorepeat in the logger, no continuous autorepeat.
I have tested by making the "Tira.*" event an actual button event (Tira.A386F5D755D5) and I get the held down event and the autorepeats "continuously" (until i release the button of course).
Cheers!
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
Do you mean, this only happens if you use wildcarded events? I have a similiar macro working for volume control. On a single press it only changes the value by one percent. On long press it does an autorepeat with two percent increments.
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="853">
<Folder Name="Volume Control" Expanded="True">
<Macro Name="Decrease Volume" id="533" Expanded="True">
<Action>
System.ChangeMasterVolumeBy(-2.0)
</Action>
<Action>
EventGhost.ShowOSD(u'Volume: {int(eg.result)}%', u'0;-32;0;0;0;400;0;0;0;0;0;0;0;0;', (255, 255, 255), (0, 0, 0), 0, (0, 0), 0, 3.0)
</Action>
<Action>
EventGhost.AutoRepeat(0.0, 0.29999999999999999, 0.01, 3.0)
</Action>
</Macro>
<Macro Name="Start Decrease Volume" Expanded="True">
<Event Name="VolumeDown">
</Event>
<Action>
System.ChangeMasterVolumeBy(-1.0)
</Action>
<Action>
EventGhost.ShowOSD(u'Volume: {int(eg.result)}%', u'0;-32;0;0;0;400;0;0;0;0;0;0;0;0;', (255, 255, 255), (0, 0, 0), 0, (0, 0), 0, 3.0)
</Action>
<Action>
EventGhost.JumpIfLongPress(0.40000000000000002, XmlIdLink(533))
</Action>
</Macro>
<Macro Name="Increase Volume" id="542" Expanded="True">
<Action>
System.ChangeMasterVolumeBy(2.0)
</Action>
<Action>
EventGhost.ShowOSD(u'Volume: {int(eg.result)}%', u'0;-32;0;0;0;400;0;0;0;0;0;0;0;0;', (255, 255, 255), (0, 0, 0), 0, (0, 0), 0, 3.0)
</Action>
<Action>
EventGhost.AutoRepeat(0.0, 0.29999999999999999, 0.01, 3.0)
</Action>
</Macro>
<Macro Name="Start Increase Volume" Expanded="True">
<Event Name="VolumeUp">
</Event>
<Action>
System.ChangeMasterVolumeBy(1.0)
</Action>
<Action>
EventGhost.ShowOSD(u'Volume: {int(eg.result)}%', u'0;-32;0;0;0;400;0;0;0;0;0;0;0;0;', (255, 255, 255), (0, 0, 0), 0, (0, 0), 0, 3.0)
</Action>
<Action>
EventGhost.JumpIfLongPress(0.40000000000000002, XmlIdLink(542))
</Action>
</Macro>
</Folder>
</EventGhost>- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Parsing Events
Hello,
I have an event and it looks like this:
I try to parse it using wild cards in the macro. I would like to use
but so far I have only managed with
Can you provide me with some hints of what "wildcarding" is working?
Best regards, Walter
I have an event and it looks like this:
Code: Select all
19:55:14 Main.UPM.DeviceCode|1|UPM.HouseCode|8|UPM.Humidity|106|UPM.LowBattery|0|UPM.Temp|1204|Code: Select all
UPM.DeviceCode|1|UPM.HouseCode|8|.*Code: Select all
*Can you provide me with some hints of what "wildcarding" is working?
Best regards, Walter
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: Parsing Events
Middle parts won't work. I guess thatwould make it neccessary to match against a lot of combinations
including "Main." should work.
Code: Select all
Main.UPM.DeviceCode|1|UPM.HouseCode|8|.*-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Parsing Events
Thanks Bartman,
Unfortunately it doesn't work either,,,
Maybe some characters in the string is messing up things
BestR Walter
Unfortunately it doesn't work either,,,
Maybe some characters in the string is messing up things
BestR Walter
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM