i'll make a script right now
I just got back from cleaning my car for mazda (at 10pm lol)
Here's the thread where you can talk about the new scripting system. I will answer to all your questions, and then i'll take theses Q/A to make a little FAQ.
I think the system is allready very powerful, but some function can be missing, so you can request at any script function and i will see how i can do it![]()
NS - neocar suite
-----------------
http://www.neocarmediacenter.com
i'll make a script right now
I just got back from cleaning my car for mazda (at 10pm lol)
CarPC Status:
GPS: 99%
Hardware: 99%
Software: 92%
Case Install: 99.9%
Dash Install: 100%
Car Install: 72%
Ok i lied lol i've gotta sleep but im bit confused how i get a script to run?
where do i add it to a button click or a launch of the module?
CarPC Status:
GPS: 99%
Hardware: 99%
Software: 92%
Case Install: 99.9%
Dash Install: 100%
Car Install: 72%
take a look in other_scripts.zip in install folder (just extract to scripts subfolder). You'll find a custom button action example.
You just have to place it in scripts folder (or any subfolder) and call the "SCRIPTS_FUNCTION" action in your button's action in NPC.
NS - neocar suite
-----------------
http://www.neocarmediacenter.com
I've got a question
Is it possible to get info outside NMC?
was thinking of making a script to mute or turn the volume down for 3 seconds when destinator says a vocal direction
would be handy for GPS guys who are use to this feature in RR/Frodo etc
CarPC Status:
GPS: 99%
Hardware: 99%
Software: 92%
Case Install: 99.9%
Dash Install: 100%
Car Install: 72%
i wil very soon attempt to port my tracker to NCS!for that I will need however, to obtain GPS info from FreeDrive...
so when u add freedrive, if you can add a way for us to obtain lat, lon, speed, etc from FD it would be great! '
(FYI, my tracker is a small application I had made that inerfaced with MM and sent my location through a PHP script that logged it on a server and I could see a realtime (or not) tracking of my movements at any time)
For now you can't get infos outside NMC, but for the 0.7 Final i'll add a function to request SDK calls trough NCS. So you'll be able to call any other application from the scripts![]()
NS - neocar suite
-----------------
http://www.neocarmediacenter.com
Netsuo can I have some more examples? I'm getting NMC crashes all the time with Error 1025 Expected End of Statement...
Code:'INFORMATIONS '///////////// NAME=Example custom ACTION for buttons AUTHOR=netsuo DATE=2005.04.19 08:15:00 DESCRIPTION=Purpose of this test is to show you how you can make a custom action for you buttons EXECUTE=FUNCTION:BUTTON_TEST '-> ' FUNCTION:XXX : XXX is your function's name. While setting this, never executed but added to the actions list. You can then access this function using buttons actions in skin.xml (Example: <ACTION>SCRIPTS_FUNCTION;your_function_name</ACTION>) ' NMC_START : executed while starting NMC, after loading skin and config ' NMC_CLOSE : executed while stopping NMC ' MODULE_START:XXX : executed on start of desired module (where XXX is one of the following: ALL/APPLICATIONS/VIDEO/AUDIO/PHOTOS/FILELIST/MAIN) ' MODULE_CLOSE:XXX : executed on start of desired module (where XXX is one of the following: ALL/APPLICATIONS/VIDEO/AUDIO/PHOTOS/FILELIST/MAIN) ' TRACK_START:XXX : executed when track starts playing (where XXX is one of the following: APPLICATIONS/VIDEO/AUDIO/PHOTOS) ' TRACK_END:XXX : excuted when track ends (where XXX is one of the following: APPLICATIONS/VIDEO/AUDIO) ' TIMER : executed in a timer with "100" msec interval '//////// ' IMPORTANT NOTE : you can combine EXECUTE events by adding a "|" seperator. Example: MODULE_CLOSE:AUDIO|MODULE_START:AUDIO 'START CUSTOM SCRIPT '/////////////////// '-> here between "START" and "END" you can enter any VBScript code. (see NCS reference for objects available) NCS_START for i = 1 to 10 i = i + 1 next i MsgBox i NCS_END
!!! Remember !!!
Its VBSCRIPT: "next i" IS NOT supported. But "next" alone, yes.
For i = 0 To 10
i = i+1
Next
And that's all.. Visual Basic <> VBScript![]()
NS - neocar suite
-----------------
http://www.neocarmediacenter.com
damn..... thats what i was fearing...
(not for this next, of course but for other bigger incompatibilities when trying to make scripts)
other question, if I do "Dim My varCounter" in a TIMER NCS, will it be erased at each time the timer is run, or will it remain counting (say if I am incrementing this variable to do an action only every 10 seconds)
Bookmarks