Customize your R2H

The unofficial board dedicated to ASUS R2H UMPC owners
It is currently Sat Nov 21, 2009 7:52 am

All times are UTC [ DST ]


26th Oct 09 - For urgent error, please post at our FaceBook group. Support platform will be back within 1-2 days.



Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Restore the state of integrated GPS receiver after reboot
PostPosted: Wed Jun 04, 2008 8:28 am 
Offline
Site Admin
User avatar

Joined: Tue Jun 03, 2008 9:11 am
Posts: 7
Location: Bucharest, Romania... sometimes
Hello fellow R2H owners!
I was very much annoyed that on reboot the integrated GPS receiver didn't recall the last setting, like the WIFI remains active on restart... so, I have decided to write my own application that activates and deactivates the device. I am very happy to, finally, make time for this (have the R2H for some time now) and would like to share this small tool with all of you. It is very simple to use, and can be set to run once on start-up. It acts as a command-line, with the following syntax:
Code:
   gpsCtrl.exe on|off|toggle
Everytime is being executed, it stores the last option in registry... and when executed without parameters, will read the last option "on" / "off" from registry and activates / deactivates the device accordingly. Also, for those developers out there, I am providing the full source code of this small utility.
Happy navigation!
Attachment:
GPSonR2H_WinXP.zip


You do not have the required permissions to view the files attached to this post.

_________________
Bogdan Apostol
Self Learning Solutions

Compilers demystified - Function pointers in Visual Basic 6.0
Enables the use of function pointers in VB6 and shows how to embed native code in a VB application.


Top
 Profile E-mail  
 
 Post subject: Re: Restore the state of integrated GPS receiver after reboot
PostPosted: Wed Jun 11, 2008 2:24 pm 
Offline

Joined: Wed Jun 11, 2008 2:13 pm
Posts: 1
Hi Bogdan,

Your application should be very handy if you use GPS regularly.

Would you be interested to write a tile for Windows Vista Mobility Center? You can find the sources for a sample tile here.
http://www.withinwindows.com/2007/12/21/the-first-non-oem-static-windows-mobility-center-tile/.

Dan


Top
 Profile E-mail  
 
 Post subject: Re: Restore the state of integrated GPS receiver after reboot
PostPosted: Mon Jun 16, 2008 2:50 pm 
Offline
Site Admin
User avatar

Joined: Tue Jun 03, 2008 9:11 am
Posts: 7
Location: Bucharest, Romania... sometimes
Dan Dar3 wrote:
Would you be interested to write a tile for Windows Vista Mobility Center?
Hi Dan! In the near future I don't see possible to make the available time. I can barely manage to write content on this forum, for which I have plenty of ideas. I'm hoping more people will join and contribute as well. Also, for CodeProject, at least a couple of ideas for article preparations are pending while still trying to remain active on CodeGuru.
Probably I could schedule it as one of my "pet-projects" if you really think will be useful to a number of users... anyhow, thanks a lot for the very interesting link.
Regards,

_________________
Bogdan Apostol
Self Learning Solutions

Compilers demystified - Function pointers in Visual Basic 6.0
Enables the use of function pointers in VB6 and shows how to embed native code in a VB application.


Top
 Profile E-mail  
 
 Post subject: Re: Restore the state of integrated GPS receiver after reboot
PostPosted: Tue Jun 24, 2008 7:38 pm 
Offline

Joined: Tue Jun 24, 2008 7:24 pm
Posts: 1
Thanks a lot for such nice tool I will try it with the R2E


Top
 Profile E-mail  
 
 Post subject: Re: Restore the state of integrated GPS receiver after reboot
PostPosted: Fri Oct 31, 2008 9:19 am 
Offline

Joined: Fri Oct 31, 2008 9:03 am
Posts: 1
Thanks a lot! That is just what I needed....
I have customized MS Autoroute on my R2H with AutoHotkey: I can zoom in/out, enable the GPS (MS AutoRoute setting) and replan the current route using the hardware keys on the R2H. The only problem I had, was the need to reenable the hardware GPS after a reboot. And that was just the only thing I can't safely do while driving...

Stefan.


Top
 Profile E-mail  
 
 Post subject: Re: Restore the state of integrated GPS receiver after reboot
PostPosted: Sun Nov 02, 2008 5:08 am 
Offline
Site Admin
User avatar

Joined: Tue Jun 03, 2008 9:11 am
Posts: 7
Location: Bucharest, Romania... sometimes
Stefan wrote:
Thanks a lot! That is just what I needed....
I have customized MS Autoroute on my R2H with AutoHotkey: I can zoom in/out, enable the GPS (MS AutoRoute setting) and replan the current route using the hardware keys on the R2H. The only problem I had, was the need to reenable the hardware GPS after a reboot. And that was just the only thing I can't safely do while driving...

Stefan.

You're most welcome! I have written some code for hardware keys remapping, and except the "Login" hardware button, which sends Ctrl+Alt+Delete, I could change behavior of these other 3 buttons. Unfortunatelly, my free time to complete such tasks has diminished greatly, but I think there're quite many people whom would appreciate if you'd share your customizations.
Thanks for taking the time to reply to my post. It feels good to know that was worth spending the time in creating this.

Best regards,

_________________
Bogdan Apostol
Self Learning Solutions

Compilers demystified - Function pointers in Visual Basic 6.0
Enables the use of function pointers in VB6 and shows how to embed native code in a VB application.


Top
 Profile E-mail  
 
 Post subject: Re: Restore the state of integrated GPS receiver after reboot
PostPosted: Sun Nov 23, 2008 2:21 am 
Offline

Joined: Sun Nov 23, 2008 2:11 am
Posts: 1
Many thanks for this ute!

Not being a programmer, I'd given up after attempting to work out what GPSswitch was doing, but now your program will do just what I want.

(And having the source code may help me understand what it's doing too! ;) )

Rgds, Bob


Top
 Profile E-mail  
 
 Post subject: Re: Restore the state of integrated GPS receiver after reboot
PostPosted: Sun Dec 28, 2008 9:48 pm 
Offline

Joined: Sun Dec 28, 2008 9:23 pm
Posts: 5
Hi,

Would you expect this to work on Windows Vista and/or Windows 7 as well?

Thanks! This is really something that I was looking for!


Top
 Profile E-mail  
 
 Post subject: Re: Restore the state of integrated GPS receiver after reboot
PostPosted: Fri May 29, 2009 2:00 pm 
Offline

Joined: Fri May 29, 2009 1:51 pm
Posts: 1
Hi. I tried the utility, but nothing happens. The GPS module won't show up it the Device Manager. gpsCtrl doesn't seem 2 work, neither does DEVICE_SWITCH.

Ies, i have copied the files to C:\Tools.


Top
 Profile E-mail  
 
 Post subject: Re: Restore the state of integrated GPS receiver after reboot
PostPosted: Sat Jun 13, 2009 6:38 am 
Offline

Joined: Sun Dec 28, 2008 9:23 pm
Posts: 5
If you start DEVICE_SWITCH, doesn't the programm show up?
If it does show up....and you tick the check box and start a GPS application, does the GPS work (when out doors)?

First try to get that to work. Next see if you can get it automatically to start.


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:


FREE MESSAGE BOARD Hosting by setBB. Create your Free FREE BULLETIN BOARD Hosting now!
Free CHAT and FORUM Hosting Features - FREE PHPBB HOSTING Directory Listing - FREE FORUM HOSTING Terms of Service - Free ONLINE COMMUNITY Hosting Privacy - JAPANESE FASHION ACCESSORIES
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
phpBB SEO

Portal by phpBB3 Portal © phpBB Türkiye