. - General Discussion and Assistance - CHDK Forum

.

  • 3 Replies
  • 856 Views
.
« on: 18 / November / 2022, 01:56:47 »
Advertisements
.
« Last Edit: 25 / November / 2022, 09:36:40 by Rotomen0 »

*

Offline Caefix

  • *****
  • 948
  • Sorry, busy deleting test shots...
Re: keystroke injection
« Reply #1 on: 18 / November / 2022, 09:53:06 »
 ;)... chdkptp - alternative ptp client  :)?
https://chdk.setepontos.com/index.php?topic=6231.0

Needs https://zadig.akeo.ie to prepare.
All lifetime is a loan from eternity.

*

Offline December172

  • *
  • 34
  • A student interested in the Canon P&S hack
Re: keystroke injection
« Reply #2 on: 18 / November / 2022, 21:40:02 »
;)... chdkptp - alternative ptp client  :)?
https://chdk.setepontos.com/index.php?topic=6231.0

Needs https://zadig.akeo.ie to prepare.

Can we use camera to send pressed keys to chdkptp ? (Don't use scripts,because might send keys when shooting)
Canon PowerShot ELPH 180 (IXUS 175).
(Seems most of you are older than me.... Anyone teen? )

*

Offline reyalp

  • ******
  • 14125
Re: keystroke injection
« Reply #3 on: 18 / November / 2022, 23:20:54 »
i wonder if it is possible to somehow make so when you plug the camera in by usb, it tells the computer that its a keyboard so you can inject keystrokes... Would be quite useful. Is this technically possible? or would a lot of reverse-engineering be necessary.
If you mean have the camera act as a USB HID keyboard that would require writing a full HID stack to run on the camera,  which would in turn require reverse engineering the low level parts of the camera USB stack. While it may be theoretically possible, it would almost certainly be a huge amount of work.

Can we use camera to send pressed keys to chdkptp ? (Don't use scripts,because might send keys when shooting)
You would need to use a script. In that case, you could use use the USB message interface to send messages to chdkptp, and a script on the chdkptp side to act based on the received messages.

You could of course modify CHDK to generate messages while a script was not running, but I wouldn't consider including that in the official version without a really compelling use case.
Don't forget what the H stands for.

 

SimplePortal © 2008-2014, SimplePortal