Hi Jim, it is not clear to me if you want to write a windows application or a console application.
In the 1st case, you mostly use the OnKeyDown/OnKeyUp and OnMouseMove/OnMouseDown/OnMouseUp events of the form. For the 2nd case, you could find useful infos here (originally for Delphi): http://stackoverflow.com/questions/5845080/how-i-can-implement-a-iskeypressed-function-in-a-delphi-console-application You may find this free library helpful: http://sourceforge.net/projects/graphics32 HTH Duilio 2014/1/26 JIMB <[email protected]>: > Hi, > > New to the group so a bit a of history.. > > > > I am returning to Pascal after a long absence, I used to do mainly Pascal > and Delphi amongst others but the only languages used professionally were > GPSSH (Wolverine) and Assembler. > > > > > > Years ago, I wrote a program in Borland TP7 that created a graphic screen > and the user controlled activity with mouse and or key board. > > > > I “may” have written a bit of assembler to grab mouse functions but that was > on a relatively primitive PC (Win 95??) > > > > I need to do this again but cannot remember the code that grabbed the key > press or mouse click. > > > > I am running Lazarus under Windows 7 > > > > Can anyone give a bit of help/advice? > > > > Best wishes, > > > > Jim > > > -- > _______________________________________________ > Lazarus mailing list > [email protected] > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
