Recent

Author Topic: Cannot find MouseAndKeyInput  (Read 2278 times)

tobiastromm

  • Newbie
  • Posts: 4
Cannot find MouseAndKeyInput
« on: June 23, 2021, 02:52:16 pm »
Hi.

I am trying to use MouseAndKeyInput.

When I try to run mouseandkeyinput\example I get "unit1.pas(43,3) Fatal: Cannot find MouseAndKeyInput used by Unit1 of the Project Inspector".

Can someone help me here?

I am using Lazarus Version: 2.0.12 on Windows.

What I found about:

https://wiki.freepascal.org/MouseAndKeyInput
https://forum.lazarus.freepascal.org/index.php?topic=35383.0

winni

  • Hero Member
  • *****
  • Posts: 2485
Re: Cannot find MouseAndKeyInput
« Reply #1 on: June 23, 2021, 04:51:06 pm »
Hi!

First you have to install the package:

Package -->Open Package File -->
lazarus/components/mouseandkeyinput/lazmouseandkeyinput.lpk


Winni


wp

  • Hero Member
  • *****
  • Posts: 8555
Re: Cannot find MouseAndKeyInput
« Reply #2 on: June 23, 2021, 05:10:32 pm »
This is a runtime package, you cannot "install" it. Just load the lpk file which winni mentioned once into Lazarus ("Package" > "Open package file") so that the IDE knows where the package is. Then the example project should work (the IDE should know it by default, BTW).
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

tobiastromm

  • Newbie
  • Posts: 4
Re: Cannot find MouseAndKeyInput
« Reply #3 on: June 23, 2021, 06:55:04 pm »
Well.

Tha's exactly what I do, but it still not work.

Something must be wrong with the one that comes with Lazurus.

I found this one now https://forum.lazarus.freepascal.org/index.php?topic=35383.0 - > https://forum.lazarus.freepascal.org/index.php?action=dlattach;topic=35383.0;attach=17503 and its working.

Maybe someone can check and fix the one that is being distributed.

Thanks.

wp

  • Hero Member
  • *****
  • Posts: 8555
Re: Cannot find MouseAndKeyInput
« Reply #4 on: June 23, 2021, 07:27:17 pm »
Nothing's to be fixed in the distribution since your other source contains the same files (except for a change in the license address of each file). Something is wrong in your setup, but it's hard to tell from the distance.
« Last Edit: June 23, 2021, 07:47:49 pm by wp »
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

 

TinyPortal © 2005-2018