1. Dashboard
  2. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  3. Forenregeln
  4. Forum
    1. Unerledigte Themen
  • Anmelden
  • Registrieren
  • Suche
Alles
  • Alles
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche
  1. AutoIt.de - Das deutschsprachige Forum.
  2. Mitglieder
  3. munkee

Beiträge von munkee

  • Diese AHK Funktion in AutoIt

    • munkee
    • 18. Februar 2013 um 18:59

    DllOpen ist fehlgeschlagen, aber wieso? Ordnerstruktur sieht wie folgt aus:
    [Blockierte Grafik: http://i.imgur.com/bxUoMwR.png]

    Was mache ich falsch? DllOpen mit @ScriptDir hab ich auch schon versucht, gleiches Problem.

  • Diese AHK Funktion in AutoIt

    • munkee
    • 18. Februar 2013 um 18:24

    So, habe deinen Ratschlag mal befolgt, folgender Code:

    [autoit]


    $dll = DllOpen("API.dll")

    [/autoit][autoit][/autoit][autoit]

    Func AddChatMessage($Color, $Text)
    $ret = DllCall($dll, "UINT", "API_AddChatMessage", "int", $Color, "str", $Text)
    If @error == 1 Then
    MsgBox(0,"Error","Die Dll-Datei kann nicht verwendet werden")
    ElseIf @error == 2 Then
    MsgBox(0,"Error","unbekannter Rückgabewert - return type")
    ElseIf @error == 3 Then
    MsgBox(0,"Error","Funktion wurde in der DLL-Datei nicht gefunden")
    ElseIf @error == 4 Then
    MsgBox(0,"Error","Falsche Anzahl von Parametern.")
    ElseIf @error == 5 Then
    MsgBox(0,"Error","Falscher Parameter.")
    EndIf
    Return $ret
    EndFunc

    [/autoit]


    Rückgabe ist 1 ("Die Dll-Datei kann nicht verwendet werden").

    Die DLL besitzt eine eigene Wikiseite, diese findet sich hier: KLICK
    Dort ist eine Include sowie Dokumentation der Funktionen vorhanden, ich denke das sollte das sein, worauf du hinaus wolltest, ich hoffe ihr könnt mir so besser helfen.

    Mit freundlichen Grüßen
    munkee

  • Diese AHK Funktion in AutoIt

    • munkee
    • 18. Februar 2013 um 14:46

    Achja, mein eigener Versuch sieht so aus:

    [autoit]


    $dll = DllOpen("API.dll")

    [/autoit][autoit][/autoit][autoit]

    Func IsChatOpen()
    $ret = DllCall($dll,"UINT","API_IsChatOpen")
    If @error Then
    MsgBox(0,"Error","Error und so")
    EndIf
    Return $ret
    EndFunc

    [/autoit]

    Ausgabe ist Error und so...

    (Habs nochmal geantwortet weil die Bearbeitungsfunktion nicht geht, lädt unendlich...

  • Diese AHK Funktion in AutoIt

    • munkee
    • 18. Februar 2013 um 13:32

    Ich habe folgende Funktion:

    Code
    IsChatOpen_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsChatOpen")
    IsChatOpen()
    {
    	global IsChatOpen_func
    	Result := DllCall(IsChatOpen_func)
    	return Result
    }


    Will die gleiche Funktion aber in AutoIt haben, ich habe es schon selbst versucht, aber es sendet nur @error aus (Durch If @error Then MsgBox bla bla bla getestet), durch DllCall Tutorials sowie durch die Hilfe von AHK/AutoIt werde ich auch nicht schlauer.

    Wäre sehr nett wenn mir jemand sagen könnte wie diese Funktion in AutoIt geschrieben wird.
    Danke im Vorraus.

    *edit: formatierung...

  • StringInStr Funktioniert nicht richtig

    • munkee
    • 17. Februar 2013 um 13:38
    Zitat von Joriktos
    [autoit]


    While True
    $File = FileOpen($ChatLog, 0)
    $LastLine = FileReadLine($File, -1) ; Ich habe noch ein -1 angehängt, da du ja laut des Variablen-Namens die letzte Zeile auslesen möchtest
    If StringInStr($LastLine, "Hi Stan") <> 0 Then ; Du brauchst hier ein "ungleich 0", da die Funktion die Position der "Fundstelle" zurück gibt, also nicht 0.
    Send("tHallo!")
    ; MsgBox(0, "TestBox", "Test, ob diese If-Abfrage wirklich aufgerufen wird")
    EndIf
    FileClose($File)
    WEnd

    [/autoit]

    Teste es mal so und am besten machst du dazu mal das Semikolon (;) in Zeile 6 weg, damit du siehst ob die If-Abfrage beachtet wird und nur dein Send() vielleicht nicht stimmt.

    Alles anzeigen

    Auch schon versucht, ging nicht, Send wird erst garnicht aufgerufen, also stimmt wohl irgendwas mit StringInStr nicht.

  • StringInStr Funktioniert nicht richtig

    • munkee
    • 17. Februar 2013 um 13:15
    Zitat von Joriktos
    [autoit]


    While True
    $File = FileOpen($ChatLog,0)
    $LastLine = FileReadLine($File)
    If StringInStr($LastLine,"Hi Stan") <> 0 Then ; Du brauchst hier ein "ungleich 0", da die Funktion die Position der "Fundstelle" zurück gibt, also nicht 0.
    Send("tHallo!")
    EndIf
    FileClose($File)WEnd

    [/autoit]
    Alles anzeigen

    Funktioniert nicht D:

  • StringInStr Funktioniert nicht richtig

    • munkee
    • 17. Februar 2013 um 12:53
    [autoit]

    While True $File = FileOpen($ChatLog,0) $LastLine = FileReadLine($File) If StringInStr($LastLine,"Hi Stan") Then Send("tHallo!") EndIf FileClose($File)WEnd

    [/autoit]

    Soll, wenn in der letzten Zeile "Hi Stan" gefunden wird, tHallo! zurückgeben, allerdings wird nichts zurückgegeben, was mache ich falsch?

  • AHK Script -> AU3 Script?

    • munkee
    • 2. Januar 2013 um 20:30

    Das ganze ist für SA:MP, ein Multiplayer Mod für GTA SA, und für diesen möchte ich einen Keybinder erstellen, und dafür gibt es zur Hilfe diese API :)

  • AHK Script -> AU3 Script?

    • munkee
    • 2. Januar 2013 um 13:21

    Folgendes möchte ich in eine AutoIt3 Include umwandeln:

    Spoiler anzeigen
    Code
    #NoEnv; Declars
    PLAYER_STATE_LEAVING_VEHICLE 	:= 0
    PLAYER_STATE_NORMAL 			:= 1
    PLAYER_STATE_DRIVING 			:= 50
    PLAYER_STATE_DYING 				:= 54
    PLAYER_STATE_DEAD 				:= 55
    ; ---
    
    
    
    
    ; Script Entry
    hModule := DllCall("LoadLibrary", Str, A_ScriptDir . "\API.dll")
    if(hModule == -1 || hModule == 0)
    {
    	MsgBox, 48, API - Fehler, Die API.dll konnte nicht gefunden werden.`nDer Keybinder wird nun beendet.
    	ExitApp
    
    	; Ihr könnt die Funktion hier natürlich selber bearbeiten.
    	; Die Aktuelle API findet ihr hier:
    	;		http://samp-api.net/downloads/current_api/API.dll
    	; Den MD5 Wert der aktuellen API findet ihr hier:
    	;		http://samp-api.net/downloads/current_api/API.php
    	; Dort befindet sich immer die aktuellste API.
    }
    ; ---
    
    
    AddChatMessage_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_AddChatMessage")
    BlockChatInput_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_BlockChatInput")
    BoxCreate_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxCreate")
    BoxDestroy_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxDestroy")
    BoxHide_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxHide")
    BoxSetBorder_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetBorder")
    BoxSetBorderColor_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetBorderColor")
    BoxSetColor_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetColor")
    BoxSetHeight_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetHeight")
    BoxSetPos_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetPos")
    BoxSetWidth_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetWidth")
    BoxShow_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxShow")
    DestroyAllVisual_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_DestroyAllVisual")
    GetAmmoForCurrentWeapon_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetAmmoForCurrentWeapon")
    GetChatLine_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetChatLine")
    GetCityName_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetCityName")
    GetClipForCurrentWeapon_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetClipForCurrentWeapon")
    GetCurrentWeaponId_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetCurrentWeaponId")
    GetCurrentWeatherId_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetCurrentWeatherId")
    GetOnlinePlayers_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetOnlinePlayers")
    GetPlayerArmor_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerArmor")
    GetPlayerData_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerData")
    GetPlayerHealth_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerHealth")
    GetPlayerId_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerId")
    GetPlayerIdByName_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerIdByName")
    GetPlayerMoney_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerMoney")
    GetPlayerName_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerName")
    GetPlayerNameById_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerNameById")
    GetPlayerPing_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerPing")
    GetPlayerPingById_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerPingById")
    GetPlayerPingByName_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerPingByName")
    GetPlayerPos_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerPos")
    GetPlayerScore_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerScore")
    GetPlayerScoreById_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerScoreById")
    GetPlayerScoreByName_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerScoreByName")
    GetPlayerSkin_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerSkin")
    GetPlayerState_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerState")
    GetPlayerWanteds_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerWanteds")
    GetRadioSlot_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetRadioSlot")
    GetScreenSizeX_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetScreenSizeX")
    GetScreenSizeY_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetScreenSizeY")
    GetServerIp_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetServerIp")
    GetVehicleEngineState_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleEngineState")
    GetVehicleFirstColor_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleFirstColor")
    GetVehicleHealth_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleHealth")
    GetVehicleHornState_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleHornState")
    GetVehicleId_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleId")
    GetVehicleLightState_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleLightState")
    GetVehicleLockState_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleLockState")
    GetVehicleModel_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleModel")
    GetVehicleName_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleName")
    GetVehicleSeatState_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleSeatState")
    GetVehicleSecondColor_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleSecondColor")
    GetVehicleSirenState_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleSirenState")
    GetVehicleSpeed_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleSpeed")
    GetZoneName_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetZoneName")
    HideAllVisual_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_HideAllVisual")
    ImageCreate_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_ImageCreate")
    ImageDestroy_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_ImageDestroy")
    ImageHide_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_ImageHide")
    ImageSetAlign_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_ImageSetAlign")
    ImageSetPos_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_ImageSetPos")
    ImageSetRotation_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_ImageSetRotation")
    ImageShow_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_ImageShow")
    IsChatOpen_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsChatOpen")
    IsDialogOpen_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsDialogOpen")
    IsMenuOpen_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsMenuOpen")
    IsPlayerDriver_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerDriver")
    IsPlayerFrozen_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerFrozen")
    IsPlayerInAnyInterior_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInAnyInterior")
    IsPlayerInAnyVehicle_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInAnyVehicle")
    IsPlayerInRangeOfPoint_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInRangeOfPoint")
    IsPlayerInRangeOfPoint2D_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInRangeOfPoint2D")
    IsUpdateAvailable_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsUpdateAvailable")
    LineCreate_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_LineCreate")
    LineDestroy_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_LineDestroy")
    LineHide_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_LineHide")
    LineSetColor_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_LineSetColor")
    LineSetHeight_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_LineSetHeight")
    LineSetPos_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_LineSetPos")
    LineSetWidth_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_LineSetWidth")
    LineShow_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_LineShow")
    RegisterTextBind_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_RegisterTextBind")
    SendChat_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_SendChat")
    ShowAllVisual_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_ShowAllVisual")
    ShowDialog_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_ShowDialog")
    ShowGameText_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_ShowGameText")
    TextBindTimer_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextBindTimer")
    TextCreate_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextCreate")
    TextDestroy_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextDestroy")
    TextHide_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextHide")
    TextSetAlign_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextSetAlign")
    TextSetColor_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextSetColor")
    TextSetPos_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextSetPos")
    TextSetString_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextSetString")
    TextShow_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextShow")
    UnblockChatInput_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_UnblockChatInput")
    UnloadOverlay_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_UnloadOverlay")
    UnregisterAllTextBinds_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_UnregisterAllTextBinds")
    UnregisterTextBind_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_UnregisterTextBind")
    
    
    ; - tmp -
    GetMaterials_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetMaterialsGRP")
    ; -------
    
    
    AddChatMessage(Color, Text)
    {
    	global AddChatMessage_func
    	Result := DllCall(AddChatMessage_func, Int, Color, Str, Text)
    	return Result
    }
    
    
    BlockChatInput()
    {
    	global BlockChatInput_func
    	Result := DllCall(BlockChatInput_func)
    	return Result
    }
    
    
    BoxCreate()
    {
    	global BoxCreate_func
    	Result := DllCall(BoxCreate_func)
    	return Result
    }
    
    
    BoxDestroy(BoxIndex)
    {
    	global BoxDestroy_func
    	Result := DllCall(BoxDestroy_func, Int, BoxIndex)
    	return Result
    }
    
    
    BoxHide(BoxIndex)
    {
    	global BoxHide_func
    	Result := DllCall(BoxHide_func, Int, BoxIndex)
    	return Result
    }
    
    
    BoxSetBorder(BoxIndex, Width)
    {
    	global BoxSetBorder_func
    	Result := DllCall(BoxSetBorder_func, Int, BoxIndex, Int, Width)
    	return Result
    }
    
    
    BoxSetBorderColor(BoxIndex, Color)
    {
    	global BoxSetBorderColor_func
    	Result := DllCall(BoxSetBorderColor_func, Int, BoxIndex, UInt, Color)
    	return Result
    }
    
    
    BoxSetColor(BoxIndex, Color)
    {
    	global BoxSetColor_func
    	Result := DllCall(BoxSetColor_func, Int, BoxIndex, UInt, Color)
    	return Result
    }
    
    
    BoxSetHeight(BoxIndex, Height)
    {
    	global BoxSetHeight_func
    	Result := DllCall(BoxSetHeight_func, Int, BoxIndex, Int, Height)
    	return Result
    }
    
    
    BoxSetPos(BoxIndex, X, Y)
    {
    	global BoxSetPos_func
    	Result := DllCall(BoxSetPos_func, Int, BoxIndex, Int, X, Int, Y)
    	return Result
    }
    
    
    BoxSetWidth(BoxIndex, Width)
    {
    	global BoxSetWidth_func
    	Result := DllCall(BoxSetWidth_func, Int, BoxIndex, Int, Width)
    	return Result
    }
    
    
    BoxShow(BoxIndex)
    {
    	global BoxShow_func
    	Result := DllCall(BoxShow_func, Int, BoxIndex)
    	return Result
    }
    
    
    DestroyAllVisual()
    {
    	global DestroyAllVisual_func
    	Result := DllCall(DestroyAllVisual_func)
    	return Result
    }
    
    
    GetAmmoForCurrentWeapon()
    {
    	global GetAmmoForCurrentWeapon_func
    	Result := DllCall(GetAmmoForCurrentWeapon_func)
    	return Result
    }
    
    
    GetChatLine(Line, ByRef Output)
    {
    	global GetChatLine_func
    	VarSetCapacity(Output, 252)
    	Result := DllCall(GetChatLine_func, Int, Line, StrP, Output)
    	return Result
    }
    
    
    GetCityName(ByRef City)
    {
    	global GetCityName_func
    	VarSetCapacity(City, 32, 0)
    	Result := DllCall(GetCityName_func, StrP, City)
    	return Result
    }
    
    
    GetClipForCurrentWeapon()
    {
    	global GetClipForCurrentWeapon_func
    	Result := DllCall(GetClipForCurrentWeapon_func)
    	return Result
    }
    
    
    GetCurrentWeaponId()
    {
    	global GetCurrentWeaponId_func
    	Result := DllCall(GetCurrentWeaponId_func)
    	return Result
    }
    
    
    GetCurrentWeatherId()
    {
    	global GetCurrentWeatherId_func
    	Result := DllCall(GetCurrentWeatherId_func)
    	return Result
    }
    
    
    GetOnlinePlayers()
    {
    	global GetOnlinePlayers_func
    	Result := DllCall(GetOnlinePlayers_func)
    	return Result
    }
    
    
    GetPlayerArmor()
    {
    	global GetPlayerArmor_func
    	Result := DllCall(GetPlayerArmor_func)
    	return Result
    }
    
    
    GetPlayerData()
    {
    	global GetPlayerData_func
    	Result := DllCall(GetPlayerData_func)
    	return Result
    }
    
    
    GetPlayerHealth()
    {
    	global GetPlayerHealth_func
    	Result := DllCall(GetPlayerHealth_func)
    	return Result
    }
    
    
    GetPlayerId()
    {
    	global GetPlayerId_func
    	Result := DllCall(GetPlayerId_func)
    	return Result
    }
    
    
    GetPlayerIdByName(Name)
    {
    	global GetPlayerIdByName_func
    	Result := DllCall(GetPlayerIdByName_func, Str, Name)
    	return Result
    }
    
    
    GetPlayerMoney()
    {
    	global GetPlayerMoney_func
    	Result := DllCall(GetPlayerMoney_func)
    	return Result
    }
    
    
    GetPlayerName(ByRef Name)
    {
    	global GetPlayerName_func
    	VarSetCapacity(Name, 24)
    	Result := DllCall(GetPlayerName_func, StrP, Name)
    	return Result
    }
    
    
    GetPlayerNameById(Id, ByRef Name)
    {
    	global GetPlayerNameById_func
    	VarSetCapacity(Name, 24)
    	Result := DllCall(GetPlayerNameById_func, Int, Id, StrP, Name)
    	return Result
    }
    
    
    GetPlayerPing()
    {
    	global GetPlayerPing_func
    	Result := DllCall(GetPlayerPing_func)
    	return Result
    }
    
    
    GetPlayerPingById(Id)
    {
    	global GetPlayerPingById_func
    	Result := DllCall(GetPlayerPingById_func, Int, Id)
    	return Result
    }
    
    
    GetPlayerPingByName(Name)
    {
    	global GetPlayerPingByName_func
    	Result := DllCall(GetPlayerPingByName_func, Str, Name)
    	return Result
    }
    
    
    GetPlayerPos(ByRef X, ByRef Y, ByRef Z, ByRef R)
    {
    	global GetPlayerPos_func
    	Result := DllCall(GetPlayerPos_func, FloatP, X, FloatP, Y, FloatP, Z, FloatP, R)
    	return Result
    }
    
    
    GetPlayerScore()
    {
    	global GetPlayerScore_func
    	Result := DllCall(GetPlayerScore_func)
    	return Result
    }
    
    
    GetPlayerScoreById(Id)
    {
    	global GetPlayerScoreById_func
    	Result := DllCall(GetPlayerScoreById_func, Int, Id)
    	return Result
    }
    
    
    GetPlayerScoreByName(Name)
    {
    	global GetPlayerScoreByName_func
    	Result := DllCall(GetPlayerScoreByName_func, Str, Name)
    	return Result
    }
    
    
    GetPlayerSkin()
    {
    	global GetPlayerSkin_func
    	Result := DllCall(GetPlayerSkin_func)
    	return Result
    }
    
    
    GetPlayerState()
    {
    	global GetPlayerState_func
    	Result := DllCall(GetPlayerState_func)
    	return Result
    }
    
    
    GetPlayerWanteds()
    {
    	global GetPlayerWanteds_func
    	Result := DllCall(GetPlayerWanteds_func)
    	return Result
    }
    
    
    GetRadioSlot()
    {
    	global GetRadioSlot_func
    	Result := DllCall(GetRadioSlot_func)
    	return Result
    }
    
    
    GetScreenSizeX()
    {
    	global GetScreenSizeX_func
    	Result := DllCall(GetScreenSizeX_func)
    	return Result
    }
    
    
    GetScreenSizeY()
    {
    	global GetScreenSizeY_func
    	Result := DllCall(GetScreenSizeY_func)
    	return Result
    }
    
    
    GetServerIp(ByRef Address)
    {
    	global GetServerIp_func
    	VarSetCapacity(Address, 21, 0)
    	Result := DllCall(GetServerIp_func, StrP, Address)
    	return Result
    }
    
    
    GetVehicleEngineState()
    {
    	global GetVehicleEngineState_func
    	Result := DllCall(GetVehicleEngineState_func)
    	return Result
    }
    
    
    GetVehicleFirstColor()
    {
    	global GetVehicleFirstColor_func
    	Result := DllCall(GetVehicleFirstColor_func)
    	return Result
    }
    
    
    GetVehicleHealth()
    {
    	global GetVehicleHealth_func
    	Result := DllCall(GetVehicleHealth_func)
    	return Result
    }
    
    
    GetVehicleHornState()
    {
    	global GetVehicleHornState_func
    	Result := DllCall(GetVehicleHornState_func)
    	return Result
    }
    
    
    GetVehicleId()
    {
    	global GetVehicleId_func
    	Result := DllCall(GetVehicleId_func)
    	return Result
    }
    
    
    GetVehicleLightState()
    {
    	global GetVehicleLightState_func
    	Result := DllCall(GetVehicleLightState_func)
    	return Result
    }
    
    
    GetVehicleLockState()
    {
    	global GetVehicleLockState_func
    	Result := DllCall(GetVehicleLockState_func)
    	return Result
    }
    
    
    GetVehicleModel()
    {
    	global GetVehicleModel_func
    	Result := DllCall(GetVehicleModel_func)
    	return Result
    }
    
    
    GetVehicleName(ModelId, ByRef VehicleName)
    {
    	global GetVehicleName_func
    	VarSetCapacity(VehicleName, 24, 0)
    	Result := DllCall(GetVehicleName_func, Int, ModelId, StrP, VehicleName)
    	return Result
    }
    
    
    GetVehicleSeatState(Seat)
    {
    	global GetVehicleSeatState_func
    	Result := DllCall(GetVehicleSeatState_func, Int, Seat)
    	return Result
    }
    
    
    GetVehicleSecondColor()
    {
    	global GetVehicleSecondColor_func
    	Result := DllCall(GetVehicleSecondColor_func)
    	return Result
    }
    
    
    GetVehicleSirenState()
    {
    	global GetVehicleSirenState_func
    	Result := DllCall(GetVehicleSirenState_func)
    	return Result
    }
    
    
    GetVehicleSpeed()
    {
    	global GetVehicleSpeed_func
    	fMult := 1.45
    	Result := DllCall(GetVehicleSpeed_func, Float, fMult)
    	return Result
    }
    
    
    GetZoneName(ByRef Zone)
    {
    	global GetZoneName_func
    	VarSetCapacity(Zone, 32, 0)
    	Result := DllCall(GetZoneName_func, StrP, Zone)
    	return Result
    }
    
    
    HideAllVisual()
    {
    	global ShowAllVisual_func
    	Result := DllCall(ShowAllVisual_func)
    	return Result
    }
    
    
    ImageCreate(ImagePath)
    {
    	global ImageCreate_func
    	path = %A_ScriptDir%
    	Result := DllCall(ImageCreate_func, Str, path . ImagePath)
    	return Result
    }
    
    
    ImageDestroy(ImageIndex)
    {
    	global ImageDestroy_func
    	Result := DllCall(ImageDestroy_func, Int, ImageIndex)
    	return Result
    }
    
    
    ImageHide(ImageIndex)
    {
    	global ImageHide_func
    	Result := DllCall(ImageHide_func, Int, ImageIndex)
    	return Result
    }
    
    
    ImageSetAlign(ImageIndex, Align)
    {
    	global ImageSetAlign_func
    	Result := DllCall(ImageSetAlign_func, Int, ImageIndex, Int, Align)
    	return Result
    }
    
    
    ImageSetPos(ImageIndex, PosX, PosY)
    {
    	global ImageSetPos_func
    	Result := DllCall(ImageSetPos_func, Int, ImageIndex, Int, PosX, Int, PosY)
    	return Result
    }
    
    
    ImageSetRotation(ImageIndex, Rotation)
    {
    	global ImageSetRotation_func
    	Result := DllCall(ImageSetRotation_func, Int, ImageIndex, Int, Rotation)
    	return Result
    }
    
    
    ImageShow(ImageIndex)
    {
    	global ImageShow_func
    	Result := DllCall(ImageShow_func, Int, ImageIndex)
    	return Result
    }
    
    
    IsChatOpen()
    {
    	global IsChatOpen_func
    	Result := DllCall(IsChatOpen_func)
    	return Result
    }
    
    
    IsDialogOpen()
    {
    	global IsDialogOpen_func
    	Result := DllCall(IsDialogOpen_func)
    	return Result
    }
    
    
    IsMenuOpen()
    {
    	global IsMenuOpen_func
    	Result := DllCall(IsMenuOpen_func)
    	return Result
    }
    
    
    IsPlayerDriver()
    {
    	global IsPlayerDriver_func
    	Result := DllCall(IsPlayerDriver_func)
    	return Result
    }
    
    
    IsPlayerFrozen()
    {
    	global IsPlayerFrozen_func
    	Result := DllCall(IsPlayerFrozen_func)
    	return Result
    }
    
    
    IsPlayerInAnyInterior()
    {
    	global IsPlayerInAnyInterior_func
    	Result := DllCall(IsPlayerInAnyInterior_func)
    	return Result
    }
    
    
    IsPlayerInAnyVehicle()
    {
    	global IsPlayerInAnyVehicle_func
    	Result := DllCall(IsPlayerInAnyVehicle_func)
    	return Result
    }
    
    
    IsPlayerInRangeOfPoint(X, Y, Z, Radius)
    {
    	global IsPlayerInRangeOfPoint_func
    	Result := DllCall(IsPlayerInRangeOfPoint_func, Float, X, Float, Y, Float, Z, Float, Radius)
    	return Result
    }
    
    
    IsPlayerInRangeOfPoint2D(X, Y, Radius)
    {
    	global IsPlayerInRangeOfPoint2D_func
    	Result := DllCall(IsPlayerInRangeOfPoint2D_func, Float, X, Float, Y, Float, Radius)
    	return Result
    }
    
    
    IsUpdateAvailable()
    {
    	global IsUpdateAvailable_func
    	Result := DllCall(IsUpdateAvailable_func)
    	return Result
    }
    
    
    LineCreate()
    {
    	global LineCreate_func
    	Result := DllCall(LineCreate_func)
    	return Result
    }
    
    
    LineDestroy(LineIndex)
    {
    	global LineDestroy_func
    	Result := DllCall(LineDestroy_func, Int, LineIndex)
    	return Result
    }
    
    
    LineHide(LineIndex)
    {
    	global LineHide_func
    	Result := DllCall(LineHide_func, Int, LineIndex)
    	return Result
    }
    
    
    LineSetColor(LineIndex, Color)
    {
    	global LineSetColor_func
    	Result := DllCall(LineSetColor_func, Int, LineIndex, Int64, Color)
    	return Result
    }
    
    
    LineSetHeight(LineIndex, Height)
    {
    	global LineSetHeight_func
    	Result := DllCall(LineSetHeight_func, Int, LineIndex, Int, Height)
    	return Result
    }
    
    
    LineSetPos(LineIndex, PosX, PosY)
    {
    	global LineSetPos_func
    	Result := DllCall(LineSetPos_func, Int, LineIndex, Int, PosX, Int, PosY)
    	return Result
    }
    
    
    LineSetWidth(LineIndex, Width)
    {
    	global LineSetWidth_func
    	Result := DllCall(LineSetWidth_func, Int, LineIndex, Int, Width)
    	return Result
    }
    
    
    LineShow(LineIndex)
    {
    	global LineShow_func
    	Result := DllCall(LineShow_func, Int, LineIndex)
    	return Result
    }
    
    
    RegisterTextBind(Bind, X, Y, Z, Radius, Loop = 1, Timeout = 7000, GroupId = 0, Delay = 0)
    {
    	global RegisterTextBind_func
    	Result := DllCall(RegisterTextBind_func, Str, Bind, Float, X, Float, Y, Float, Z, Float, Radius, Int, Loop, Int, Timeout, Int, GroupId, Int, Delay)
    	return Result
    }
    
    
    SendChat(Text)
    {
    	global SendChat_func
    	Result := DllCall(SendChat_func, Str, Text)
    	return Result
    }
    
    
    ShowAllVisual()
    {
    	global ShowAllVisual_func
    	Result := DllCall(ShowAllVisual_func)
    	return Result
    }
    
    
    ShowDialog(Style, Title, Text, Button)
    {
    	global ShowDialog_func
    	Result := DllCall(ShowDialog_func, Int, Style, Str, Title, Str, Text, Str, Button)
    	return Result
    }
    
    
    ShowGameText(Text, Time, Style)
    {
    	global ShowGameText_func
    	Result := DllCall(ShowGameText_func, Str, Text, Int, Time, Int, Style)
    	return Result
    }
    
    
    TextBindTimer(TextBindTime)
    {
    	global TextBindTimer_func
    	Result := DllCall(TextBindTimer_func, Int, TextBindTime)
    	return Result
    }
    
    
    TextCreate(Font, FontSize, Bold, Italic)
    {
    	global TextCreate_func
    	Result := DllCall(TextCreate_func, Str, Font, Int, FontSize, Int, Bold, Int, Italic)
    	return Result
    }
    
    
    TextDestroy(TextIndex)
    {
    	global TextDestroy_func
    	Result := DllCall(TextDestroy_func, Int, TextIndex)
    	return Result
    }
    
    
    TextHide(TextIndex)
    {
    	global TextHide_func
    	Result := DllCall(TextHide_func, Int, TextIndex)
    	return Result
    }
    
    
    TextSetAlign(TextIndex, Align)
    {
    	global TextSetAlign_func
    	Result := DllCall(TextSetAlign_func, Int, TextIndex, Int, Align)
    	return Result
    }
    
    
    TextSetColor(TextIndex, Color)
    {
    	global TextSetColor_func
    	Result := DllCall(TextSetColor_func, Int, TextIndex, Int64, Color)
    	return Result
    }
    
    
    TextSetPos(TextIndex, PosX, PosY)
    {
    	global TextSetPos_func
    	Result := DllCall(TextSetPos_func, Int, TextIndex, Int, PosX, Int, PosY)
    	return Result
    }
    
    
    TextSetString(TextIndex, Text)
    {
    	global TextSetString_func
    	Result := DllCall(TextSetString_func, Int, TextIndex, Str, Text)
    	return Result
    }
    
    
    TextShow(TextIndex)
    {
    	global TextShow_func
    	Result := DllCall(TextShow_func, Int, TextIndex)
    	return Result
    }
    
    
    UnblockChatInput()
    {
    	global UnblockChatInput_func
    	Result := DllCall(UnblockChatInput_func)
    	return Result
    }
    
    
    UnloadOverlay()
    {
    	global UnloadOverlay_func
    	Result := DllCall(UnloadOverlay_func)
    	return Result
    }
    
    
    UnregisterAllTextBinds()
    {
    	global UnregisterAllTextBinds_func
    	Result := DllCall(UnregisterAllTextBinds_func)
    	return Result
    }
    
    
    UnregisterTextBind(TextBindId)
    {
    	global UnregisterTextBind_func
    	Result := DllCall(UnregisterTextBind_func, Int, TextBindId)
    	return Result
    }
    
    
    ; - tmp -
    GetMaterials()
    {
    	global GetMaterials_func
    	Result := DllCall(GetMaterials_func)
    	return Result
    }
    ; -------
    
    
    ; Alle existierende Overlay Elemente löschen,
    ; damit sich das Overlay nicht überlappt.
    ; --- DestroyAllVisual()
    Alles anzeigen

    Nur stellt sich die Frage: Wie soll ich das anstellen? (evtl. Converter o.Ä.) Alles einzeln zu machen wäre mit etwas zu umständlich und ich hab Angst noch Fehler einzubauen da ich in Sachen DLL sowie in Sachen AHK ziemlich schlecht bin. Wäre Dankbar für jede Hilfe.

Spenden

Jeder Euro hilft uns, Euch zu helfen.

Download

AutoIt Tutorial
AutoIt Buch
Onlinehilfe
AutoIt Entwickler
  1. Datenschutzerklärung
  2. Impressum
  3. Shoutbox-Archiv
Community-Software: WoltLab Suite™