Jump to content

Wireless Listeleyici


pairs
 Share

Recommended Posts

  • Editor

Wireless listeleme , Güvenlik Seviyesi ve Sinyal Seviyesi

 

Global Functions' a eklenecek

function DelimitedStringToTable(DelimitedString, Delimiter)
tbReturn = {};
local strWorking;
local nPos = nil;
local strData;
local nTableIndex = 1;
local nDelimiterLength = String.Length(Delimiter);

			if(nDelimiterLength < 1)then
			tbReturn[nTableIndex] = DelimitedString;
			return tbReturn;
			end

			strWorking = DelimitedString;
			nPos = String.Find(strWorking,Delimiter);
			while(nPos ~= -1)do
			strData = String.Left(strWorking,nPos-1);
			tbReturn[nTableIndex] = strData;
			nTableIndex = nTableIndex + 1;
			local nLength = String.Length(strWorking);
			strWorking = String.Right(strWorking,nLength - (nPos + (nDelimiterLength-1)));
			nPos = String.Find(strWorking,Delimiter);
			end
			
			if(strWorking ~= "")then
			tbReturn[nTableIndex] = strWorking;
			end

return tbReturn;
end

Kullanımı ben diziden dönen ilk wifi ı aldım siz isterseniz

 

Bunu for döngüsüne sokabilirsiniz.

local sdevices = DLL.CallFunction("AutoPlay\\Docs\\wifiapi.dll", "getdevices", "", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL);
Dialog.Message("",DelimitedStringToTable(sdevices,";")[1]);

local ssec = DLL.CallFunction("AutoPlay\\Docs\\wifiapi.dll", "getsecurity", "\""..DelimitedStringToTable(sdevices,";")[1].."\"", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL);
Dialog.Message("",ssec);

local ssignal = DLL.CallFunction("AutoPlay\\Docs\\wifiapi.dll", "getsignal", "\""..DelimitedStringToTable(sdevices,";")[1].."\"", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL);
Dialog.Message("",ssignal);
Edited by pairs
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...