Jump to content

Recommended Posts

Posted

hi all,

i am trying to use this function in AutoIT, but i have absolutely no knowledge about any other programming language so i can not convert the code myself :D

i would appreciate any help i can get with this.

VB.net:

Private Declare Ansi Sub sSelectedName Lib "FFACE.dll" Alias "GetSelectedItemName" (ByVal buffer As Byte(), ByRef size As Integer)
        Public Shared Function SelectedItemName() As String
            Dim s As Integer = 20
            Dim b(20) As Byte
            sSelectedName(b, s)
            Return System.Text.Encoding.ASCII.GetString(b, 0, s - 1)
        End Function

here are two url's for better information:

GetSelectedItemName

Importing FFACE.dll Functions

how can i, for example, create a msg box with the item name displayed by the function GetSelectedItemName using FFACE.dll?

sorry if my english is hard to understand, but i try my best to explain my situation.

I also attached the FFACE.dll along with a .lib file.

FFACE3126_Dll.rar

Posted

thanks for your reply,

but when i compile it, it says $buffer and $size is possibly used before declaration..

if i add a Global $buffer, $size on top of the script and run it, then the program crashes because of msvcr80.dll.. :D

Posted

yup, i have. this is what i tried:

$buffer = 20
$size = 20
$ItemName=DllCall("FFACE.dll","str","GetSelectedItemName","byte",$buffer,"int*",$size)
MsgBox(0,"Name",$ItemName)

same error, msvcr80.dll :D

Posted

You are not the first multiplayer cheater around here.

Do a forum search for FFACE and you'll get your answer.

"be smart, drink your wine"

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...