danuel36 / telekinesis

Automatically exported from code.google.com/p/telekinesis
0 stars 0 forks source link

Uniremote: Control both iTunes and Frontrow #40

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Attached is Uniremote 0.1

It acts more like the physical Apple Remote.

The MENU button brings up Frontrow and acts just like the Apple Remote's MENU 
button does. All other controls work in both Front Row and 
iTunes.

The main difference between Uniremote and the standard remote for iPhone Remote 
is: you have to be in the application you want to control. You 
can't change the song if Safari is active.

To install: move the Uniremote.tapp folder to ~/Library/Application 
Support/iPhone Remote/Apps/

Because of some bug(?) in iPhone Remote 0.9.9 you must change the part of the 
URL. Where you see "Apps you must change that to apps"
For example:https://[ipaddress]:5010/Apps/Uniremote.tapp/" to 
"https://[ipaddress]:5010/apps/Uniremote.tapp/"

Original issue reported on code.google.com by Neil.H...@gmail.com on 7 Jul 2007 at 7:55

Attachments:

GoogleCodeExporter commented 8 years ago
I swear I had this working. It seems you have to take out the capitalization of 
Uniremote.tapp before (or after you 
copy it) to uniappremote.tapp or else it will give you a "bad request" error. 
Sometimes it works with the U and 
sometimes it doesn't.

I think this is another bug.

Original comment by Neil.H...@gmail.com on 7 Jul 2007 at 8:14

GoogleCodeExporter commented 8 years ago
Here is Uniremote 0.1.1

You still have to change the Apps part of the URL, but the capitialiazation 
issue of Uniremote to uniremote.

***** Also, regarding comment 1 here, I meant to say "to uniremote.tapp" NOT 
"uniappremote.tapp". Just a typo. 
But that is fixed in 0.1.1. *****

Original comment by Neil.H...@gmail.com on 7 Jul 2007 at 8:28

Attachments:

GoogleCodeExporter commented 8 years ago
First, I did not see the file /Library/Application Support/iPhone Remote/Apps/ 
so I created "iPhone Remote" as a 
file within "Application Support" and then "Apps" within the file iPhone Remote 
and moved "Uniremote.tapp" 
folder into it. I then entered "https://[ipaddress]:5010/apps/uniremote.tapp/" 
and it did not work. Did I do 
something wrong? 

Original comment by colinrcu...@gmail.com on 7 Jul 2007 at 8:32

GoogleCodeExporter commented 8 years ago
You have to do it in ~/Library/Application Support/iPhone Remote/Apps/

The ~ means your home directory. You put it in the hard drive directory folder. 
If you are lost do this:
-Bring up Finder, go to the Go menu > Go to Folder... > ~/Library/Application 
Support/iPhone Remote/Apps/
-Then hit Go
-Drag it in there

Original comment by Neil.H...@gmail.com on 7 Jul 2007 at 8:37

GoogleCodeExporter commented 8 years ago
I am not sure you were using but make sure you use 0.1.1 this time, you may 
have forgot to rename the folder.

Original comment by Neil.H...@gmail.com on 7 Jul 2007 at 8:41

GoogleCodeExporter commented 8 years ago
All set now, but if I have Safari open, I can change the iTunes Volume and Fast 
Forward or Rewind, I just can't 
Pause or Play. When I click that it makes my mouse disappear. Is this the same 
for you? Also, if I do it in DVD I 
can play/pause DVDs but the same buttons I mentioned before operate Itunes...

Original comment by colinrcu...@gmail.com on 7 Jul 2007 at 8:47

GoogleCodeExporter commented 8 years ago
Actually, Play Pause in safari brings me to the bottom of the page. 

Original comment by colinrcu...@gmail.com on 7 Jul 2007 at 8:48

GoogleCodeExporter commented 8 years ago
No, it shouldn't control iTunes when you are in Safari. It actually should make 
safari Go back and or Forward 
(prev. and next) or go up and down (plus and minus) and pressing Play would 
make you scroll down since it 
emulates the spacebar.

You may wanna check that you are picking uniremote from the interface and not 
Remote (they have the same 
icon at this time). Also, if your Mac has FrontRow press the menu button. If it 
just brings up iTunes then you are 
using the wrong one.

Original comment by Neil.H...@gmail.com on 7 Jul 2007 at 8:57

GoogleCodeExporter commented 8 years ago
I have Bytecontroler, I don't know if you are familar with this app for mac, 
might that be the issue?

Original comment by colinrcu...@gmail.com on 7 Jul 2007 at 9:00

GoogleCodeExporter commented 8 years ago
That was it, when I turned off those hot keys it stoped. Is it possible for the 
remote to be programed to control 
iTunes with Safari or AIM open? These are commonly open and switching to iTunes 
with the mouse seems to 
negate the point of using the iPhone as a remote. Just a thought. 

Original comment by colinrcu...@gmail.com on 7 Jul 2007 at 9:06

GoogleCodeExporter commented 8 years ago
I must say, well done. This is, in my mind, the most useful iPhone app yet. 
What we all had been wishing might 
happen on the iPhone has come true with your contributions. Bravo!

Original comment by colinrcu...@gmail.com on 7 Jul 2007 at 9:12

GoogleCodeExporter commented 8 years ago
In order for this to work with FrontRow I had to set it to keyboard commands. I 
am not sure if it is possible to 
control iTunes everywhere with the same remote that controls FrontRow. Front 
Row isn't AppleScriptable, and I 
am no expert at AppleScript so I will have to look into some things.

Original comment by Neil.H...@gmail.com on 7 Jul 2007 at 9:12

GoogleCodeExporter commented 8 years ago
Byte Controler might be something to look into. I had it set so that if I hit 
Apple+Space anywhere it would Play/
Pause and if I hit Apple+Right Arrow it would Go Next (same for back) and 
Apple+Up Arrow for Volume up (and 
the same for down)... Those are keyboard commands that worked; but would that 
interfere with DVD?

Original comment by colinrcu...@gmail.com on 7 Jul 2007 at 9:16

GoogleCodeExporter commented 8 years ago
I guess Front Row has some basic Applescript functions. OK, it has one command: 
isVisible, but I think that is 
good enough.

Original comment by Neil.H...@gmail.com on 7 Jul 2007 at 9:34

GoogleCodeExporter commented 8 years ago
Uniremote 0.2

I think it is finally a complete duplicate of the Apple Remote. It now works 
with iTunes, even if you are doing 
something else. The only thing else that I can think of, is Keynote and 
PowerPoint support. That should be pretty 
easy, as they both are scriptable.

I would love any feedback on this release.

Original comment by Neil.H...@gmail.com on 7 Jul 2007 at 10:00

Attachments:

GoogleCodeExporter commented 8 years ago
Latebreaking News: You may have to rename it Uniremote and not uniremote. I 
have no idea why it sometimes 
like one and not the other.

Original comment by Neil.H...@gmail.com on 7 Jul 2007 at 10:05

GoogleCodeExporter commented 8 years ago
Uniremote 0.2.1 brings full Keynote support. It seems the easiest way to 
activate this is to add 
/apps/uniremote.tapp to the url after you log in on your iphone. At least until 
they squash the odd URL bug.

Original comment by Neil.H...@gmail.com on 7 Jul 2007 at 12:19

Attachments:

GoogleCodeExporter commented 8 years ago
"....Move the uniremote.tapp folder to ~/Library/Application Support/iPhone 
Remote/Apps/
If you get a "Not Found" error (and you most likely will) when you access this 
tapp change the part of the URL 
where it says "Apps" to "apps" (without quotes).......

I did change the "Apps" to 'apps", and now i am getting Bad Request error.  Ill 
keep experimenting.  Thanks
for all your hard work!

Original comment by jbuec...@gmail.com on 7 Jul 2007 at 12:38

GoogleCodeExporter commented 8 years ago
If you get that try changing the uniremote.tapp part to Uniremote.tapp, 
sometimes that works.

Original comment by Neil.H...@gmail.com on 7 Jul 2007 at 12:40

GoogleCodeExporter commented 8 years ago
to #19: YES, that worked, , 
NEW PROBLEM : When I hit MENU, it launches KEYNOTE.  (Instead of Front Row)

Original comment by jbuec...@gmail.com on 7 Jul 2007 at 12:43

GoogleCodeExporter commented 8 years ago
Thank you for pointing that out to me. I going to work on this right now. For 
now, you can make a new black 
keynote document and use it normally.

Original comment by Neil.H...@gmail.com on 7 Jul 2007 at 12:47

GoogleCodeExporter commented 8 years ago
If anyone knows anything about Applescript I would love some assistance. 
-----------
tell application "Keynote"
    if slide switcher visible then
        cancel slide switcher
    else
        tell application "Keynote"
            if playing then
                show slide switcher
            else
                tell application "System Events"
                    tell application "Front Row" to activate
                    key code 53 using {command down}
                end tell
            end if
        end tell
    end if
end tell
-----------
I don't know how I can have something like this code detect if Keynote is 
already running, and if so to create 
an action. If it isn't open I want it to move on to the next action.
As of now, the "tell application "Keynote" makes Keynote launch.

Thanks

Original comment by Neil.H...@gmail.com on 7 Jul 2007 at 1:20

GoogleCodeExporter commented 8 years ago
The URL problems have been fixed (I think) in 0.10, but the Keynote problem is 
still here, so I would stick with 
0.2.

Original comment by Neil.H...@gmail.com on 7 Jul 2007 at 1:49

GoogleCodeExporter commented 8 years ago
Woah. this is neat :)

Original comment by j...@gmail.com on 7 Jul 2007 at 6:06

GoogleCodeExporter commented 8 years ago
I do not have keynote, so when I bring the remote up on iPhone the application 
on the desktop brings up a 
"Choose Application" screen and the remote will not operate. 

Original comment by colinrcu...@gmail.com on 7 Jul 2007 at 6:13

GoogleCodeExporter commented 8 years ago
That is only with 0.2.1 by the way. I went to version 0.2 and it is better, 
but: Menu does not brink up Frontrow 
(or do anything in fact) and Play Pause in DVD does operates iTunes. Thus I 
find it necessary to switch 
between the features of the original remote that came with this program to 
control iTunes in all applications 
and to use the Uniremote 0.1.1 to control Front Row, DVD, and Powerpoint. Would 
it be possible to integrate 
these features into 1 remote? 

Also, one thing to consider: would it be possible to program the remote to 
sense if you hold down the down 
or up button? Clicking through artists, for instance, or any long list on 
Frontrow is tedious when you have to 
click for each individual item you wish to pass. Just an idea.  

Original comment by colinrcu...@gmail.com on 7 Jul 2007 at 6:25

GoogleCodeExporter commented 8 years ago

Original comment by Neil.H...@gmail.com on 7 Jul 2007 at 6:47

GoogleCodeExporter commented 8 years ago
To avoid more confusion, here is Uniremote 0.2.2. When installing, it is 
recommended that you remove any 
previous versions of Uniremote.

This is almost identical, which has no Keynote (although I personally think 
that 0.2.1 was a good test to see 
what can be done with Keynote).

Hopefully, any Front Row activating issues are squashed with this. If you still 
have problems, restart your Mac. 
Don't just log out.
---
Regarding DVD Player Capabilities: I still have the same issues similar to 
Keynote. They method that I am 
using to determine whether Keynote (or DVD Player) is running, opens it up if 
it isn't.

If anyone knows a way to make something like [see comment 22] work without 
actually opening up Keynote, it 
should work the same way with DVD Player.
---
In regards to holding down a button: that is would be a great idea but there 
are two problems with that. One 
is the iPhone, if you hold it down it gives you the pop-up bubble. If that 
wasn't there then you would still have 
the problem that it is just a link and they only get submitted one at a time.
---

Original comment by Neil.H...@gmail.com on 7 Jul 2007 at 6:58

Attachments:

GoogleCodeExporter commented 8 years ago
ok so, i downloaded it and ti works pretty well, but, when i hit the menu 
button it just brings up quicksilver. 
which is mapped to cmd + space, and cmd + escape.  front row for me is cmd + 
f1.  

Original comment by sor...@gmail.com on 7 Jul 2007 at 8:21

GoogleCodeExporter commented 8 years ago
@sorahn
I will try and work something in where you can change the Applescript key code 
to bring up Front Row in the next version.

I have finally found a way to determine if an application is running and NOT 
have it open if it isn't. This is great news because 
this will allow Uniremote to be a lot more functional. However, I must put it 
in the AppleScript for every app that it can be 
used with.

If there was a way to basically tell the system to do the exact same function 
as a physical Apple Remote then every 
application that works with the physical Apple Remote could work with Uniremote.
---
Attached is the "semi-smart" play-pause AppleScript. Download it, and replace 
it with the one you have (in 
Uniremote.tapp/scripts/). Please try it out. It works with iTunes, Front Row, 
DVD Player (you can even select a menu item), 
and VLC. I can't get QuickTime to work. Help needed on that.

Please note, this is just the Play-Pause script. I am going to add this smart 
script to the other buttons.
---
I would like any input on two things. 1) What applications do you want this to 
work with? I definitely will cover iTunes, Front 
Row, DVD Player, and VLC.

I plan on supporting QuickTime, but it doesn't seem to work. Can someone try 
this script on their system and confirm that it 
doesn't work? If anyone wants to look at this AppleScript and see what I messed 
up on for the QuickTime part that would be 
great.

2) How should things act in these applications? Most important, do you want the 
MENU button to change functions depending 
on what app you are in? Or should it always be Front Row? For example, do you 
want the MENU button to go to the DVD 
Menu in DVD Player?

Original comment by Neil.H...@gmail.com on 8 Jul 2007 at 2:49

Attachments:

GoogleCodeExporter commented 8 years ago
Uniremote 0.2.3 is here, and is the best to date. It can be used with iTunes 
(system-wide), Front Row, Quicktime (got that working), DVD Player 
(including menu selection), Keynote, and VLC.

I still need suggestions on any other applications that you guys would like to 
see work with this. It will only work with the apps that I add to the 
Applescripts.

I also would like to think of the actions that are associated with the remote 
and applications. I really don't know what to do with the Next button on 
Quicktime. 

Try it out. Please post any bugs, suggestions, comments, requests. Thanks.

Original comment by Neil.H...@gmail.com on 8 Jul 2007 at 5:18

Attachments:

GoogleCodeExporter commented 8 years ago
For those who need to change the key combination in order to activate Front Row 
(by default it is Command-
Esc) you can do it in 0.2.3.

- Navigate to where you installed the Uniremote.tapp folder (or if you haven't 
installed it yet then just move 
skip this step)
- Open up Uniremote.tapp. Open the scripts folder. Open Menu.scpt.
- Script Editor should launch. If Keynote or VLC launch, let them start. Then 
close out of them after you are 
done.
- Scroll down, look for the two "53"s. You are going to edit the LAST 53 to 
whatever key code you need in 
combination with the command key.  (here is a list of the function keys codes: 
http://lists.apple.com/archives/applescript-studio/2003/Dec/msg00056.html )
- So for example: If you need to use Command-F1 to activate Front Row. You 
would change the last 53 in the 
script to 122.
- Save the script.
- Enjoy

Original comment by Neil.H...@gmail.com on 8 Jul 2007 at 5:57

GoogleCodeExporter commented 8 years ago
Here is Uniremote 0.2.4. This includes improved support for QuickTime, and a 
few other things.

Original comment by Neil.H...@gmail.com on 8 Jul 2007 at 5:13

Attachments:

GoogleCodeExporter commented 8 years ago
I am having the same issue even with 0.2.4: When I push play on my iPhone the 
app on my mac asks me "Where 
is Keynote?" and will not stop. I have/will never use Keynote, but I installed 
it (all 2 gigs of it) to see if this was a 
better remote. I hit play again after Ketnote was installed and the iPhone 
Remote asked me "Where is VLC.app?" 
What is VLC I asked myself, then Google. I have never heard of this media 
player, but I installed the little orange 
traffic cone to let it sit and waste 33 megabytes alongside 2 gigabytes being 
wasted by Keynote but it does work. 
It controls iTunes in all windows, but if I open DVD I can control that 
instead. The only thing I have noticed is 
that if I try to open Frontrow and I have not done it once first with the 
physical remote it will lock up my finder so 
I cannot put my computer to sleep and I need to restart, but other than that 
we're good.

Original comment by colinrcu...@gmail.com on 8 Jul 2007 at 7:24

GoogleCodeExporter commented 8 years ago
Uniremote is now 0.3.
It is by far more reliable at handling if you don't have a certain application 
installed. It also is more reliable at activating Front Row.
If you haver ever got a "Where is Application X" before, that should be all 
fixed now.
If applications have ever popped up before, that is fixed.

The only downside is that it wont accept any buttons for about 2 secs after you 
press something. Hopefully I can fix this.

Original comment by Neil.H...@gmail.com on 9 Jul 2007 at 6:01

Attachments:

GoogleCodeExporter commented 8 years ago
Frontrow won't come up, when I try to launch it it looks like Automator starts 
and then stops again (really 
quickly, for about a half a second) with the title "Start Front Row." Any idea 
what thats about?

Original comment by colinrcu...@gmail.com on 9 Jul 2007 at 4:17

GoogleCodeExporter commented 8 years ago
I used an Automator Application to activate Front Row in this version (it is 
more reliable, i guess not), and it 
seems to be causing a lot problems. I will revert back to the old way of 
emulating command esc.

Original comment by Neil.H...@gmail.com on 9 Jul 2007 at 4:21

GoogleCodeExporter commented 8 years ago
It is strange though, if I activate it with the physical remote, I can then use 
the iPhone remote to move in an out 
of menus, even back to the desktop, but the 2 second thing is a bit fustrating. 

Original comment by colinrcu...@gmail.com on 9 Jul 2007 at 4:26

GoogleCodeExporter commented 8 years ago
3.1 Fixes Front Row Activation (reverted to old method of pulling up Front 
Row). QuickTime issues have been 
fixed. (thanks jbuecker)
Nothing else really new

Original comment by Neil.H...@gmail.com on 9 Jul 2007 at 6:05

Attachments:

GoogleCodeExporter commented 8 years ago
All is well, except the 2 second click. Any ideas there? Also, bravo with the 
Now Playing App as well, if that can 
refresh clean(er) it will be amazing. 

Original comment by colinrcu...@gmail.com on 10 Jul 2007 at 4:43

GoogleCodeExporter commented 8 years ago
All new info can be found at 
http://groups.google.com/group/telekinesis-discuss/web/uniremote

Original comment by Neil.H...@gmail.com on 10 Jul 2007 at 4:27

GoogleCodeExporter commented 8 years ago
great job man.
i don't know if anyone posted this before but i wrote some applescript to
have a better control of the Front Row interface.
copy to: username/Library/Scripts

Original comment by jons...@gmail.com on 4 Oct 2007 at 6:01

Attachments:

GoogleCodeExporter commented 8 years ago
I'm not sure what you mean by "better"... The newer versions of Uniremote do a 
fairly good job of activating and 
controlling Front Row, in my opinion. Also, it isn't really the best thing to 
make un-editable things for an open 
source project. I suspect that all your are doing is issuing key codes, which 
is what Uniremote does.

Original comment by Neil.H...@gmail.com on 5 Oct 2007 at 8:02

GoogleCodeExporter commented 8 years ago
my bad Neil, i jumped the gun(I had the 0.1.1 version). you are right, i wrote 
the
scripts before updating to the latest version (which is excellent by the way) of
uniremote. i was working on 
an interface for EyeTV, but it looks like EyeTV is working on it.
Great Job Dude!

Original comment by jons...@gmail.com on 8 Oct 2007 at 10:47

GoogleCodeExporter commented 8 years ago
Thank you.

I really have no idea how well my EyeTV support is in Uniremote. I don't really 
have the adapter or w/e but I 
downloaded the software and poked around the AppleScript dictionary file for 
it. If you want to further work on 
it, please do, and if you want I can roll it into Uniremote.

Original comment by Neil.H...@gmail.com on 8 Oct 2007 at 10:58

GoogleCodeExporter commented 8 years ago
EyeTV doesn't have a library. it will be  pretty much keycodes and  process 
system
events scripting. i'll keep you up to date.

Original comment by jons...@gmail.com on 9 Oct 2007 at 2:44

GoogleCodeExporter commented 8 years ago
Oh ya, that's right.

Original comment by Neil.H...@gmail.com on 9 Oct 2007 at 2:47

GoogleCodeExporter commented 8 years ago
What's up dude?
I will upload some applescripts for EyeTV. the scripts will call for
Eyetv to be frontmost and then execute the action. the scripts are named
as to the actions to execute. I was working on an PNG Image but am eager to
see this on uniremote, so i'll take my time and upload it later this week. if
you like it use it.
keep up to good work!

Original comment by jons...@gmail.com on 10 Oct 2007 at 5:42

Attachments: