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 


Question about firstscan, nextscan

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
keepstill
Newbie cheater
Reputation: 0

Joined: 22 May 2020
Posts: 17

PostPosted: Fri Jul 17, 2020 3:04 am    Post subject: Question about firstscan, nextscan Reply with quote

Hi there,

I want to scan to value type byte. It should wait 3 seconds after each next scans and stop when a result remains.
But I'm stuck here:
Code:
ms = createMemScan();
memscan_firstScan(ms, soExactValue, vtbyte, rtRounded, 12, "", "00000000", "7fffffff", "+W*X-C", fsmNotAligned, "", false, false, false, false);
memscan_waitTillDone(ms);
print("change value to 14")
sleep(500)
sleep(2000)
memscan_nextScan(ms, soExactValue, 14,"", false, false, false, false, false, "");
memscan_waitTillDone(ms);
print("change value to 12")
sleep(500)
sleep(2000)
memscan_nextScan(ms, soExactValue, 12,"", false, false, false, false, false, "");
memscan_waitTillDone(ms);
print("change value to 14")
sleep(500)
sleep(2000)
memscan_nextScan(ms, soExactValue, 14,"", false, false, false, false, false, "");
memscan_waitTillDone(ms);
print("change value to 12")
sleep(500)
sleep(2000)
memscan_nextScan(ms, soExactValue, 12,"", false, false, false, false, false, "");
memscan_waitTillDone(ms);
print("change value to 14")
sleep(500)
sleep(2000)
memscan_nextScan(ms, soExactValue, 14,"", false, false, false, false, false, "");
memscan_waitTillDone(ms);
print("change value to 12")
sleep(500)
sleep(2000)
memscan_nextScan(ms, soExactValue, 12,"", false, false, false, false, false, "");
memscan_waitTillDone(ms);
print("change value to 14")
sleep(500)
sleep(2000)
memscan_nextScan(ms, soExactValue, 14,"", false, false, false, false, false, "");
memscan_waitTillDone(ms);
print("change value to 12")
sleep(500)
sleep(2000)
memscan_nextScan(ms, soExactValue, 12,"", false, false, false, false, false, "");
memscan_waitTillDone(ms);
f = createFoundList(ms);
foundlist_initialize(f);
foundlist_getCount(f);
print (f)


The value of the result is not 12. Where am i making a mistake(s)?

Thanks.
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