jueki Posted April 22, 2008 Share Posted April 22, 2008 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 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 Functionhere are two url's for better information:GetSelectedItemNameImporting FFACE.dll Functionshow 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 Link to comment Share on other sites More sharing options...
evilertoaster Posted April 22, 2008 Share Posted April 22, 2008 $ItemName=DllCall("FFACE.dll","str","GetSelectedItemName","byte",$buffer,"int*",$size) MsgBox(0,"Name",$ItemName) This should be correct, although it bascically a shot in the dark Link to comment Share on other sites More sharing options...
jueki Posted April 22, 2008 Author Share Posted April 22, 2008 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.. Link to comment Share on other sites More sharing options...
evilertoaster Posted April 22, 2008 Share Posted April 22, 2008 those are the parameters...as in they are variables to be used in the function call, or the 's' and 'b' variables you use in visual basic. You have to provide something there... Link to comment Share on other sites More sharing options...
jueki Posted April 23, 2008 Author Share Posted April 23, 2008 and how would i know what to provide there? i havent worked with any dll calls yet, sorry Link to comment Share on other sites More sharing options...
jueki Posted April 23, 2008 Author Share Posted April 23, 2008 sorry for bumping this, but is there anyone else able to assist me? Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted April 23, 2008 Share Posted April 23, 2008 (edited) and how would i know what to provide there? i havent worked with any dll calls yet, sorryDid you try the values from your VB.net example?? Edited April 23, 2008 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
jueki Posted April 23, 2008 Author Share Posted April 23, 2008 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 Link to comment Share on other sites More sharing options...
Siao Posted April 23, 2008 Share Posted April 23, 2008 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" Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now