| View previous topic :: View next topic |
| Author |
Message |
praise4him Newbie cheater
Reputation: 0
Joined: 30 Dec 2009 Posts: 19
|
Posted: Sun Aug 15, 2010 12:46 am Post subject: Undo feature in Auto Assembly editor? |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25831 Location: The netherlands
|
Posted: Sun Aug 15, 2010 3:57 am Post subject: |
|
|
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 |
|
 |
noko_112 Grandmaster Cheater
Reputation: 0
Joined: 09 Jun 2009 Posts: 585
|
Posted: Sun Aug 15, 2010 4:26 am Post subject: |
|
|
| Tought Ctrl+Z worked...
|
|
| Back to top |
|
 |
praise4him Newbie cheater
Reputation: 0
Joined: 30 Dec 2009 Posts: 19
|
Posted: Sun Aug 15, 2010 5:23 am Post subject: |
|
|
| 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 |
|
 |
XaLeX Expert Cheater
Reputation: 0
Joined: 19 Aug 2008 Posts: 226
|
Posted: Tue Aug 17, 2010 6:53 pm Post subject: |
|
|
| 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 |
|
 |
praise4him Newbie cheater
Reputation: 0
Joined: 30 Dec 2009 Posts: 19
|
Posted: Mon Aug 23, 2010 7:42 am Post subject: |
|
|
| 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.
|
|
| Back to top |
|
 |
XaLeX Expert Cheater
Reputation: 0
Joined: 19 Aug 2008 Posts: 226
|
Posted: Mon Aug 23, 2010 8:27 am Post subject: |
|
|
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 |
|
 |
praise4him Newbie cheater
Reputation: 0
Joined: 30 Dec 2009 Posts: 19
|
Posted: Mon Aug 23, 2010 9:40 am Post subject: |
|
|
| 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 |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25831 Location: The netherlands
|
Posted: Mon Aug 23, 2010 10:54 am Post subject: |
|
|
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 |
|
 |
|