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 


Cheat Engine Forum Index
PostGo back to topic
DaSpamer
Grandmaster Cheater Supreme
Reputation: 52
Joined: 13 Sep 2011
Posts: 1578

PostPosted: Mon Dec 21, 2020 7:46 am    Post subject: CE Script Editor [Notepad +]

CE Lua Script and autoAssemble windows are great, but I felt that they lacked additional view,I sometime end up with dozen asm/lua scripts window open while testing.

Wrote a small script editor with Lua, AA, text syntax, allowing you also to change between the syntax at ease, write scripts and test them rather easily.

Can open up to *userdefined* views at once, can zoom in out, load scripts, save scripts, execute scripts.
I've also 'ripped' lua engine output memo and placed at bottom, one less window to worry about.
Also included toolbar (using TBitBtn that is not yet documented).
created close buttons & current tab highlight for TPageControl, note that it is quite hacky, and will flicker sometimes (on mouse enter/leave), but works great.

Some features I would like to implement, any requests/contributions/improvements are welcomed.

    • AA Templates
    • Session - open previous documents
    • Auto backup - store and restore unsaved files (similar behavior to notepad ++)
    • Project folder - quick access

    Put in auto run, in Cheat Engine -> Table you will have Script Editor (shortcut Ctrl+L)



    preview:

https://i.ibb.co/tqxsYyb/download.png
https://i.ibb.co/6JC5vpD/Screenshot-47.png

Code:
-- change log
   -- 23/12/2020
   -- add onmousemoveevent for pagecontrol parent (to redraw...)
   -- fixed form always being on top
   -- fixed middle mouse button not prompting to save before closing tab
   -- added right click to addresslist to edit scripts
      -- saving scripts from addresslist will update script data, but will not save the table*
   -- when closing ce it will prompt you to save all files
      -- if there are scripts that are unsaved script editor will popup, canceling will cancel CE shutdown
   -- window size & position is now saved in registry and will load from there..
   -- changed newtab hotkey (now CTRL+E) and fixed openFile hotkey
   -- fixed a small bug that AA scripts were not activated

   -- 27/12/2020
   -- reduced a bit toolbar dimensions so it would like decent for smaller monitors. (let me know if its too mch);
   -- some config options can be found at top of the script
   -- got rid of the additional findComponentByName call for readability
   -- add popup menu for syn edit
      -- added some templates
         -- Code Injection
         -- AOB Injection
         -- Full Code Injection
         -- * template address is fetched from the most recent (top-most memory viewer) for multi-memory viewer windows.
      -- Cheat Table framework code ([ENABLE][DISABLE]...)
      -- add an option to save to addresslist (only new (unsaved) tabs)
      -- added copy,cut,paste,undo/redo,select all options
   -- added event to remove orphan addresslist scripts tabs (when an auto assembler script is removed) -> fixing access violation when modifying non-existing scripts;
   -- fixed activating script reporting successful activation, when in fact it did not activate.
   -- fixed some typos
   -- added mouse event to output text to move caret to the error line (double click on the error line ...)
   -- added option to not show script editor on print (setting is saved to registry)
   -- added options to close all (modified) tabs when closing script window (setting is saved to registry)

   -- 02/01/2021
   -- Hooked Keystrokes array, and replaced Ctrl+N (newline hotkey) with Alt+N, and Ctrl+T (delete word) with Ctrl+D; (limited currently to CE v7.2)
      -- Ctrl+N will now open a new tab
         -- complete TSynEdit hotkeys --> https://github.com/ultibohub/Lazarus/blob/master/components/synedit/syneditkeycmds.pp#L1128
   -- Added find & replace
      -- Can search as plain text, whole word, case (in)sensitive, backwards and wrap around (notepad++ alike)
      -- 3 Search mode, Plain,Extended and Lua Pattern Matching, refer to lua patterns for more information (https://www.lua.org/pil/20.2.html)
      -- Added option to replace text, it supports %capture index (similiar to gsub)
         -- if search mode is set to Lua Pattern Matching, you may use up to 9 %capture indexes (%0 is the captured string),
            -- otherwise, in Plain and Extended you may use only %0 and %1 captured index (they're the same, the capture string);
      -- Added transparency to allow user to see better without having to close the window
      -- Added find(CTRL+F),find next(F3) and replace(CTRL+SHIFT+F) to the main menu, with hotkeys of course.
         -- current selected text will be auto assigned to the find box when opening search/replace window.
      -- Added a button to the toolbar

_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919


Last edited by DaSpamer on Sat Jan 02, 2021 8:20 am; edited 12 times in total
Back to top
View user's profile Send private message
Post reviews:   Approve 6
Author Review
ByTransient
Review: Approve
Post reference:
ReviewPosted: Mon Dec 21, 2020 8:48 am

Intelligence, idea and coding ..
+1 will be less than your mastery.
I hope these +'s will increase.

Back to top
View user's profile Send private message
Dark Byte
Review: Approve
Post reference:
ReviewPosted: Mon Dec 21, 2020 9:19 am


Back to top
View user's profile Send private message MSN Messenger
Lynxz Gaming
Review: Approve
Post reference:
ReviewPosted: Tue Dec 22, 2020 1:09 am

dope! really helpful
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Csimbi
Review: Approve
Post reference:
ReviewPosted: Tue Dec 22, 2020 4:24 am

That!
Back to top
View user's profile Send private message
predprey
Review: Approve
Post reference:
ReviewPosted: Thu Dec 24, 2020 5:13 pm


Back to top
View user's profile Send private message
AylinCE
Review: Approve
Post reference:
ReviewPosted: Sat Apr 10, 2021 2:42 pm

Thanks man ..
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display:  
Cheat Engine Forum Index


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites