View previous topic :: View next topic |
Author |
Message |
mezzo Cheater Reputation: 1
Joined: 08 Sep 2010 Posts: 28
|
Posted: Fri Jan 20, 2012 8:18 pm Post subject: execute a 'next scan' every 5 seconds for x amount of times |
|
|
Would anybody have a look at this code and tell me what is wrong with it plz ?
I just want to do a 'next scan' with all the options as I have set them in the interface every X amount of seconds for a certain number of times (eg 30) and then stop.
(it would be an unchanged next search)
Code: |
timer = createTimer(nil,true)
timer_setInterval(timer,5000)
counter = 30;
function hit_next()
if counter < 1 then
timer_setEnabled( timer, false )
end -- if counter
if (memscanusedbefore==true) then
memscan_nextscan
memscan_waitTillDone
counter = counter - 1
end -- end of the if
end -- End of hitnext function
timer_onTimer(timer,hit_next)
|
EDIT: never mind, I figured it out.
|
|
Back to top |
|
|
DrWeazle How do I cheat? Reputation: -1
Joined: 15 Feb 2012 Posts: 7
|
Posted: Wed Feb 15, 2012 8:23 pm Post subject: |
|
|
hey could you post the code that worked. i am trying to do something similer and it would save me allot of time
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25288 Location: The netherlands
|
Posted: Thu Feb 16, 2012 2:58 am Post subject: |
|
|
The following script will do a next scan for a specific value using the results of the currently active scan session of the main ce window
Code: |
valuetoscan='95'
memscan_nextScan(getCurrentMemscan(), soExactValue, 0, valuetoscan,'',false, false, false, false, false, '')
|
you can also do "unchanged value" scans (soUnchanged)
_________________
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 |
|
|
|