The MP3car.com Store The MP3car.com Blog    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > GPS

Reply
 
LinkBack Thread Tools Display Modes
Old 06-01-2006, 11:01 AM   #1
Variable Bitrate
 
breaker021's Avatar
 
Join Date: Apr 2005
Location: Midtown Manhattan
Posts: 398
Script to Automatically press F3 when off course - Streets and Trips 2006

Hey,
Streets and Trips only reroutes your course when you press the f3 key. I have been working on a script that will:

1) launch streets and trips
2) wait 45 seconds until you've already entered your starting + end points and have already started driving
3) when the 40 seconds have expired, the script will automatically reroute every 40 seconds by sending the F3 keys.

just note - if you are running streets and trips 2006 with my script, then are using another front end or mp3 player or watching a movie, my script automatically brings streets and trips back up and presses the reroute button!

This is the script so far. THE SCRIPT IS NOT COMPLETE YET! I will tweak it this weekend when I have access to my car + gps reciever.

At least you guys can see what i've been working on:

Streets and Trips 2006.vbs
-------------------------

:: Script by sh00k for mp3car.com
:: May 31, 2006

:: This script fixes the annoying problem with microsoft streets and trips 2006
:: When you go offroute, you have to manually press the F3 key to have it recalculate the route.

:: This script does the following: 1) Launches Streets and trips, 2) Waits 45 seconds for you to
:: set your start and destination addresses and then once you are on your way, it presses the F3
:: (reroute) button every 40 seconds.

:: Problems with the script: no way to exit the script (without going to task manager), script is set to a finite (5,000) loop so hopefully this covers the legnth of your trip! ;]



:: Launch Streets and Trips 2006
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "c:\program files\microsoft streets & trips\streets.exe", 9

:: Waits 40 seconds until you have set your starting (optional) and destination addresses.
WScript.Sleep 5000

:: This is what will press the F3 key every 40 seconds.
for x = 1 to 5000
WScript.Sleep 10000
wshShell.AppActivate("Microsoft Streets & Trips")
wshShell.SendKeys "{F3}"
next x
__________________________________________________ ___________

If anyone can add to it or has comments before the weekend, great. it's a simple script that is very functional. you may even say it rocks your socks.

I am using a tablet laptop and it's annoying as **** to keep opening the onscreen keyboard and pressing the F3 button when i go off course. this way, it automatically reroutes itself. It aint the perfect solution but it's a solution regardless.
- sh00k
__________________
Duct tape and a Bandana for the win, b!shes!!!

My Setup:http://www.mp3car.com/vbulletin/show-off-your-project/73500-06-scion-xb-tablet-box.html

Cost so far: Less than a grand ;]



_________________
Economy/Commuter cars + Computers = many entertained miles

Last edited by breaker021; 06-01-2006 at 12:00 PM.
breaker021 is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 06-01-2006, 11:18 AM   #2
MySQL Error
 
Sonicxtacy02's Avatar
 
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 5,136
wow you must REALLY like streets and trips lol
__________________
03 Acura RSX Coupe
a K.I.S.S Flash, VB, and Autoit Programmer
Developer of: RRFusion, MovieTimes, (new)RRMail, & RR Plugin Manager
Coming Soon:RRChrome, & CentraFusion
Is Your RR Plugin Managed?
Sonicxtacy02 is offline   Reply With Quote
Old 06-01-2006, 11:44 AM   #3
Variable Bitrate
 
breaker021's Avatar
 
Join Date: Apr 2005
Location: Midtown Manhattan
Posts: 398
l0l - It's just the only navigation software I have on hand right now. I've used it on a couple of trips and really had no problem with it so I've been using it... Someone told me to try iguidance. I'll do that when I get some time 8-)
- sh00k
__________________
Duct tape and a Bandana for the win, b!shes!!!

My Setup:http://www.mp3car.com/vbulletin/showthread.php?t=73500

Cost so far: Less than a grand ;]



_________________
Economy/Commuter cars + Computers = many entertained miles
breaker021 is offline   Reply With Quote
Old 06-01-2006, 11:53 AM   #4
MySQL Error
 
Sonicxtacy02's Avatar
 
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 5,136
i understand. i started off with streets and there gps receiver. But yes i'd recommend tryin iguidance. You'll never go back

I did test ya script and it seems to be working just fine with streets 06
__________________
03 Acura RSX Coupe
a K.I.S.S Flash, VB, and Autoit Programmer
Developer of: RRFusion, MovieTimes, (new)RRMail, & RR Plugin Manager
Coming Soon:RRChrome, & CentraFusion
Is Your RR Plugin Managed?
Sonicxtacy02 is offline   Reply With Quote
Old 06-01-2006, 06:46 PM   #5
Newbie
 
Join Date: Jun 2006
Posts: 19
I use Autoroute 2006 (same but for Europe) I use the program AutoHotKeys, to automatically start tracking GPS and Acknowledge the warning and to center the view after the program starts. The best part is the program is free. You can have it record keystrokes and then play them back as an .exe file. Works flawlessly, once you understand how it works
jhart is offline   Reply With Quote
Old 06-01-2006, 07:08 PM   #6
Maximum Bitrate
 
Marvin Hlavac's Avatar
 
Join Date: May 2005
Location: Toronto, Canada
Posts: 842
breaker021, the "automated-F3" script is a nice idea in theory, but I suspect once you try it in real life you will abandon it. I think the first annoyance will likely be the voice direction prompts you may be getting each 40 seconds. But even that aside, I think even bigger obstacle in implementing properly functional automatic recalculation in S&T, or AutoRoute, or MapPoint, is that these applications don't take into consideration the direction of your travel when doing route recalculation (F3). Other, more advanced applications (iGuidance for example), do consider which direction you are going when calculating a route.

We may need to leave this one to the good guys at Microsoft. Hopefully they will work on this feature for version 2007.
Marvin Hlavac is offline   Reply With Quote
Old 06-02-2006, 10:20 AM   #7
Variable Bitrate
 
breaker021's Avatar
 
Join Date: Apr 2005
Location: Midtown Manhattan
Posts: 398
Thanks for the insight, Marvin. I'm actually on my way to obtaining iGuidance right now... I hope I can have it by this weekend so I can test it out!
- sh00k
__________________
Duct tape and a Bandana for the win, b!shes!!!

My Setup:http://www.mp3car.com/vbulletin/showthread.php?t=73500

Cost so far: Less than a grand ;]



_________________
Economy/Commuter cars + Computers = many entertained miles
breaker021 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
Brushed Metal Streets and Trips 2006 skin Mattkins99 Road Runner 147 11-08-2008 12:21 AM
Software Review: Streeets and Trips 2006 Mattkins99 The Review Palace 24 11-14-2006 02:47 PM
Streets and Trips 2006? I don't see ne diff from MP '04 ITL GPS 4 11-19-2005 03:32 PM
Streets and Trips 2006 released!!! Mattkins99 Road Runner 13 10-20-2005 05:30 PM
VOICE + MS Streets & Trips 2006, MS AutoRoute 2006 Marvin Hlavac GPS 6 09-29-2005 06:50 PM


All times are GMT -5. The time now is 03:20 AM.


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