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 


Help With Input

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

Joined: 27 Jul 2013
Posts: 2

PostPosted: Sat Jul 27, 2013 11:49 am    Post subject: Help With Input Reply with quote

First Hello, ive been working on a trainer that scans the memory for a number and then Write "0" to all the found adresses

wanted a way to the script "Ask me" the number right after i "Enable" the script, something like InputDialog, idk

This is what i got so far,
Code:


local StartAddress = "0000000000000000"
local EndAddress = "7fffffffffffffff"
local MyMemscan = createMemScan()

speedhack_setSpeed(0.1)
memscan_newscan(MyMemscan)
**SOME WAY TO ASK ME THE INPUT OF THE SEARCH**
memscan_firstScan(MyMemscan,soExactValue,vtDword,"",???????,"",StartAddress,EndAddress, "*X*W*C", 0, "", false, true,false, false)
memscan_waitTillDone(MyMemscan)
fl = createFoundList(MyMemscan)
foundlist_initialize(fl)
local count = foundlist_getCount(fl)
if (count~=0) then
i = 0
while i~=count do
local addrex=foundlist_getAddress(fl, i)
writeInteger(addrex,0)
i = i+1
end
end
speedhack_setSpeed(1.0)

Thanks For your time!
Sorry for my Painfully English >.<
Back to top
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Mon Jul 29, 2013 11:16 am    Post subject: Reply with quote

You can create form +edit box before changing the results, and when changing the results just obtain the editbox caption.
Also you can
For i=0,count do ....
Instead of while i~=count

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
salleskiller
How do I cheat?
Reputation: 0

Joined: 27 Jul 2013
Posts: 2

PostPosted: Tue Jul 30, 2013 9:51 pm    Post subject: Reply with quote

Ok thanks, Ill work on it >.<
Thanks for your time. Very Happy Wink

if i get any new Questions ill update here Smile
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