Simulating a key press or mouse button press

Blitz3D Forums/Blitz3D Beginners Area/Simulating a key press or mouse button press

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi all

Is it possible to simulate a key press or mouse button press?

I have a number of procedures which are called by appropriate key presses or mouse button presses

e.g if keydown(37) then PROC_dothisfunction
if mousedown(1) the PROC_doanotherfunction

For various reasons i won't go into (but not least of which is that I've cocked up my programming logic in a program) I need to "trick" Blitz 3D into thinking I have performed the above presses when in fact I have not physically done so.

Thanks in advance