Set Persistent Variable in Webserver HTTP Event

Questions and comments specific to a particular plugin should go here.
Post Reply
neilmahaseth
Posts: 2
Joined: Fri Jun 09, 2017 11:07 am

Set Persistent Variable in Webserver HTTP Event

Post by neilmahaseth » Fri Jun 09, 2017 11:22 am

I am new to EventGhost so please excuse me if this is very easy. Is there a way to set Webserver Persistent Variable using a HTTP Event through say a Get Parameter or a Post Parameter.
Basically what I am trying to achieve is create a http webserver event which will set key value which in turn will be passed to the keyboard emulation. So instead of creating separate events for emulating different key press. I am looking to pass the key to emulate dynamically through Http GET/ Post request. Any help would be greatly appreciated.

neilmahaseth
Posts: 2
Joined: Fri Jun 09, 2017 11:07 am

Re: Set Persistent Variable in Webserver HTTP Event

Post by neilmahaseth » Fri Jun 09, 2017 2:40 pm

Ok after a bit of tinkering and a couple of google searches I found the solution. No need for setting the persistent variable.
Just call the web server address using the following syntax. If you are accessing from the local machine. Then http://localhost/?key&h
In this key will be the event name and the string after & will be passed as {eg.event.payload[0]}. So create a macro with the trigger event as HTTP.key and then in Emulate Keystrokes in text to type enter {eg.event.payload[0]}.

Hope that helps someone.

Post Reply