Announcement

Collapse
No announcement yet.

Printer Script

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

    Printer Script

    Using the windows printer api calls there must be a way to write a script that will turn on a X10 module when a job 1st gets posted to the print que and maybe it could poll the print que so that some time after the last job posted it would turn off this module.

    Any ideas ????


    #2
    printer polling help

    It's coded in C but unless some of the data structures are just crazy w/pointers, you should be able to code it in VB or another language. You'll have to code this to a DLL and call it as needed. The problem IMO is that this code has to poll. What you'd probably like is something that could hook into the print queue. Check here on some info for doing hook procs. SetWindowsHookEx

    Good luck! You'll probably need it!

    Comment

    Working...
    X