Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The program only wants to run once . . .
#1
Sad 
The program only ever works once. Then one have to delete the exe file, otherwise it will always just show "unknown". Even deleting the program and using a different name didn't help. Does anyone know what could be wrong? Thanks!

I think I've had a similar case before, but I can't remember how I solved the problem.

Code: (Select All)

'Codenummer der gedrueckten Taste ermitteln - 30. Juli 2024

Option _Explicit

Dim As Integer x

Print "Taste"
_Delay 2

x = _KeyHit
If x = 32 Then
  Print "Leertaste "; x
ElseIf x = 27 Then
  Print "Esc-Taste "; x
Else
  Print "Unbekannt"
End If

End

[Image: Funktioniert-nur-einmal.jpg]
Reply


Messages In This Thread
The program only wants to run once . . . - by Kernelpanic - 07-30-2024, 06:05 PM



Users browsing this thread: 16 Guest(s)