Shop OBEX P1 Docs P2 Docs Learn Events
Interesting use for a BASIC Stamp & StampPlot. — Parallax Forums

Interesting use for a BASIC Stamp & StampPlot.

Martin HebelMartin Hebel Posts: 1,239
edited 2006-12-06 16:44 in BASIC Stamp

My family plays an on-line game, though I won't say which one or we might get busted for this, but one character type requires frequent repetitive keystrokes for an attack,1 2 1 2 1 2....,·which leads to aching hands and wrists.

I set up a StampPlot Macro to initiate the game:
!APPE c:\program files\game\game.exe

Then I set up a BASIC Stamp and a photoresistor in an RC network. When the sensor is darkened it initiates sending data to the started game application:

DEBUG "!APPS 1",CR ' send keystroke of 1 to application
pause 100
DEBUG "!APPS 2",CR ' send keystroke of 2 to application
pause 500

So, when ready to attack, simply darken the sensor. And of course the above repeats the entire time darkened.· devil.gif

-Martin·

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Martin Hebel
StampPlot - Graphical Data Acquisition and Control
AppBee -·2.4GHz Wireless Adapters & transceivers·for the BASIC Stamp & Other controllers·

Comments

Sign In or Register to comment.