View Single Post
Old 08-09-2007, 01:58 AM   #85
Fenris_Ulf
Newbie
 
Join Date: Aug 2007
Posts: 3
I've been working on getting S&T 2006 working and this was just the ticket! I don't really need anything except GPS location and moving map in the full window. If I need directions or a location, I'll pull over and get out the mouse and keyboard and manipulate the program.

Here's the AutoIT3 code I'm using with the RoadRunner MediaCar skin:

Opt("WinTitleMatchMode",2)
if Not ProcessExists("Streets.exe") Then
Run("Streets.exe", "C:\Program Files\Microsoft Streets & Trips")
Else
WinActivate("Microsoft Streets & Trips")
EndIf
WinWait("Microsoft Streets & Trips","")
Sleep(2000)
Send("^a")
Sleep(1000)
if Not ControlCommand("Microsoft Streets & Trips","","Button39","IsChecked","") Then
ControlCommand("Microsoft Streets & Trips","Configure GPS...","Button39","Check","")
EndIf
Sleep(7000)
if Not ControlCommand("Microsoft Streets & Trips","","Button41","IsChecked","") Then
ControlCommand("Microsoft Streets & Trips","","Button41","Check","")
EndIf
Sleep(3000)
if Not ControlCommand("Microsoft Streets & Trips","","Button42","IsChecked","") Then
ControlCommand("Microsoft Streets & Trips","","Button42","Check","")
EndIf
Sleep(1000)
ControlCommand("Microsoft Streets & Trips","","Button8","Check","")
WinClose("GPS Sensor")

/END CODE

This checks to see if S&T is running and opens up it if it isn't. If it is already running, it moves it on top. It then opens the GPS tracking window, checks the boxes (with time delays to allow the GPS to initiate and sync), closes the GPS tab and the GPS Sensor window. It works REALLY well and allows the GPS to run in the background so it comes up instantly once loaded.

Here's a zip of the compiled .exe
Attached Files
File Type: zip gpsstart.zip (196.9 KB, 12 views)
Fenris_Ulf is offline   Reply With Quote