Announcement

Collapse
No announcement yet.

need simple software driver, any help?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    www.XionElectronics.com

    **MY NEW STORE** Come Visit

  • #2
    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!

    Comment


    • #3
      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)?
      Destinator 3 For PC! - http://www.map-monkey.co.uk/

      Comment


      • #4
        * 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...
        www.XionElectronics.com

        **MY NEW STORE** Come Visit

        Comment


        • #5
          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
          www.XionElectronics.com

          **MY NEW STORE** Come Visit

          Comment


          • #6
            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
            Destinator 3 For PC! - http://www.map-monkey.co.uk/

            Comment


            • #7
              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
              www.XionElectronics.com

              **MY NEW STORE** Come Visit

              Comment


              • #8
                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
                www.XionElectronics.com

                **MY NEW STORE** Come Visit

                Comment


                • #9
                  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
                  www.XionElectronics.com

                  **MY NEW STORE** Come Visit

                  Comment


                  • #10
                    Ok, this version should work under 9x

                    http://homepage.ntlworld.com/shaunjo...JoyWatch9x.zip
                    Destinator 3 For PC! - http://www.map-monkey.co.uk/

                    Comment


                    • #11
                      It works, but when I press the button to activete , I get this error box...


                      Joystandby-ErROR

                      run-time error'453':

                      Cant find DLL entry point GetLastInputInfo in user32.dll



                      **If I need something,let me know... I have VBrun installed...

                      Chuck
                      www.XionElectronics.com

                      **MY NEW STORE** Come Visit

                      Comment


                      • #12
                        oops! try downloading the 9x version again
                        Destinator 3 For PC! - http://www.map-monkey.co.uk/

                        Comment


                        • #13
                          sorry so long getting back... It works great... you aare my best FOrun friend.


                          chuck

                          anything I can do let me know....?
                          www.XionElectronics.com

                          **MY NEW STORE** Come Visit

                          Comment


                          • #14
                            hey ninja monkey, you still around here?

                            chuck
                            www.XionElectronics.com

                            **MY NEW STORE** Come Visit

                            Comment

                            Working...
                            X