Results 1 to 3 of 3

Thread: Command line parameters ? How ? Help ?

  1. #1
    Maximum Bitrate SAScooby's Avatar
    Join Date
    Feb 2004
    Location
    Johannesburg, South Africa
    Posts
    533

    Command line parameters ? How ? Help ?

    Hi all

    My GPS application doesnt automatically wake up the gps until I select GPS from the menu and then GPS on/off

    Both of these commands are ALT-G and ALT-G again, how do I send these to the application on startup of the application, I have tried pressing ALT-G when creating the shortcut details in Frodoplayer, doesnt help, is there a way to do this ? or not ? at the moment I use the Powermate with a long click as ALT-G and a short click as ALT-G in the gps app (the gps app is based on the PaPaGo GPS and is called Handymap) but thats a waste of the powermates capabilities, do I need some wizard to create an .exe or service running that does this ? or is there some funny command I can enter to achieve this that I dont know about ?

    Cheers
    Nano ITX / 512 MB / 60 GB / Panasonic slot load / M1-ATX / Bu303 / Sound blaster 24 / PPi amps / rockford sub

    FS = MTSVO motorised in dash screen pm me for details

  2. #2
    Raw Wave RoyN's Avatar
    Join Date
    Sep 2004
    Location
    São Paulo, Brazil
    Posts
    3,534
    if you know vb or some other language you can easily make an app that runs your app and sends those keys....

  3. #3
    Newbie
    Join Date
    Jan 2004
    Location
    St. Louis
    Posts
    34
    I would use batch file of some sort in your startup folder that opens your GPS and then sends the keyboard strokes you want using windows scripting host.

    Code:
    Set WshShell = WScript.CreateObject("WScript.Shell")
    WshShell.Run "<path to your gps program .exe>"
    WshShell.AppActivate "<the name of your gps program as it reads in the title bar>"
    WshShell.SendKeys "%G"
    Wscript.Sleep 2500
    WshShell.SendKeys "%G"
    Here's an example using your current Internet Explorer window (if that's what you're using to browse this forum Copy the next set of code into a notepad and save it as test.vbs somewhere on your hard drive. Then just double click it. Note, IE has to be open and not minimized.

    Code:
    Set WshShell = WScript.CreateObject("WScript.Shell")
    WshShell.AppActivate "Microsoft Internet Explorer"
    WshShell.SendKeys "%D"
    WshShell.SendKeys "Hello World.  See me dork with the window"
    WScript.Sleep 3000
    WshShell.SendKeys "{F11}"
    Wscript.Sleep 1000
    WshShell.SendKeys "{F11}"
    WshShell.SendKeys "{ESC}"
    WshShell.SendKeys "%D"
    WshShell.SendKeys "I am done for now"
    Wscript.Sleep 3000
    WshShell.SendKeys "{ESC}"

Similar Threads

  1. Command Line Parameters?
    By kiltjim in forum Software & Software Development
    Replies: 8
    Last Post: 03-29-2004, 04:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •