Page 7 of 8 FirstFirst 12345678 LastLast
Results 61 to 70 of 72

Thread: Send front end commands to ICE3

  1. #61
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,359
    Blog Entries
    2
    Hmmm. Does ICE3 use iTunes to playback? Or maybe Quicktime? If it uses either of those, you should be able to send the command to either iTunes or Quicktime and tell them to go to the next song.
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

  2. #62
    Variable Bitrate VmtSquad's Avatar
    Join Date
    May 2007
    Location
    Montréal, Quebec, Canada
    Posts
    283
    ^^Humm, its not really documented..or maybe I missed it!! If you're right, then I might need to go ahead and redo my script...

    I'll go check, if you find something let me know!
    VmtSquad - I sold my soul to Honda!
    Final Install
    CarPC progress: 95%

  3. #63
    Newbie
    Join Date
    Sep 2009
    Posts
    31
    Its a great job (but i dont use keyboard, only touchscreen :'( )

    Honestly, GREAT JOB!

  4. #64
    Variable Bitrate VmtSquad's Avatar
    Join Date
    May 2007
    Location
    Montréal, Quebec, Canada
    Posts
    283
    ^^I understand. I would only use Touch Screen if ICE3 had the GPS integration...

    Thats the main reason I did this and I wanted to had the OEM NAVI look to my car another way to FOOL anybody that gets into my car and realize it's not the ACURA system!!

    Thanks Chencho!!
    VmtSquad - I sold my soul to Honda!
    Final Install
    CarPC progress: 95%

  5. #65
    Newbie
    Join Date
    May 2010
    Location
    Nashville, TN USA
    Posts
    25
    Quote Originally Posted by VmtSquad View Post
    t only takes an original idea, but it needs to be taken seriously. Thats why I'm trying to take some free time to learn Cocoa. I may even go back to school to finish my diploma since I have a C++ course left to do lol I guess it's a good timing.

    As for the lack of support, I'll probably have a Mac in all my Cars so there's no reason I won't offer support. If I eventually start coding, I'll surely need some help and some advice.
    )
    Hey VmtSquad,
    I am just entering this world of CarPCs and have always been a Mac guy (even as an IT guy in Microsoft world). I am behind you in your efforts if you decide to start programming your own new front end.

    I have been extensively playing around with ICE3 before I commit to installing a system in my car. It led me to this thread and it is exactly what I am working on (controlling ICE3 through scripting).

    I'll be posting some more as I get caught up

    Thanks for sharing everything so far!

  6. #66
    Variable Bitrate VmtSquad's Avatar
    Join Date
    May 2007
    Location
    Montréal, Quebec, Canada
    Posts
    283
    ^^If you have some experience into coding it would be helpfull, I did some reading about COCOA and it seems pretty simple, but I'm an IT guy not a programmer...so it's always harder to start something new....

    I posted a source request on ICE3, maybe we could get the source and start from there since I really like how ICE3 works....

    I'll let you know whats going on...and let us know if you find anything regarding sending ICE3 some commands.... I'm currently trying to find a better way since my script are no longer effective when I come back from Hibernate...

    It looks like ICE3 loose some caracteristics....or something - my scripts sending some commands to MAC OS are working fine though
    VmtSquad - I sold my soul to Honda!
    Final Install
    CarPC progress: 95%

  7. #67
    Variable Bitrate VmtSquad's Avatar
    Join Date
    May 2007
    Location
    Montréal, Quebec, Canada
    Posts
    283
    Quote Originally Posted by Bugbyte View Post
    Hmmm. Does ICE3 use iTunes to playback? Or maybe Quicktime? If it uses either of those, you should be able to send the command to either iTunes or Quicktime and tell them to go to the next song.
    I was hopping your were right since my scripts are based on what UIElementInspector tells me.

    When I ask MAC OSX to tell me which buttons are in the panel with that script:
    Code:
    	tell application "System Events"
    		tell process "ICE³" to return name of every button of group 1 of window 1
    	end tell
    As soon as I come back from Hibernation, this command returns NOTHING!! Really strange!

    Anybody got an idea ???
    VmtSquad - I sold my soul to Honda!
    Final Install
    CarPC progress: 95%

  8. #68
    Newbie
    Join Date
    May 2010
    Location
    Nashville, TN USA
    Posts
    25
    Quote Originally Posted by VmtSquad View Post
    ^^If you have some experience into coding it would be helpfull, I did some reading about COCOA and it seems pretty simple, but I'm an IT guy not a programmer...so it's always harder to start something new....

    I posted a source request on ICE3, maybe we could get the source and start from there since I really like how ICE3 works....

    I'll let you know whats going on...and let us know if you find anything regarding sending ICE3 some commands.... I'm currently trying to find a better way since my script are no longer effective when I come back from Hibernate...

    It looks like ICE3 loose some caracteristics....or something - my scripts sending some commands to MAC OS are working fine though
    I am in the same boat as you, just an IT guy and not a programmer. I have dabbled in Applescript over the years, but I have no COCOA experience.

    I read all your calls for the source code to ICE3 and I am with you on that. Seems like the developer had good intensions to turn it over when he was done, but has moved on and forgot to turn over the code.

    After trying all your scripts and some of my own, I am getting inconsistent results too. It does seem like ICE3 stops responding to any scripting. If I use the keyboard mapping chart PDF and my keyboard while ICE3 is frontmost, it responds great. Even if you use Applescriting to mimic this behavior, just issuing key codes, it responds better, but not as expected. Until I found this utility called KeyCode

    Example: I set out to use BluePhone to route all my phone calls through my Mac mini's speaker & external microphone. This all works great, except trying to get BluePhone to run an Applescript to pause whatever is happening in ICE3. Below I have my Applescript that should be able to pause whatever is going on in ICE3.

    NOTE: I think that the key codes change depending on what keyboard you have and you should not trust that my script below will work on your system. Please use the KeyCode utility to check your system before using.

    Code:
    tell application "System Events"
    	tell application "ICE³" to activate
    	key code 53
    	key code 51
    	key code 0
    	key code 49
    end tell
    Let me know how this works for you!

  9. #69
    Newbie
    Join Date
    May 2010
    Location
    Nashville, TN USA
    Posts
    25
    Quote Originally Posted by VmtSquad View Post
    ^^If you have some experience into coding it would be helpfull, I did some reading about COCOA and it seems pretty simple, but I'm an IT guy not a programmer...so it's always harder to start something new....

    I posted a source request on ICE3, maybe we could get the source and start from there since I really like how ICE3 works....

    I'll let you know whats going on...and let us know if you find anything regarding sending ICE3 some commands.... I'm currently trying to find a better way since my script are no longer effective when I come back from Hibernate...

    It looks like ICE3 loose some caracteristics....or something - my scripts sending some commands to MAC OS are working fine though
    I am in the same boat as you, just an IT guy and not a programmer. I have dabbled in Applescript over the years, but I have no COCOA experience.

    I read all your calls for the source code to ICE3 and I am with you on that. Seems like the developer had good intensions to turn it over when he was done, but has moved on and forgot to turn over the code.

    After trying all your scripts and some of my own, I am getting inconsistent results too. It does seem like ICE3 stops responding to any scripting. If I use the ICE3 keyboard mapping chart PDF and my keyboard while ICE3 is frontmost, it responds great. Even if you use Applescriting to mimic this behavior, just issuing keystrokes, it responds better, but not as expected.

    Example: I set out to use BluePhone to route all my phone calls through my Mac mini's speaker & external microphone. This all works great, except trying to get BluePhone to run an Applescript to pause whatever is happening in ICE3. I was getting very frustrated with Applescript trying to send the right commands to ICE3 and ICE3 just putting the computer to sleep! Then I found a utility called KeyCode! I noticed that the codes I had been using for keyboard functions were wrong! Now everything seems to be working good!

    Here I have my Applescript that should be able to pause whatever is going on in ICE3.
    NOTE: The key codes that worked for me may not work for you. Double-check with KeyCode before you try my code.

    Code:
    tell application "System Events"
    	tell application "ICE³" to activate
    	key code 53
    	key code 51
    	key code 0
    	key code 49
    end tell
    I will post my full set of scripts once I have them all worked out. Please reply back if anyone has any questions or problems with it.

  10. #70
    Newbie
    Join Date
    May 2010
    Location
    Nashville, TN USA
    Posts
    25
    Quote Originally Posted by VmtSquad View Post
    ^^If you have some experience into coding it would be helpfull, I did some reading about COCOA and it seems pretty simple, but I'm an IT guy not a programmer...so it's always harder to start something new....

    I posted a source request on ICE3, maybe we could get the source and start from there since I really like how ICE3 works....

    I'll let you know whats going on...and let us know if you find anything regarding sending ICE3 some commands.... I'm currently trying to find a better way since my script are no longer effective when I come back from Hibernate...

    It looks like ICE3 loose some caracteristics....or something - my scripts sending some commands to MAC OS are working fine though
    I am in the same boat as you, just an IT guy and not a programmer. I have dabbled in Applescript over the years, but I have no COCOA experience.

    I read all your calls for the source code to ICE3 and I am with you on that. Seems like the developer had good intensions to turn it over when he was done, but has moved on and forgot to turn over the code.

    After trying all your scripts and some of my own, I am getting inconsistent results too. It does seem like ICE3 stops responding to any scripting. If I use the ICE3 keyboard mapping chart PDF and my keyboard while ICE3 is frontmost, it responds great. Even if you use Applescriting to mimic this behavior, just issuing keystrokes, it responds better, but not as expected.

    Example: I set out to use BluePhone to route all my phone calls through my Mac mini's speaker & external microphone. This all works great, except trying to get BluePhone to run an Applescript to pause whatever is happening in ICE3 for an incoming call. I tried to switch my Applescript to send KEY CODEs instead of keystrokes, but ICE3 would just put the computer to sleep every time. Then I found a utility called KeyCode. So using KeyCode, I noticed that the key codes I was sending were wrong! So after correcting them everything worked as expected!

    Here I have my Applescript that should be able to pause whatever is going on in ICE3.
    NOTE: Please double-check that the key codes in my script match your system by using the KeyCode utility.
    Code:
    if appIsRunning("ICE³") then
    	tell application "System Events"
    		tell application "ICE³" to activate
    		key code 53
    		key code 51
    		key code 14
    		key code 0
    		key code 49
    	end tell
    end if
    
    on appIsRunning(appName)
    	tell application "System Events" to (name of processes) contains appName
    end appIsRunning
    Please let me know if you have any questions, and if this does or doesn't work for you.

    More to come later!

Page 7 of 8 FirstFirst 12345678 LastLast

Similar Threads

  1. My Own front end - from the ground up
    By Greeno2k8 in forum Software & Software Development
    Replies: 32
    Last Post: 01-01-2010, 08:48 PM
  2. Centrafuse, TPMS 2.1.0.9 and Vista
    By WuNgUn in forum TPMS Technical Support
    Replies: 14
    Last Post: 08-26-2009, 03:57 PM
  3. Infill G4 front end
    By joey4 in forum Software & Software Development
    Replies: 0
    Last Post: 05-27-2009, 11:38 AM
  4. Replies: 0
    Last Post: 07-16-2008, 12:07 AM
  5. BASIC Stamp question
    By Banderon in forum General Hardware Discussion
    Replies: 18
    Last Post: 05-07-2004, 09:33 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •