Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


MAC Addess Help!

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Ugly Truth
How do I cheat?
Reputation: 0

Joined: 04 Dec 2013
Posts: 9

PostPosted: Fri Apr 25, 2014 11:02 am    Post subject: MAC Addess Help! Reply with quote

I have problems about detecting MAC Address, some computer it's work perfectly and some not work. I don't know why, so please help me out.
I have attachment below, thanks you.



GetMAC.CT
 Description:

Download
 Filename:  GetMAC.CT
 Filesize:  2.96 KB
 Downloaded:  454 Time(s)

Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25839
Location: The netherlands

PostPosted: Fri Apr 25, 2014 11:24 am    Post subject: Reply with quote

It's most likely because the people where it doesn't work have a different language than english, or they changed their network adapter name to something else. (e.g internet interface)

try looking for a : followed by 5 hexadecimal numbers separated minus signs

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Ugly Truth
How do I cheat?
Reputation: 0

Joined: 04 Dec 2013
Posts: 9

PostPosted: Fri Apr 25, 2014 1:19 pm    Post subject: Reply with quote

Nơw I know I have problem with this code
Code:
function abc()
h = io.popen('ipconfig /all')
line = h:read()
while line do
  if line:find 'Wireless LAN adapter Wireless Network Connection' then
    line = h:read()
    while not line:find 'Description' do
    line = h:read()
    end
    heo3=line:match(': (.+)')
    UDF1.cbNetworkSelect.items.add(heo3)
    while not line:find 'Physical Address' do
    line = h:read()
    end
    heo1=line:match(': (.+)')
  end
  if line:find 'Ethernet adapter Local Area Connection' then
    line = h:read()
    while not line:find 'Description' do
    line = h:read()
    end
    heo2=line:match(': (.+)')
    UDF1.cbNetworkSelect.items.add(heo2)
    while not line:find 'Physical Address' do
    line = h:read()
    end
    heo4=line:match(': (.+)')
  end
  line = h:read()
end
end

I'm tested with 4 computer, it's not showing mac address with 2 PC doesn't have wifi card, and it's work perfectly with PC have wifi card and cable card.
So any idea to fix it? Thanks u Dark Byte.
Back to top
View user's profile Send private message
Ugly Truth
How do I cheat?
Reputation: 0

Joined: 04 Dec 2013
Posts: 9

PostPosted: Sat Apr 26, 2014 3:46 pm    Post subject: Reply with quote

My problem is solved.
And can I ask one more question ?

Code:
h = io.popen('WMIC PROCESS get Caption,Commandline')
line = h:read()


why io.popen not closing after open ?

And this code
Code:
os.execute("WMIC /OUTPUT:C:\\ProcessList.txt PROCESS get Caption,Commandline")
h=io.popen('C:\\ProcessList.txt')
line=h:read()
while line do
print(line)
end


All the string in ProcessList.txt become "??C" , do anyone know why ?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites