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 


Hiding the scanner

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
GenericDM
How do I cheat?
Reputation: 0

Joined: 01 Apr 2018
Posts: 8

PostPosted: Sun Apr 01, 2018 5:43 pm    Post subject: Hiding the scanner Reply with quote

I've got everything I need in my table and I wanna have CE in the corner of my monitor, but whenever I put it in the corner the scanning part takes up the entire thing.
I've seen some other table do it but I'm not sure how Confused
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 51

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Sun Apr 01, 2018 5:49 pm    Post subject: Reply with quote

Code:
function disableCompactMode()
   control_setVisible(wincontrol_getControl(MainForm, 0), true)
   control_setVisible(wincontrol_getControl(MainForm, 2), true)
   control_setVisible(wincontrol_getControl(MainForm, 3), true)
end

function enableCompactMode()
   control_setVisible(wincontrol_getControl(MainForm, 0), false)
   -- control_setVisible(wincontrol_getControl(MainForm, 2), false) -- Hides sig
   control_setVisible(wincontrol_getControl(MainForm, 3), false)
end

function disableHeaderSorting()
   local addressList = getAddressList()
   local addressListHeader = component_getComponent(addressList, 1)
   setMethodProperty(addressListHeader, 'OnSectionClick', nil)
end

function disableDragDrop()
   local addressList = getAddressList()
   local addressListTreeview = component_getComponent(addressList, 0)
   setMethodProperty(addressListTreeview, 'OnDragOver', nil)
   setMethodProperty(addressListTreeview, 'OnDragDrop', nil)
   setMethodProperty(addressListTreeview, 'OnEndDrag', nil)
end


Try the "enableCompactMode" one, but I also use the "disableHeaderSorting" and "disableDragDrop" ones as well and the "disableCompactMode" is just useful if you find you what to look for something later on.

_________________
Back to top
View user's profile Send private message Visit poster's website
GenericDM
How do I cheat?
Reputation: 0

Joined: 01 Apr 2018
Posts: 8

PostPosted: Sun Apr 01, 2018 6:03 pm    Post subject: Reply with quote

Is there a way to re-enable the sorting and drag'n'drop?
drag'n'drop is useful when im making the table but not when im using it
sorting is still a pain in the rear when I accidentally click on it so idc about that
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 51

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Sun Apr 01, 2018 6:46 pm    Post subject: Reply with quote

Well I was going to say, you'd need to store the functions then restore then as needed; but when I tried it I only got errors.
Code:
local OnDragOver = nil
local OnDragDrop = nil
local OnEndDrag = nil
function disableDragDrop1()
   local addressList = getAddressList()
   local addressListTreeview = component_getComponent(addressList, 0)
   OnDragOver = getMethodProperty(addressListTreeview, 'OnDragOver')
   OnDragDrop = getMethodProperty(addressListTreeview, 'OnDragDrop')
   OnEndDrag = getMethodProperty(addressListTreeview, 'OnEndDrag')
   setMethodProperty(addressListTreeview, 'OnDragOver', nil)
   setMethodProperty(addressListTreeview, 'OnDragDrop', nil)
   setMethodProperty(addressListTreeview, 'OnEndDrag', nil)
end
function disableDragDrop2()
   local addressList = getAddressList()
   local addressListTreeview = component_getComponent(addressList, 0)
   OnDragOver = addressListTreeview.OnDragOver
   OnDragDrop = addressListTreeview.OnDragDrop
   OnEndDrag = addressListTreeview.OnEndDrag
   setMethodProperty(addressListTreeview, 'OnDragOver', nil)
   setMethodProperty(addressListTreeview, 'OnDragDrop', nil)
   setMethodProperty(addressListTreeview, 'OnEndDrag', nil)
end
function enableDragDrop()
   local addressList = getAddressList()
   local addressListTreeview = component_getComponent(addressList, 0)
   setMethodProperty(addressListTreeview, 'OnDragOver', OnDragOver)
   setMethodProperty(addressListTreeview, 'OnDragDrop', OnDragDrop)
   setMethodProperty(addressListTreeview, 'OnEndDrag', OnEndDrag)
end


Code:
Error:This type of method:TDragOverEvent is not yet supported
Script Error
Error:This type of method:TDragDropEvent is not yet supported
Script Error
Error:This type of method:TEndDragEvent is not yet supported
Script Error


So as far as I know you would need to restart CE. But I was mistaken I use the "disableCompactMode" and "disableHeaderSorting", but I do leave drag and drop enabled. It's kinda helpful. But resorting the table after clicking the header sucks.

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