keyhit???

BlitzPlus Forums/BlitzPlus Programming/keyhit???

How do I use
.cmd
case keyhit(28)
execfile(custlocat)


First, if you use "case" then you need a "Select" and "End Select", but IMO I would use "If" and "EndIf".
If KeyHit(28)=True Then
     ExecFile(custlocat)
EndIf


Thanks!!!

that didn't work...

If Keyhit (28) Execfile (whatever.whatever)


Where is the problem?

I need a working script... I am not sure how to get it to loop and stuff.

While Not KeyHit(1)
;DO CODE AND SUCH
;...
;...
If KeyHit(28) Then ExecFile(blah)
Wend
End