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 


Undo feature in Auto Assembly editor?

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

Joined: 30 Dec 2009
Posts: 19

PostPosted: Sun Aug 15, 2010 12:46 am    Post subject: Undo feature in Auto Assembly editor? Reply with quote

I didn't first intend to FLOOD this forum with my posts.
Sorry about that, people of CE forum.
But that's because I love CE, so I can see more of it-even defects.

What I wanna say is in the subject: Undo feature in Auto Assembly editor?

In fact I don't desperately need that feature. Just it'll be nice if we have that. I don't want to bother Dark Byte.

That's it. End of transmission.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Sun Aug 15, 2010 3:57 am    Post subject: Reply with quote

do you mean a button/option that will execute the disable part of a script instead of the enable ?
_________________
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
noko_112
Grandmaster Cheater
Reputation: 0

Joined: 09 Jun 2009
Posts: 585

PostPosted: Sun Aug 15, 2010 4:26 am    Post subject: Reply with quote

Tought Ctrl+Z worked...
Back to top
View user's profile Send private message
praise4him
Newbie cheater
Reputation: 0

Joined: 30 Dec 2009
Posts: 19

PostPosted: Sun Aug 15, 2010 5:23 am    Post subject: Reply with quote

Dark Byte wrote:
do you mean a button/option that will execute the disable part of a script instead of the enable ?


Noko_112 is right!!
I just meant simple 'ctrl+z'


(By the way, I think I can execute disable part by 'unchecking box'.
For what would that button/option needed? I just became wondering..)
Back to top
View user's profile Send private message
XaLeX
Expert Cheater
Reputation: 0

Joined: 19 Aug 2008
Posts: 226

PostPosted: Tue Aug 17, 2010 6:53 pm    Post subject: Reply with quote

Not really worth coding: if you need to make a permanent change use the memory window; if you need to make an undoable change i suggest using a script, so you can keep the original code in the [DISABLE] part and put yours under [ENABLE].
Back to top
View user's profile Send private message
praise4him
Newbie cheater
Reputation: 0

Joined: 30 Dec 2009
Posts: 19

PostPosted: Mon Aug 23, 2010 7:42 am    Post subject: Reply with quote

XaLeX wrote:
Not really worth coding: if you need to make a permanent change use the memory window; if you need to make an undoable change i suggest using a script, so you can keep the original code in the [DISABLE] part and put yours under [ENABLE].


You got me wrong. That's not what I meant.
I thought people would understand what I meant, but in that point, I was wrong.
What I meant was 'simple undo feature while EDITING TEXT.'
AA editor has copy, paste, auto-indent tab, word-coloring and etc. These makes it almost a PERFECT standalone code editor. But there's only one feature that is missing. a simple (text) undo. I think just notepad's 'undo' would do, not multiple steps 'undo'(not neccessary).

anyways, I agree to what you wrote. I always write and keep [DISABLE] part for making my life easier. Razz
Back to top
View user's profile Send private message
XaLeX
Expert Cheater
Reputation: 0

Joined: 19 Aug 2008
Posts: 226

PostPosted: Mon Aug 23, 2010 8:27 am    Post subject: Reply with quote

oh, I must have confused the auto assembler with the memory view, sorry.
Anyway, you can add it in the code yourself, it's as easy as sending a EM_UNDO message to the TEdit holding the text.
Back to top
View user's profile Send private message
praise4him
Newbie cheater
Reputation: 0

Joined: 30 Dec 2009
Posts: 19

PostPosted: Mon Aug 23, 2010 9:40 am    Post subject: Reply with quote

Quote:
Anyway, you can add it in the code yourself, it's as easy as sending a EM_UNDO message to the TEdit holding the text.


Umm.. sounds difficult to me.. (unless ce source is open, isn't it?)

To embed them into ce,
1. I should locate PostMessage by 'Enumerate Dll's and Symbols' and press ctrl+f to find 'PostMessage' and note its address.
2. write a script pushing the values required.
BOOL WINAPI PostMessage(
__in_opt HWND hWnd,
__in UINT Msg,
__in WPARAM wParam,
__in LPARAM lParam
);
Msg would be EM_UNDO found on include folder.
hWnd can be found by some api. maybe enumeratechildwindows?
no params required.
3. embed this code into ce...? How..?

well, sorry.. This IS impossible to me..
can you give me an advice?



I am sorry. I found the source on main page. although it's 5.6 not 5.6.1. (I prefer 5.6.1) and it's written that it is delphi-coded, which I totally don't know. I doubt I can compile that thing.. But let me download source and see how it works. I think this is as far as I can go.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Mon Aug 23, 2010 10:54 am    Post subject: Reply with quote

it's easily added, you just create an OnClick on the popupmenu1 control's undo option and give it this code:
Code:

  assemblescreen.Undo;

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