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 


How to get SynEdit Selected Text?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
panraven
Grandmaster Cheater
Reputation: 62

Joined: 01 Oct 2008
Posts: 959

PostPosted: Thu Mar 05, 2020 8:05 am    Post subject: How to get SynEdit Selected Text? Reply with quote

And also SelStart/SelLength equivalent of Edit?

Thank you~

_________________
- Retarded.
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: Thu Mar 05, 2020 8:22 am    Post subject: Reply with quote

in git now: SelText, SelStart, SelEnd
_________________
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
panraven
Grandmaster Cheater
Reputation: 62

Joined: 01 Oct 2008
Posts: 959

PostPosted: Thu Mar 05, 2020 9:40 am    Post subject: Reply with quote

Dark Byte wrote:
in git now: SelText, SelStart, SelEnd


Thank you~

btw it seems SynEdit also lack a default popup menu (eg. Cut/Copy...FInd/Replace), can it be added?

_________________
- Retarded.
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: Thu Mar 05, 2020 2:07 pm    Post subject: Reply with quote

There is no default popup, but you can always make it in lua using a popupmenu

I've just added the properties CanPaste, CanRedo and CanUndo
and the methods:
CopyToClipboard()
CutToClipboard()
PasteFromClipboard()
ClearUndo()
Redo()
Undo()
MarkTextAsSaved()
ClearSelection()
SelectAll()

which should be enough to build a nice menu

_________________
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
panraven
Grandmaster Cheater
Reputation: 62

Joined: 01 Oct 2008
Posts: 959

PostPosted: Thu Mar 05, 2020 2:38 pm    Post subject: Reply with quote

Dark Byte wrote:
There is no default popup, but you can always make it in lua using a popupmenu

I've just added the properties CanPaste, CanRedo and CanUndo
and the methods:
CopyToClipboard()
CutToClipboard()
PasteFromClipboard()
ClearUndo()
Redo()
Undo()
MarkTextAsSaved()
ClearSelection()
SelectAll()

which should be enough to build a nice menu


Thank you very much the hard quick and extensive works !!!

ADDED:
Sorry, just come up with an idea for requesting.

Sometime, a line in AA script can be very long, for instance,
an aobscanregion command with starting and ending mono_function address in scan range.

A way for AA line continuation would be nice, isn't it ? Smile

Thank you~

_________________
- Retarded.
Back to top
View user's profile Send private message
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