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.

;get user input
Key37 = keydown( 37 )
MD1 = mousedown(1)

if Key37 PROC_dothisfunction
if MD1 PROC_doanotherfunction

To force a keypress just put Key37 = true or MD1 = true after the user input and before the functions are called.

Stevie