keyhit???

BlitzPlus Forums/BlitzPlus Programming/keyhit???

arget brisingr(Posted 2007) [#1]
How do I use
.cmd
case keyhit(28)
execfile(custlocat)



Ked(Posted 2007) [#2]
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



arget brisingr(Posted 2007) [#3]
Thanks!!!


arget brisingr(Posted 2007) [#4]
that didn't work...


Abrexxes(Posted 2007) [#5]
If Keyhit (28) Execfile (whatever.whatever)


Where is the problem?


arget brisingr(Posted 2007) [#6]
I need a working script... I am not sure how to get it to loop and stuff.


Ked(Posted 2007) [#7]
While Not KeyHit(1)
;DO CODE AND SUCH
;...
;...
If KeyHit(28) Then ExecFile(blah)
Wend
End