| View previous topic :: View next topic |
| Author |
Message |
MikeG
Joined: 23 Apr 2004 Posts: 34 Location: Adelaide, South Australia
|
Posted: Mon Feb 14, 2005 3:53 am Post subject: Detecting buttons on Canon scanner |
|
|
Does anyone know how I can use a script to detect pressing the buttons on the front of my scanner? (Canon LIDE30)
I have tried to find the scan codes using the method described in the help with no luck. I've tried both with the Canon software installed and not installed. The Canon software responds to them fine but it's not configurable enough to do what I want. |
|
| Back to top |
|
 |
ranomore
Joined: 06 Nov 2004 Posts: 178 Location: Salt Lake City, UT
|
Posted: Mon Feb 14, 2005 4:17 am Post subject: |
|
|
it might be easier to help if you could post what code you have so far... Then we don't have to start from scratch! |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Mon Feb 14, 2005 4:27 am Post subject: |
|
|
| I think people are confused when we talk about scancodes and the immense versatility of AutoHotkey. It is not possible at all to detect such buttons using this language. They are hardwired and usually require a special driver. AutoHotkey is meant for keyboards and mice, and there are even some keys it can't detect (i.e. on multimedia keyboards). You're simply asking too much of it. |
|
| Back to top |
|
 |
Watcher
Joined: 27 Dec 2004 Posts: 60
|
Posted: Mon Feb 14, 2005 4:58 am Post subject: |
|
|
| Although jonny is exactly right what he said is NOT to say that those buttons can not be manipulated by AHK, simply that AHK has no way to know how without more information or a driver. |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Mon Feb 14, 2005 6:34 am Post subject: |
|
|
| Of course. In a lower level language (like the one the drivers were undoubtedly written in), I'm sure it's possible. AutoHotkey's just about as high-level as you can get, though, except for those novelty beginner sets like Leopard. |
|
| Back to top |
|
 |
Mats Guest
|
Posted: Mon Feb 14, 2005 7:21 am Post subject: |
|
|
| As jonny said, you will most likely not be able to detect the keys themselves, but maybe you can "force" your driver software to show some unique reaction (like popping up a window, showing some text, etc.) that can be detected and handled by AHK...? |
|
| Back to top |
|
 |
|