nice! thanks for sharing![]()
I've put together an AutoIT3 script to automatically start the GPS and answer the "safety warning" whenever it isn't already started. I searched before I did this and didn't see it anywhere, so I thought it might be useful to others:
Opt("WinTitleMatchMode",2)
While 1
WinWait("Microsoft Streets & Trips","")
if Not ControlCommand("Microsoft Streets & Trips","","Button39","IsChecked","") Then
ControlCommand("Microsoft Streets & Trips","","Button39","Check","")
WinWait("Safety Warning","")
ControlClick("Safety Warning","",5912)
EndIf
Sleep(5000)
WEnd
This can be compiled into an EXE file, and just run in the background. It checks once every 5 seconds and starts the GPS if necessary.
nice! thanks for sharing![]()
Dr. Ron Paul for President 2008
Hope for America - http://www.ronpaul2008.com
Who is Ron Paul? - Why do we need Ron Paul?
__________________
CarPC Newbs Start Here: All your questions answered, as if by E.S.P.
I'm a complete moron with compiling exe's, but I would like this. How do I compile it? When I do then just run it and it will stay in the background processes and continuously check right? Any idea how much CPU power this uses? Thanks in advance.
Just download and install AutoIT3, and save the script as a .au3 file. If you right click on the file, you will see an option to compile it to a .exe file (so that autoit doesn't have to be installed on the carpc). I think that the resources it uses are pretty minimal - it will just sit in the background and mostly sleep.Originally Posted by 2k1Toaster
Thankyou. I just got around to compiling it. Works well. And to answer the memory ?, it takes 3.1Mb of RAM so basically nothing.
I've been messing with this all day and its frustrating me to no end. I am trying to alter the script a bit so that it selects button39,41,44 and 45 (start GPS, rotate map, keep position centered, create gps trail) and I get some stupid error about no while command with wend. how am I supposed to add to this? I've tried everything! argh!
2005 Subaru Legacy GT, carputer in progress
Current status: Phase 1 Complete: working in car with no bugs, Phase II started, screen out of dash, making working mockup for beta testing
I used a line of sendkey button commands to do that...but I have to press a button. It went something like this.
B01,0,343,135,68,"ACTIVATE;Microsoft Streets & Trips||SENDKEY;%TGS%TGM%TGA","GPS On"
I'm not if sure you can execute a RR command upon loading a skin. I didn't get a chance to play with AutoIT3 yet. Sounds interesting.
Colossians 1:16 - Everything
I have not had the time to mess with this yet but do you think that this may be something that you can apply via registry?
For example, if u turnon the gps, the trailing function, and maybe some other functions, is there a change in the registry?
I am going to take a snapshot of my registry, turn on gps and some of the other options, then take another "after" snapshot of the registry... afterwards, i will compare the two "S&T" related hives and see if there are differences....
if this is the case, then you can create a batch file that does two things: launches streets and trips and immediately after launch, you can apply the .reg registry keys with a regedit /s (i believe) command...
i will let you know know next week how this works. my carputer is a mess right now. lol.
- 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-in-the-box.html
Cost so far: Less than a grand ;]
_________________
Economy/Commuter cars + Computers = many entertained miles
For Gps autostart, and rotate map, keep position Centered:
// Cut here
Opt("WinTitleMatchMode",2)
While 1
WinWait("Microsoft Streets & Trips","")
if Not ControlCommand("Microsoft Streets & Trips","","Button39","IsChecked","") Then
ControlCommand("Microsoft Streets & Trips","","Button39","Check","")
WinWait("Safety Warning","")
ControlClick("Safety Warning","",5912)
EndIf
Sleep(2500)
if Not ControlCommand("Microsoft Streets & Trips","","Button41", "IsChecked","") Then
ControlCommand("Microsoft Streets & Trips","","Button41","Check","")
EndIf
If Not ControlCommand("Microsoft Streets & Trips","","Button44", "IsChecked","") Then
ControlCommand("Microsoft Streets & Trips","","Button44","Check","")
Endif
Sleep(5000)
WEnd
//End Cut here
That will do it...., however you will not be able to turn that stuff off, with out closing the script, as ever 5 seconds it will check
Bookmarks