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 


fix synedit spaces

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

Joined: 29 Mar 2021
Posts: 64

PostPosted: Sat Apr 09, 2022 11:49 pm    Post subject: fix synedit spaces Reply with quote

How can i remove these spaces on SynEdit?
https://postimg.cc/RJf7Z3fc


I want it to immediately go to the end here
https://postimg.cc/1gtDN7wR
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 31

Joined: 16 Feb 2017
Posts: 1234

PostPosted: Sun Apr 10, 2022 4:12 am    Post subject: Reply with quote

It's not a very healthy behavior.
But it allows you to get ideas from within the code.

Code:
local screen

for i = 0, MainForm.ComponentCount-1 do               -------a
 local c = MainForm.Component[i]
 if c.getClassName() == "TfrmAutoInject" then       ------------b
 --print(("%s : %s"):format(c.Name, c.getClassName()))
 screen = c --Assemblescreen
 end
end

for i=0, screen.Assemblescreen.Lines.Count -1 do
 aa=screen.Assemblescreen.Lines[i]:gsub("%s+"," ") -------c     ------d
 print(aa)
end
-- screen.Width=300                    ----------e

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
HexaG0n
Advanced Cheater
Reputation: 0

Joined: 29 Mar 2021
Posts: 64

PostPosted: Sun Apr 10, 2022 7:54 am    Post subject: Reply with quote

Nevermind, I figured it out by using eoHideRightMargin:

SynEdit.Options = '[eoHideRightMargin]'
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