Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > MacCar > ICE3


Reply
 
Share Thread Tools Display Modes
Old 10-21-2009, 01:39 PM   #1
Constant Bitrate
 
VmtSquad's Avatar
 
Join Date: May 2007
Location: Montréal, Quebec, Canada
Posts: 192
VmtSquad is an unknown quantity at this point
Send front end commands to ICE3

Hi guys,

I'm posting a New thread about the ICE3 commands.

I was wondering if you guys or creator would like to share the commands it uses to change screens (cube like). The point is, I hacked up a PS3 alike USB controller with some OEM buttons in my car.

I now need to link each buttons to a ICE3 command but I can't seems to find what the creator used.



Here's an example:
MAP/GUIDE = switch to space 3 (where Fusion run iGuidance in full screen) OK
MENU = switch to the ICE3 HOME (need the command)
SETUP-INFO = Setup would switch to the settings page; Info don't know yet lol
ZOOM = I will probably use this into iGuidance...will have to check if possible to reroute command to VMFUSION
CANCEL = back to previous screen; if possible
AUDIO = switch to audio ICE3 screen
CENTER = will be right,left,up & down (act like arrows or mouse)

I hope to get some help on this even the forum seems empty even if the creator as showed up some life sign couple weeks ago

FYI I'm using Controller Mate to customize the commands from the USB controller. Really easy to use and pretty useful.
__________________
VmtSquad - I sold my soul to Honda!
Final Install
CarPC progress: 95%
VmtSquad is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 10-21-2009, 02:54 PM   #2
Constant Bitrate
 
onepuff's Avatar
 
Join Date: Jan 2006
Posts: 181
onepuff is on a distinguished road
I think keyboard commands are coming in the next version(hopefully soon). For now you might only be able to switch between Spaces and control iGuidance
onepuff is offline   Reply With Quote
Old 10-21-2009, 03:36 PM   #3
Admin. Don't bug or I'll byte.
 
Bugbyte's Avatar
 
Join Date: Sep 2004
Location: Corning, NY
Posts: 6,143
Bugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to behold
Hmmm....isn't there a way you can call the software buttons onscreen if you only know their name? I thought you could use gui scripting and there was an inspector tool you could run that would tell you the name of the object (button) on the screen.

Using applescript, you could issue a command to that button.

It might be better to wait for keyboard commands but that is one way to do it.
__________________
Want to:
-Find out about the iBug?
-Stop being a newbie? Take a look at the FAQ Emporium?
-Find out about carPC's in just 5 minutes? View the Car PC 101 video
-Help me kill my car PC
-Watch live video streams from my mobile PC? Check it out here.
-Where is the iBug?
Bugbyte is offline   Reply With Quote
Old 10-21-2009, 03:39 PM   #4
Constant Bitrate
 
onepuff's Avatar
 
Join Date: Jan 2006
Posts: 181
onepuff is on a distinguished road
Sounds interesting. That would work for me too since my TS glass is broken. Is that something in Xcode bugbyte?
onepuff is offline   Reply With Quote
Old 10-23-2009, 12:39 AM   #5
Constant Bitrate
 
VmtSquad's Avatar
 
Join Date: May 2007
Location: Montréal, Quebec, Canada
Posts: 192
VmtSquad is an unknown quantity at this point
Quote: Originally Posted by Bugbyte View Post
Hmmm....isn't there a way you can call the software buttons onscreen if you only know their name? I thought you could use gui scripting and there was an inspector tool you could run that would tell you the name of the object (button) on the screen.

Using applescript, you could issue a command to that button.

It might be better to wait for keyboard commands but that is one way to do it.

Remember the name of that inspector tool ??

If the creator would chime in...it would all comes together for good
__________________
VmtSquad - I sold my soul to Honda!
Final Install
CarPC progress: 95%
VmtSquad is offline   Reply With Quote
Old 10-29-2009, 08:58 AM   #6
Admin. Don't bug or I'll byte.
 
Bugbyte's Avatar
 
Join Date: Sep 2004
Location: Corning, NY
Posts: 6,143
Bugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to behold
Here is a nice tutorial on how to UI script. And here is where you can get the UI element inspector tool.

Also, you can probably poke around inside the ICE3 app using XCODE and the interface builder to determine the names of some of the buttons.
__________________
Want to:
-Find out about the iBug?
-Stop being a newbie? Take a look at the FAQ Emporium?
-Find out about carPC's in just 5 minutes? View the Car PC 101 video
-Help me kill my car PC
-Watch live video streams from my mobile PC? Check it out here.
-Where is the iBug?
Bugbyte is offline   Reply With Quote
Old 10-29-2009, 01:43 PM   #7
Constant Bitrate
 
VmtSquad's Avatar
 
Join Date: May 2007
Location: Montréal, Quebec, Canada
Posts: 192
VmtSquad is an unknown quantity at this point
^^WOW thanks BugByte, as usual always have some great answers/solution for US. I'll work my way arround with this. It's really simple to use I may have to WRITE on this forum about this, it will simply revolutionate the MacCar frontEnd lol

FYI: I did poke inside ICE3 and I got all commands I needed in 2 minutes lol...this tool is simply AWESOME. Now I need to script this and assign some commands to those codes...and finally assign that command to my hackedup USB controller

This post made my day thanks again! will keep u guys updated!
__________________
VmtSquad - I sold my soul to Honda!
Final Install
CarPC progress: 95%
VmtSquad is offline   Reply With Quote
Old 10-29-2009, 03:29 PM   #8
Constant Bitrate
 
VmtSquad's Avatar
 
Join Date: May 2007
Location: Montréal, Quebec, Canada
Posts: 192
VmtSquad is an unknown quantity at this point
UI Element Inspector

OK! I was so Happy that I took some time to analyse this. I have some good knowledge into scripting and this is the most basic scriptin I did to this date (except GUI VB lol)

Here's how I did:

1) Get the command needed; AUDIO CoverFlow
- Use UI Element Inspector and point your mouse over the button
- Freeze the UI Element Inspector to copy and paste the description into a file
- Analyse the description
AUDIO (coverflow)

<AXApplication: “ICE³”>
<AXWindow: “”>
<AXGroup>

<AXButton: “Coverflow View”>

Attributes:
AXRole: “AXButton
AXRoleDescription: “button”
AXHelp: “(null)”
AXEnabled: “1”
AXFocused (W): “0”
AXParent: “<AXGroup>”
AXWindow: “<AXWindow: “”>”
AXTopLevelUIElement: “<AXWindow: “”>”
AXPosition: “x=-3 y=478”
AXSize: “w=170 h=250”
AXTitle: “Coverflow View”

Actions:
AXPress - press


- Use the usefull information from that command to create a script...
- Open script EDITOR and type this
Code:
tell application "System Events" tell process "ICE³" click button "CoverFlow View" of group 1 of window 1 end tell end tell

I pasted all useufull info in BOLD so that you guys understand well where does the command come from...Coming from that, you just need to adjust the button and where the button is located. I'll create a simple file that will state all buttons script so that everybody could use this easily without having to use UI Element Inspector!!!

Hope this will help other people

THANKS AGAIN BugByte, ur a king!!
__________________
VmtSquad - I sold my soul to Honda!
Final Install
CarPC progress: 95%
VmtSquad is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 10-29-2009, 11:25 PM   #9
Admin. Don't bug or I'll byte.
 
Bugbyte's Avatar
 
Join Date: Sep 2004
Location: Corning, NY
Posts: 6,143
Bugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to behold
I always had problems figuring out the group 1 window 1 thing. How did you know that was what they were?

Also, I suppose I can use these scripts to trigger key sequences on my powermate? That would be pretty choice!
__________________
Want to:
-Find out about the iBug?
-Stop being a newbie? Take a look at the FAQ Emporium?
-Find out about carPC's in just 5 minutes? View the Car PC 101 video
-Help me kill my car PC
-Watch live video streams from my mobile PC? Check it out here.
-Where is the iBug?
Bugbyte is offline   Reply With Quote
Old 10-30-2009, 12:14 AM   #10
Constant Bitrate
 
VmtSquad's Avatar
 
Join Date: May 2007
Location: Montréal, Quebec, Canada
Posts: 192
VmtSquad is an unknown quantity at this point
^^I simply looked at the code the button was giving me..
If you take a look at the exemple I posted

Code:
<AXApplication: “ICE³”> <AXWindow: “”> <AXGroup> <AXButton: “Coverflow View”>

This is all You need or this is the most important part!!

If I show you the same code that way...

Code:
<AXApplication: “ICE³”> <AXWindow: “”> (Window 1) <AXGroup> (Group 1) <AXButton: “Coverflow View”>

Code:
click button "CoverFlow View" of group 1 of window 1

SYNTAX
click button is the action
CoverFlow View is the name of the AXButton
of window 1 - <AXWindow: “”>
of group 1 - <AXGroup>


I'm creating the database of all commands of the program and will post it soon.

For instance the HOME command isnt the same at every screen..

I saw
Code:
<AXWindow: “”> (Window 1) <AXGroup> (Group 1) <AXSheet> (Group 1)

In the end it's pretty simple. You save the script and it gets called buy whatever you wan't; a button or a USB Remote like the PowerMate that I always wanted to use but never find a good place so I can keep the car lookin OEM

I'll keep you guys updated
__________________
VmtSquad - I sold my soul to Honda!
Final Install
CarPC progress: 95%

Last edited by VmtSquad; 10-30-2009 at 12:18 AM.
VmtSquad is offline   Reply With Quote
Old 10-30-2009, 12:01 PM   #11
Constant Bitrate
 
VmtSquad's Avatar
 
Join Date: May 2007
Location: Montréal, Quebec, Canada
Posts: 192
VmtSquad is an unknown quantity at this point
Here's a little script I did this morning so it could check if ICE3 is opened. That way it doesn't send an error message if the apps is not loaded.
Code:
if appIsRunning("ICE³") then tell application "System Events" tell process "ICE³" click button "Preferences" of group 1 of window 1 end tell end tell end if on appIsRunning(appName) tell application "System Events" to return name of every process contains appName end appIsRunning

I'm now looking to include some verification to check on which screen ICE3 is on, so we can launch the right script at the right time

Never been so happy to do some scripting
__________________
VmtSquad - I sold my soul to Honda!
Final Install
CarPC progress: 95%
VmtSquad is offline   Reply With Quote
Old 10-30-2009, 02:56 PM   #12
Admin. Don't bug or I'll byte.
 
Bugbyte's Avatar
 
Join Date: Sep 2004
Location: Corning, NY
Posts: 6,143
Bugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to behold
So, how about setting one of the commands to hide ICE3 and display the Fusion/Parallels screen running the nav program. Hitting it again would swap them back. Voila! Integrated nav!
__________________
Want to:
-Find out about the iBug?
-Stop being a newbie? Take a look at the FAQ Emporium?
-Find out about carPC's in just 5 minutes? View the Car PC 101 video
-Help me kill my car PC
-Watch live video streams from my mobile PC? Check it out here.
-Where is the iBug?
Bugbyte is offline   Reply With Quote
Old 10-30-2009, 02:59 PM   #13
Constant Bitrate
 
onepuff's Avatar
 
Join Date: Jan 2006
Posts: 181
onepuff is on a distinguished road
Awesome! Can't wait to get this mapped out to my Wiimote.
onepuff is offline   Reply With Quote
Old 10-30-2009, 03:10 PM   #14
Constant Bitrate
 
VmtSquad's Avatar
 
Join Date: May 2007
Location: Montréal, Quebec, Canada
Posts: 192
VmtSquad is an unknown quantity at this point
Quote: Originally Posted by Bugbyte View Post
So, how about setting one of the commands to hide ICE3 and display the Fusion/Parallels screen running the nav program. Hitting it again would swap them back. Voila! Integrated nav!

I'm working on it guys, it's pretty simple but I'm doing some other stuff at the same time.

I see 2 possibilty for this:

1- Assign space 1 to ICE3, Assign space 2 to VMFusion(full screen)
- If button press and space = 1 switch to space = 2
- else if switch to space 1 VOILA!

2- Execute command+tab
If button press
if application active = VMWARE switch to aplication ICE3
else if switch to VMWARE
end if

I'll see along the road which will be easier or best to use we're close to NAVI Integration boys!!!

Lets put some work into that!!! I need some red bull LOL
__________________
VmtSquad - I sold my soul to Honda!
Final Install
CarPC progress: 95%
VmtSquad is offline   Reply With Quote
Old 10-30-2009, 04:48 PM   #15
Constant Bitrate
 
VmtSquad's Avatar
 
Join Date: May 2007
Location: Montréal, Quebec, Canada
Posts: 192
VmtSquad is an unknown quantity at this point
Here's the script that checks the current SPACE ur on and then switch to the one you want...It's pretty simple, now I need to implement all those scripts into one apps More fun to come !!!!
Code:
(*CHECKS WHICH SPACE YOUR ON*) set xxVar to 0 tell application "System Events" tell process "SystemUIServer" set xVar to value of attribute "AXChildren" of menu bar 1 set cVar to count of xVar repeat with iVar from 1 to cVar set zVar to value of attribute "AXDescription" of item iVar of xVar try if zVar = "spaces menu extra" then set xxVar to iVar exit repeat end if end try end repeat end tell end tell if xxVar = 0 then display dialog "Spaces Menu Extra not installed" else tell application "System Events" tell process "SystemUIServer" set theCurrentSpace to value of menu bar item xxVar of menu bar 1 end tell end tell end if (*Variable theCurrentSpace returns the SPACE UR ON*) (*Switch to the space you like*) if theCurrentSpace = "1" then tell application "System Events" tell process "Finder" keystroke "2" using command down (*assign COMMAND+# to switch space in spaces properties*) end tell end tell else tell application "System Events" tell process "Finder" keystroke "1" using command down (*assign COMMAND+# to switch space in spaces properties*) end tell end tell end if

__________________
VmtSquad - I sold my soul to Honda!
Final Install
CarPC progress: 95%
VmtSquad is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Centrafuse, TPMS 2.1.0.9 and Vista WuNgUn TPMS Technical Support 14 08-26-2009 03:57 PM
Infill G4 front end joey4 Software & Software Development 0 05-27-2009 11:38 AM
My Own front end - from the ground up Greeno2k8 Software & Software Development 30 09-02-2008 05:51 PM
Q's about making Plugins work with Front End software strifepeddler Newbie 0 07-16-2008 12:07 AM
BASIC Stamp question Banderon General Hardware Discussion 18 05-07-2004 09:33 AM



All times are GMT -5. The time now is 11:52 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics