B4J Question Simulate Key Press? (Send Key)

ilan

Expert
Licensed User
Longtime User
hi

is it possible with b4j to simulate a keyboard press outside the app. so if i press on a button in my app a virtual key press is simulated like if would have pressed the physical keyboard?

so the app should perform key presses even if it is not focused and the keypress should appear in whatever app is focused like notepad. is it possible?

thanx, ilan
 

Roycefer

Well-Known Member
Licensed User
Longtime User
Holding a key down is just a failure to release the key in a timely fashion. You can have as long a delay as you want in between the press and release.

Note that the RobotDelay function is a blocking function.
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
Upvote 0
Top