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.

Example.xml revamp

If you have a question or need help, this is the place to be.
Post Reply
User avatar
WharfRat
Experienced User
Posts: 159
Joined: Wed Dec 25, 2013 11:56 am

Example.xml revamp

Post by WharfRat »

I just want to throw this out there for the 'Pros' to consider.

There are 'Pros'.
There are 'Noobs'.
And the rest of us: the 'Peanut Gallery', the 'Rabble Rousers'. Jostling each other on the sidelines, trying not to spill the beer, chanting lewd and derogatory taunts.

Example.xml seems to have been around for quite some time now.

I was a Noob, not so long ago. Compared to most of you, I'm still a Noob...
There are many recurring Noob postings in the forums.
All too often the Pros need to suggest "read Controlling Your Living Room..." or "look at the examples in Example.xml", to which the Noobs reply "I still don't get it."

"Houston, we have a problem..."

Perhaps we should consider something different.

Common Noob difficulties, in the order of importance for them:
  • the actual remote they want to use
    dragging events from the Log
    context folders
Those same difficulties, in the order of non-Noob complexity:
  • dragging events from the Log
    context folders
    the actual remote
Now take a look at the Log and Configuration Tree of Example.xml again (the memory of it fades too quickly).
Example.xml Log
Example.xml Log
Example_Log.png (11.49 KiB) Viewed 2917 times
Example.xml Tree
Example.xml Tree
Example_Tree.png (10.45 KiB) Viewed 2917 times
The Log indicates an Error, and for a Noob, the Configuration Tree is overwhelming.

Getting rid of the X10 solves the error in the Log.
Zoom Player and Winamp are programs which not everyone may have installed.
Getting rid of them removes two plugins, two Start macros, and two Switch macros.
Task Create/Switch Events, and Enable exclusive deal with context folders.
There are actually two separate context folders in there, Context Folder and Other Examples.
Discussing context folders in a basic example is not really appropriate.
Getting rid of them removes one plugin, one action, four macros, and two folders.
What remains is an empty Autostart folder, two switch macros, and one Volume Control folder.
Unfortunately, that would result in Keyboard Emulation and Mouse Emulation being impossible.
Getting rid of the two remaining Switch macros takes care of that.
Now all we have is Volume Control, which can be removed because there is no way to use it now.
An empty Configuration Tree won't overwhelm, but is completely useless.

Maybe we should proceed in steps instead, e.g. Example1.xml, Example2.xml, etc.

The MCE remote is more common than the X10, although setting up MCE remotes seems very painful.
But... everyone does have the Desktop Remote. Simple examples with that should get the ball rolling.

Everyone has a keyboard, so the Keyboard plugin is great for an 'add a plugin' example.

Notepad, Calculator and Windows Media Player (WMP) are more common than Zoom Player and Winamp.
Notepad and Calculator do not have plugins, but could demonstrate starting a program or keystroke emulation.
Notepad is in C:\WINDOWS for 32bit WinXP and 64bit Win7, but I'm not sure about the rest.
Calculator is in C:\WINDOWS\system32 for 32bit WinXP and 64bit Win7, but I'm not sure about the rest.
WMP could demonstrate adding a program plugin, but does the plugin work with all the different Windows WMP versions?
WMP 9 in WinXP 32bit SP2 : C:\Program Files\Windows Media Player\wmplayer.exe
WMP 12 in Win7 64bit SP1 : C:\Program Files\Windows Media Player\wmplayer.exe

Context folders definitely need to be a separate example. It would be appropriate for mouse and keyboard emulation, Volume Control, etc.

Setting up an actual remote can't be a universal example. Rather refer them to some other documentation or the plugin forum.

Confucius say "I hear and I forget. I see and I remember. I do and I understand."
Let's replace 'see Controlling your living room...' and Example.xml etc. with something more interactive instead.
Last edited by WharfRat on Wed Mar 12, 2014 12:52 pm, edited 1 time in total.
EventGhost 0.4.1.r1640
PHX01RN plugin v3.0.1
Windows XP 32bit (v5.1 Build 2600 Service Pack 2)
Windows7 64bit (v6.1 Build 7601 Service Pack 1)
User avatar
WharfRat
Experienced User
Posts: 159
Joined: Wed Dec 25, 2013 11:56 am

Re: Example.xml revamp

Post by WharfRat »

Here are some proposed examples which you might want to consider.
Example_revamp.zip
new examples and readme.txt
(22.51 KiB) Downloaded 233 times
Edit: updated 06 April 2014

Start with Example_00.xml (for now).

Example_00.xml (a temporary placeholder - see below)
Example_01.xml the Desktop Remote
Example_02.xml connecting a Macro to an Event
Example_03.xml adding a plugin
Example_04.xml alternative way of specifying an Event
Example_05.xml creating Macros
Example_06.xml adding Actions
Example_07.xml creating Folders
Example_08.xml enabling and disabling items
Example_09.xml context folders
Example_10.xml a real-world example
Example_11.xml what to do next

Example_00.xml is just a placeholder for now, the distribution installer should place Example_01 to Example_11 in My Documents\EventGhost and startup with Example_01.xml instead.
Last edited by WharfRat on Sun Apr 06, 2014 10:48 am, edited 3 times in total.
EventGhost 0.4.1.r1640
PHX01RN plugin v3.0.1
Windows XP 32bit (v5.1 Build 2600 Service Pack 2)
Windows7 64bit (v6.1 Build 7601 Service Pack 1)
User avatar
WharfRat
Experienced User
Posts: 159
Joined: Wed Dec 25, 2013 11:56 am

Re: Example.xml revamp

Post by WharfRat »

From the Peanut Gallery: "That's my two nuts worth."
EventGhost 0.4.1.r1640
PHX01RN plugin v3.0.1
Windows XP 32bit (v5.1 Build 2600 Service Pack 2)
Windows7 64bit (v6.1 Build 7601 Service Pack 1)
User avatar
WharfRat
Experienced User
Posts: 159
Joined: Wed Dec 25, 2013 11:56 am

Re: Example.xml revamp

Post by WharfRat »

I have made a few changes to the Examples.

Example_03.xml and Example_04.xml have been swapped for a more natural progression.
Some instructions in the examples have been edited to enhance clarity and reduce redundancy.

Example_00.xml (temporary placeholder)
Example_01.xml the Desktop Remote
Example_02.xml connecting a Macro to an Event
Example_03.xml alternative way of specifying an Event
Example_04.xml adding a plugin
Example_05.xml creating Macros
Example_06.xml adding Actions
Example_07.xml creating Folders
Example_08.xml enabling and disabling items
Example_09.xml context folders
Example_10.xml a real-world example
Example_11.xml what to do next

Previously, there had been 8 downloads.
EventGhost 0.4.1.r1640
PHX01RN plugin v3.0.1
Windows XP 32bit (v5.1 Build 2600 Service Pack 2)
Windows7 64bit (v6.1 Build 7601 Service Pack 1)
Post Reply