Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: need simple software driver, any help?

  1. #1
    Constant Bitrate chuckctv's Avatar
    Join Date
    Aug 2004
    Location
    Virginia
    Posts
    187

    Exclamation need simple software driver, any help?

    I know time is money, And although im expertise is electronics, mechanical, computers in general, I can only program in basic, and visual basic... I do not know how to write a driver....

    I need a simple driver/background program that will set the computer to go into suspend mode if not touched ONLY when the joystick button(usb joystick) goes HIGH..

    this way ill hook it up to the acc line of vehicle. when vehicle is running (suspend mode is off),... when vehicle is turned off then suspend mode is set to 20 minutes ( this way if you leave vehcile it goes into suspend mode in 20 minutes after inactivity, yet if your still using the computer the 20 min count down starts once you dont touch anything)...

    it should be no more then a 10 line code program, and I can make it, but I dont want it to just set their on the screen, i rather it be a driver and be down by the clock only, maybe with a time delay that I can set...


    if anybody can help id would apprecite it.

    thanks

    chuck

  2. #2
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    Why don't you just make a service or a non visible program ?
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

  3. #3
    Map Monkey Creator Ninja Monkey's Avatar
    Join Date
    Aug 2003
    Location
    Warrington, UK
    Posts
    1,012
    So you want something that waits for a joystick button to be pressed and then begins a 20 minute inactivity countdown before going into standby?

    Should the countdown only occur as long as the joystick button is high? (and stop once it is low) Or would it just need to detect a single press of the button before starting (and then maybe another press of the button to stop it)?

  4. #4
    Constant Bitrate chuckctv's Avatar
    Join Date
    Aug 2004
    Location
    Virginia
    Posts
    187
    * if joystk(high) then run {countdown timer to suspend}
    else if joystk(low) then stop {countdown timer}

    countdown timer:
    set timer = 20 min (to suspend)
    if anyinput detected {then restart timer} : "mouse movement/keyboard input"

    if timer reaches (0) then restart timer &{enter suspend mode}


    **last line i believe is important, if you forget to reset timer before suspend, then upon reboot timerprogram will be active until it notices joystk(low), and might re enter suspend since timer still set to 0. Especially if I start computer yet vehicle is still off.

    and yes if the vehicle restarts prior to suspend then stop timer all together...

  5. #5
    Constant Bitrate chuckctv's Avatar
    Join Date
    Aug 2004
    Location
    Virginia
    Posts
    187
    if i could right click on program icon and change timer minutes default, that might be helpful, but not a big deal... I could forsee possible reasons to temperaly change on occasion..

    chuck

  6. #6
    Map Monkey Creator Ninja Monkey's Avatar
    Join Date
    Aug 2003
    Location
    Warrington, UK
    Posts
    1,012
    Ok, try this

    http://homepage.ntlworld.com/shaunjo...s/JoyWatch.zip

    You didn't mention what OS you were using - to make life easier I used a few API calls to get the system idle time which are only available in 2K and XP...so it won't work in 9x/ME

    Also, I couldn't do much testing with the button presses because I don't have a joystick available, so let me know how it goes

  7. #7
    Constant Bitrate chuckctv's Avatar
    Join Date
    Aug 2004
    Location
    Virginia
    Posts
    187
    The system right now is win-ME, although it runs super fast this way, i think iwill soon be going to win2k, unless ifind the bugs are not OS-dependent. I am truly sorry i did not mention os, i assumed the type of program would not matter...

    chuck

  8. #8
    Constant Bitrate chuckctv's Avatar
    Join Date
    Aug 2004
    Location
    Virginia
    Posts
    187
    I trye it out, it worked great under win-me..... THANK YOU SOOOO MUCH... this is exactly what i needed and more. I just dont know how to thank you......

    if anything let me know, you should post it,because this will help so many people once they realize its potential...

    chuck

  9. #9
    Constant Bitrate chuckctv's Avatar
    Join Date
    Aug 2004
    Location
    Virginia
    Posts
    187
    opps, wrong, it works great except not under WINME, would it be difficult to change for ME??? iknow im asking lot, and if not Ill hold it until I decide to change/if to win2k... Ihad my laptop that im on now, iran it on it. winxp. I went and loaded on carpc system and got runtime error when I pressed button... but it did work perfect under XP...

    Chuck

  10. #10
    Map Monkey Creator Ninja Monkey's Avatar
    Join Date
    Aug 2003
    Location
    Warrington, UK
    Posts
    1,012
    Ok, this version should work under 9x

    http://homepage.ntlworld.com/shaunjo...JoyWatch9x.zip

Page 1 of 2 12 LastLast

Similar Threads

  1. Software solution for gLCD-based car-mp3
    By Novgorod in forum Software & Software Development
    Replies: 1
    Last Post: 07-01-2004, 07:59 PM
  2. myHTPC Software
    By the_new_guy in forum Software & Software Development
    Replies: 1
    Last Post: 06-05-2004, 03:51 PM
  3. USB Sound Card with ASIO driver and volume control
    By tbdombrosky in forum General Hardware Discussion
    Replies: 0
    Last Post: 02-03-2003, 11:00 PM
  4. simple e-mail software
    By felix99 in forum Software & Software Development
    Replies: 3
    Last Post: 09-21-2002, 04:29 PM
  5. My numpad controlled custom MP3Car software - need your opinions
    By PorscheMP3 in forum Software & Software Development
    Replies: 7
    Last Post: 04-11-2002, 10:30 AM

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
  •