Installera Steam
logga in
|
språk
简体中文 (förenklad kinesiska)
繁體中文 (traditionell kinesiska)
日本語 (japanska)
한국어 (koreanska)
ไทย (thailändska)
Български (bulgariska)
Čeština (tjeckiska)
Dansk (danska)
Deutsch (tyska)
English (engelska)
Español - España (Spanska - Spanien)
Español - Latinoamérica (Spanska - Latinamerika)
Ελληνικά (grekiska)
Français (franska)
Italiano (italienska)
Bahasa Indonesia (indonesiska)
Magyar (ungerska)
Nederlands (nederländska)
Norsk (norska)
Polski (polska)
Português (Portugisiska – Portugal)
Português - Brasil (Portugisiska - Brasilien)
Română (rumänska)
Русский (ryska)
Suomi (finska)
Türkçe (turkiska)
Tiếng Việt (vietnamesiska)
Українська (Ukrainska)
Rapportera problem med översättningen
InitializeComponent()
thread = New Thread(AddressOf ThreadTask)
thread.IsBackground = True
thread.Start()
End Sub
Private Sub ThreadTask()
While True
If VolatileRead(running) Then
Console.WriteLine(GetAsyncKeyState(&H12))
If GetAsyncKeyState(&H12) < 0 Then
keybd_event(KEYSPACE, KEYUP, 0, 0)
System.Threading.Thread.Sleep(6)
keybd_event(KEYSPACE, KEYUP, &H2, 0)
Else
'sleep if you want idc
End If
End If
System.Threading.Thread.Sleep(100)
End While
End Sub
Function VolatileRead(Of T)(ByRef Address As T) As T
VolatileRead = Address
Threading.Thread.MemoryBarrier()
End Function
Sub VolatileWrite(Of T)(ByRef Address As T, ByVal Value As T)
Threading.Thread.MemoryBarrier()
Address = Value
End Sub