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 


ProgressBar with createMemScan gets freeze! Why?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
sir-gunny
Advanced Cheater
Reputation: 0

Joined: 15 Mar 2012
Posts: 78

PostPosted: Thu Jan 30, 2014 3:35 am    Post subject: ProgressBar with createMemScan gets freeze! Why? Reply with quote

Hi.

I have a form with a ProgressBar and would it "load" when i scan the memory.

When i use this code, I gets a freeze.

Code:
MyScanProgressBar = createProgressBar(MyForm)
MyMemScan = createMemScan(MyScanProgressBar)


Can anyone help me please?
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Thu Jan 30, 2014 8:35 am    Post subject: Reply with quote

Probably, no one tested it with CE6.3
_________________
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Thu Jan 30, 2014 10:32 am    Post subject: Reply with quote

This script works fine for me:
Code:

MyForm=createForm()
MyScanProgressBar = createProgressBar(MyForm)
MyMemScan = createMemScan(MyScanProgressBar)
MyMemScan.firstScan(soExactValue,vtDword, rtRounded,"12","",0,0xffffffffffffffff,"*W*R*X",fsmAligned, "4",false, true,false, false)


Do you do something after initiating the scan?

Edit: Ok, I assume you do a waitTillDone call which freezes everything including the gui till it's done. (and progressbar updates use the gui)
Its fixed in the svn, and I added something so you don't have to wait explicitly for it to finish anymore

_________________
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
sir-gunny
Advanced Cheater
Reputation: 0

Joined: 15 Mar 2012
Posts: 78

PostPosted: Thu Jan 30, 2014 11:43 am    Post subject: Reply with quote

Hi.

Yes, I use waitTillDone after firstScan. Where did you add something?

here?:
http://cheat-engine.googlecode.com/svn/trunk/Cheat%20Engine/memscan.pas

If so, how do I use it?

Sorry for the stupid questions... Smile Embarassed
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Thu Jan 30, 2014 12:06 pm    Post subject: Reply with quote

In memscan.pas yes (and luamemscan.pas for the freeze fix) if you compile cheat engine from the svn the memscan object will have a new property called OnScanDone
If you set that to a function, that function will be called when the scan finishes.
So you can exit the function and let the user do other stuff while the scan is running. Your code will be called when it's done

_________________
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
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