View previous topic :: View next topic |
Author |
Message |
OldCheatEngineUser Whateven rank Reputation: 20
Joined: 01 Feb 2016 Posts: 1587
|
Posted: Sun Jun 04, 2017 3:49 pm Post subject: sleep function into aob scan |
|
|
hey!
i made a simple aob script, and i want to add 1 lua function which is sleep function in my allocated memory. its important to delay the execution.
so i tried this: $lua sleep(1000), which is one second.
but whenever i click on assign to current cheat table it give me an error.
that instruction cannot be compiled.
so any kind of help is appreciated.
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote: | i am a sweetheart. |
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25295 Location: The netherlands
|
Posted: Sun Jun 04, 2017 5:30 pm Post subject: |
|
|
lua only runs inside CE, not inside the target process
(and it's inside {$lua} {$asm} blocks)
anyhow, just call the windows sleep api.
Code: |
push #1000
call sleep
|
64 bit
Code: |
mov rcx,#1000
call sleep
|
_________________
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 |
|
|
OldCheatEngineUser Whateven rank Reputation: 20
Joined: 01 Feb 2016 Posts: 1587
|
Posted: Sun Jun 04, 2017 6:09 pm Post subject: |
|
|
oh yeah thats right, it run inside ce not the game.
thanks a lot DB, it worked.
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote: | i am a sweetheart. |
|
|
Back to top |
|
|
|