Lazarus

Programming => General => Topic started by: tobiastromm on June 23, 2021, 02:52:16 pm

Title: Cannot find MouseAndKeyInput
Post by: tobiastromm 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
Title: Re: Cannot find MouseAndKeyInput
Post by: winni 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

Title: Re: Cannot find MouseAndKeyInput
Post by: wp 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).
Title: Re: Cannot find MouseAndKeyInput
Post by: tobiastromm 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.
Title: Re: Cannot find MouseAndKeyInput
Post by: wp 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.
TinyPortal © 2005-2018