[WINDOWS] HOW-TO get Sony PS3 Bluetooth Remote Control working using EventGhost

  Thread Rating:
  • 2 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
jitterjames Offline
VoxCommando Founder
Posts: 290
Joined: Aug 2008
Reputation: 0
Location: canada
Post: #191
in eventGhost:

-add macro
- choose from tree: System >> Start Application.

set the path to the program you want to start.
drag the event generated by the timer on to the macro.

done.
find quote
SkItZo Offline
Junior Member
Posts: 35
Joined: Feb 2010
Reputation: 0
Post: #192
I tried that, problem being that the execute application action fires about a second after pressing a button and the timer seems to have no effect other than its own little world
(Countdown timer is still running but the application has already been run)
This is what my macro looks like

Code:
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1544">
    <Macro Name="Start Program: Ps3RemoteSleep.exe" Expanded="True">
        <Event Name="PS3.Button.*" />
        <Action>
            System.Execute(u'D:\\Installation Files\\Media Files\\HTPC\\Ps3RemoteSleep\\Ps3RemoteSleep.exe', u'', 0, False, 2, u'', False)
        </Action>
        <Action>
            Timer.TimerAction(u'ps3Hibernate', 0, 1, 30.0, u'ps3.hibernate', False, True, 1, u'00:00:00')
        </Action>
    </Macro>
</EventGhost>

I know im doing something wrong here Tongue Should there be 2 macros in the same tree or should the timer event and the execute event be in the same macro?
(This post was last modified: 2011-11-23 19:42 by SkItZo.)
find quote
jitterjames Offline
VoxCommando Founder
Posts: 290
Joined: Aug 2008
Reputation: 0
Location: canada
Post: #193
you need two macros. what you have pasted here will put the remote to sleep every time you press a button. obviously you don't want that.

you want the ps3.* event to trigger a macro that will set/reset the timer.

you want the timer event to trigger the application that puts the remote to sleep.
find quote
SkItZo Offline
Junior Member
Posts: 35
Joined: Feb 2010
Reputation: 0
Post: #194
Got it Big Grin The timer displays ps3.hibernate which i needed to set an action within the macro that runs the program

Thanks for your help Big Grin
find quote
jitterjames Offline
VoxCommando Founder
Posts: 290
Joined: Aug 2008
Reputation: 0
Location: canada
Post: #195
Laugh Cool. Glad it's working.
find quote
Death-Axe Offline
Fan
Posts: 674
Joined: Feb 2007
Reputation: 4
Post: #196
could you please explain the two macros I need to make? A little confused about it.

And I don't need to add anything to my button macros using them?

Thanks. I had no idea there was a solution to the battery eater until randomly checking around the forum today.

[Image: widget]
HTPC: Asrock 330BD, external USB storage, one for all remote/FLIRC, Logitech z906 surround system.
find quote
jitterjames Offline
VoxCommando Founder
Posts: 290
Joined: Aug 2008
Reputation: 0
Location: canada
Post: #197
Death-Axe Wrote:could you please explain the two macros I need to make? A little confused about it.

And I don't need to add anything to my button macros using them?

Thanks. I had no idea there was a solution to the battery eater until randomly checking around the forum today.

1-You need to have the timer plugin installed (and ps3 plugin obviously)
2-Paste the following code into your EG tree.
Code:
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1544">
    <Folder Name="ps3 hibernate" Expanded="True">
        <Macro Name="Timer: Start new or control running timer" Expanded="True">
            <Event Name="PS3.Button.*" />
            <Action>
                Timer.TimerAction(u'ps3Hibernate', 0, 1, 16.0, u'ps3.hibernate', False, True, 1, u'00:00:00')
            </Action>
        </Macro>
        <Macro Name="Start Program: Ps3RemoteSleep.exe" Expanded="True">
            <Event Name="Timer.ps3.hibernate" />
            <Action>
                System.Execute(u'C:\\Ps3RemoteSleep_v1.0.0.0\\Ps3RemoteSleep.exe', u'', 3, False, 1, u'', False)
            </Action>
        </Macro>
    </Folder>
</EventGhost>

This will add a group with two macros in it. In the second you will need to edit the "start program" command to point to "ps3remotesleep.exe" wherever you have put it.

Double click the action "Timer: Start new or control running timer" if you want to set the interval (idle time) before the remote will be put to sleep.
find quote
Death-Axe Offline
Fan
Posts: 674
Joined: Feb 2007
Reputation: 4
Post: #198
it doesn't want to launch the app for some reason, all I get is this:

Quote:Traceback (most recent call last):
File "EventGhost.pyw", line 31, in <module>
File "C:\Program Files (x86)\EventGhost\eg\__init__.py", line 109, in Main
eg.Tasklet(eg.app.MainLoop)().run()
File "C:\Program Files (x86)\EventGhost\eg\Classes\TaskletDialog.py", line 41, in ProcessingTask
self.Configure(*args, **kwargs)
File "C:\Program Files (x86)\EventGhost\eg\Classes\ConfigDialog.py", line 126, in Configure
self.item.Configure(*args)
File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionItem.py", line 107, in Configure
return self.executable.Configure(*args)
TypeError: Configure() takes at most 7 arguments (8 given)
Traceback (most recent call last):
File "C:\Program Files (x86)\EventGhost\eg\Classes\MainFrame\__init__.py", line 344, in FuncWrapper
func()
File "C:\Program Files (x86)\EventGhost\eg\Classes\MainFrame\__init__.py", line 868, in OnCmdConfigure
eg.UndoHandler.Configure().Try(self.document)
File "C:\Program Files (x86)\EventGhost\eg\Classes\UndoHandler\Configure.py", line 41, in Try
eg.Tasklet(self.Do)(item).run()
TaskletExit

[Image: widget]
HTPC: Asrock 330BD, external USB storage, one for all remote/FLIRC, Logitech z906 surround system.
find quote
Death-Axe Offline
Fan
Posts: 674
Joined: Feb 2007
Reputation: 4
Post: #199
I updated the app, no error on the macros you gave me, but now it errors on pressing a key on my remote. ANNOYING

Where can I find the latest version of the ps3 plugin? the one on the eventghost site is from 2009.

Edit: re downloaded the plugin and it works now. Maybe eventghost edited the plugin file for some reason. All working now, edited the timer though as 16 seconds is WAY too low.

thanks for your help James!

[Image: widget]
HTPC: Asrock 330BD, external USB storage, one for all remote/FLIRC, Logitech z906 surround system.
(This post was last modified: 2011-11-27 18:35 by Death-Axe.)
find quote
jitterjames Offline
VoxCommando Founder
Posts: 290
Joined: Aug 2008
Reputation: 0
Location: canada
Post: #200
Death-Axe Wrote:I updated the app, no error on the macros you gave me, but now it errors on pressing a key on my remote. ANNOYING

Where can I find the latest version of the ps3 plugin? the one on the eventghost site is from 2009.

Edit: re downloaded the plugin and it works now. Maybe eventghost edited the plugin file for some reason. All working now, edited the timer though as 16 seconds is WAY too low.

thanks for your help James!
Yeah, I know 16 is too low! Laugh I had set it to 16 just for testing, so I wouldn't have to wait around forever to see if it was working. I would probably go more for something like 300 (5 minutes)

P.S. to the best of my memory the ps3 plugin that ships with EG is very old and the latest one is in the first post of this thread. But I guess you figured it out already, and please correct me if I'm wrong about this. Part of the problem is that I think the version numbers have not been updated through various plugin edits by different people.
find quote
Post Reply