|
 |
|
08-30-2008, 03:31 PM
|
#1
|
|
One Sharp Cheddar
Join Date: Aug 2006
Location: West Allis, WI
Posts: 1,558
|
Garmin Mobile PC OSK and More - RELEASE
OK here it is the moment we have all been waiting for.
THE GARMIN MOBILE PC OSK
It works with command line input
There are TWO versions,
FULL FEATURED AND SLOW or SIMPLE SENDKEY AND FAST AS LIGHTNING.
To send the character "K" to Garmin the command line would be
GarminSendKey.exe K
It will send any "autoit compatible" send key command to garmin.
Download both and compare they pretty much operate the same just the fast one is simple and to the point but fast as can be. The featured version is slower but has a few extra bells and whistles.
Both are pretty solid and work well.
Last edited by ThunderStick; 09-01-2008 at 10:29 AM.
|
|
|
|
|
|
Advertisement
|
Sponsored links
|
08-30-2008, 03:32 PM
|
#2
|
|
One Sharp Cheddar
Join Date: Aug 2006
Location: West Allis, WI
Posts: 1,558
|
This is more of a sendkey program, and can be adapated for use with any skin in any front end.
|
|
|
08-30-2008, 04:38 PM
|
#3
|
|
Wants to make it harder
Join Date: May 2007
Location: Lakehood, CO
Posts: 1,414
|
Nice, thank you for this, now I might just have to go out and buy the program. I was saving my pennies for IG 2009, but it doesn't seem to be worth 2x the price of GMPC... This was a major issue holding me back from it.
|
|
|
08-30-2008, 05:06 PM
|
#4
|
|
Newbie
Join Date: Oct 2005
Location: Liverpool
Posts: 44
|
Subscribed and downloaded.
Will give this a try tomorrow and let you know how it goes in my setup.
__________________
BMW E46 (year 2000)
CARPC installed and working!!
|
|
|
08-31-2008, 09:12 AM
|
#5
|
|
Variable Bitrate
Join Date: Oct 2007
Posts: 377
|
subscribed
|
|
|
08-31-2008, 07:48 PM
|
#6
|
|
Newbie
Join Date: Aug 2008
Posts: 18
|
So, has anyone put together an OSK skin to use this with?
|
|
|
08-31-2008, 08:47 PM
|
#7
|
|
Wants to make it harder
Join Date: May 2007
Location: Lakehood, CO
Posts: 1,414
|
here's what I threw together:
The OSK is a little slow since it has to run the script for each and every letter, but it works. If there was a way to speed it up a little bit, or create a buffer of commands, that would be nice.
I have my screen set up so that the "garmin rr" in the top left activates and deactivates the keyboard, and the "back" exits back to RR.
EDIT: Slight tweak to the OSK.
Last edited by monkeyracer; 08-31-2008 at 10:12 PM.
|
|
|
08-31-2008, 09:53 PM
|
#8
|
|
Super Moderator
Join Date: Sep 2005
Location: West Palm Beach, Florida
Posts: 3,745
|
Quote: Originally Posted by monkeyracer 
If there was a way to speed it up a little bit, or create a buffer of commands, that would be nice.
Very Nice! I have a way you can really speed it up if you want. Just add a "receiver" to the script, so it is always running and "listening" for commands. You can start the script when you press the OSK button and close it when you hit enter.
In the script you then simply use CASE statements in a loop:
Here is the basic script to start with:
Code:
#include <misc.au3>
$hwnd_rec = GUICreate('GarminOSK')
GUIRegisterMsg(0x004A, '_GUIRegisterMsgProc')
While 1
Switch String($OSKCommand )
Case "a"
[Your command here to send a to Garmin]
Case "b"
[Your command here to send b to Garmin]
Case "c"
[Your command here to send c to Garmin]
Case "find"
[Your code to find the text box in garmin]
Case "enter"
[Send Enter to Garmin]
Exit
EndSwitch
WEnd
Func _GUIRegisterMsgProc($hWnd, $MsgID, $WParam, $LParam)
If $MsgID = 0x004A Then
$vs_cds = DllStructCreate("ptr;dword;ptr", $LParam)
$vs_msg = DllStructCreate('char[' & DllStructGetData($vs_cds, 2) + 1 & ']', DllStructGetData($vs_cds, 3))
$recd_msg = DllStructGetData($vs_msg, 1)
$recd_msg = StringLeft($recd_msg, DllStructGetData($vs_cds, 2))
$OSKCommand = $recd_msg
EndIf
EndFunc
Then, on the RR button use:
"SENDMSG;GarminOSK;a"
to send an "a" to the script.
So it is not always running, when you press ENTER on the OSK, send the command to Garmin, and then close the script.
I used this type of script for my screen lock in the DFX skin, and the key presses are instant.
Last edited by JohnWPB; 08-31-2008 at 10:47 PM.
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
08-31-2008, 10:13 PM
|
#9
|
|
Wants to make it harder
Join Date: May 2007
Location: Lakehood, CO
Posts: 1,414
|
Looks like there will be an update to this pretty quick then...
|
|
|
08-31-2008, 10:52 PM
|
#10
|
|
Super Moderator
Join Date: Sep 2005
Location: West Palm Beach, Florida
Posts: 3,745
|
Hmmm thinking about this a bit more.... there may be an even easier way to simplify the code.. Look for enter, esc and what not, and if its not a "special" command or key, then just send what was received to Garmin.
Last edited by JohnWPB; 09-02-2008 at 09:00 AM.
|
|
|
09-01-2008, 09:48 AM
|
#11
|
|
Newbie
Join Date: Jul 2006
Posts: 16
|
looks promising great work!!!
i need help embedding this into bmv2 skin any help appreciated!!
thanks
__________________
2006 TOYOTA COROLLA XRS
EEEPC 701
Windows XP Pro
RoadRunner
freefone 1.4 Alpha
Bluetooth Handsfree utility
Garmin Mobile PC
Bybyte Double-Din LCD Frame 629 LCDFR629
Directed DMHD-1000 HDRADIO
|
|
|
09-01-2008, 10:24 AM
|
#12
|
|
One Sharp Cheddar
Join Date: Aug 2006
Location: West Allis, WI
Posts: 1,558
|
OK, I sped this thing up to damn near instant. It went from about 20 lines of code down to TWO.
No find feature, doesnt need it.
No voice features, NOT NEEDED either.
simple send key that is all. BUT FAST
Jimmy Johns Fast..
There is probably about a .05 sec delay from button press to key typed in text box.
RR doesnt respond to button presses that fast so I dont think this script being any more speedier matters.
Plus it will work with any Front end that can run an external commandline program.
Download from first post.
The big difference here was how the command was handled.
before the program did mulitple things before it would send a command.
First it would Check if RR was running - who cares if it is,
Next check for garmin if it is running - Not necessary because if it wasnt you wouldnt use this,
Next Activate the garmin window - Obsolete idea for send key usage. Instead of using a send function I used controlsend which sends the key directly to garmin no matter if it is active or not.
But the biggest improvement was taking out all the mumbling in between with the find command. I had a command line flag that would operate a mouseclick in to the text box. No longer necessary with the control send command. If you loose focus from the text box simply get focus again by touching it. You would have to do this if using a normal keyboard or even a regular OSK. FIND COMMAND - garbaged
Anyway give this a shot and tell me what you think. It is definitely a lot faster.
|
|
|
09-01-2008, 11:02 AM
|
#13
|
|
Wants to make it harder
Join Date: May 2007
Location: Lakehood, CO
Posts: 1,414
|
the new fast version is just that. A lot more like what you'd expect from an OSK.
|
|
|
09-01-2008, 04:36 PM
|
#14
|
|
One Sharp Cheddar
Join Date: Aug 2006
Location: West Allis, WI
Posts: 1,558
|
Quote: Originally Posted by veiloctane 
looks promising great work!!!
i need help embedding this into bmv2 skin any help appreciated!!
thanks
This is a very simple script, read the instructions....
|
|
|
09-01-2008, 06:04 PM
|
#15
|
|
Raw Wave
Join Date: Sep 2006
Location: War-Town, GA.
Posts: 1,915
|
Last edited by treetop777; 09-01-2008 at 06:11 PM.
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:54 PM.
| |