Recent

Author Topic: Simulate SHIFT keypess  (Read 803 times)

pcurtis

  • Hero Member
  • *****
  • Posts: 951
Simulate SHIFT keypess
« on: August 11, 2020, 07:24:03 am »
Hi All,

Does anyone know of a way to simulate pressing the SHIFT key?

I am disabled and can only use one hand, I want to make a shift lock type program.

I use Windows, but the 'sticky keys' app is too restrictive for me.

Any ideas, suggestions?

Thanks in advance.
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2

Handoko

  • Hero Member
  • *****
  • Posts: 5154
  • My goal: build my own game engine using Lazarus
Re: Simulate SHIFT keypess
« Reply #1 on: August 11, 2020, 07:31:28 am »
I'm not sure what you really want to do, need more information. But maybe MouseAndKeyInput unit is what you're looking for:

https://wiki.freepascal.org/MouseAndKeyInput

pcurtis

  • Hero Member
  • *****
  • Posts: 951
Re: Simulate SHIFT keypess
« Reply #2 on: August 11, 2020, 07:44:57 am »
So easy. Thanks.
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2

jamie

  • Hero Member
  • *****
  • Posts: 6133
Re: Simulate SHIFT keypess
« Reply #3 on: August 11, 2020, 01:00:08 pm »
they also have sticky keys in windows
The only true wisdom is knowing you know nothing

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: Simulate SHIFT keypess
« Reply #4 on: August 11, 2020, 01:54:56 pm »
they also have sticky keys in windows

Yeah, but as he said:

I use Windows, but the 'sticky keys' app is too restrictive for me.

which doesn't surprise me at all; MS thought neither much nor well when they implemented that. >:D
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

 

TinyPortal © 2005-2018