Move bsNone
Posted: Sun Aug 27, 2017 8:58 pm
Hello, I wanted to know If there is a possible way to move a Trainer while It's borderStyle is bsNone, Is there a function for it or something?
Community Cheat Tables of Cheat Engine
https://fearlessrevolution.com/
Code: Select all
local frm = createForm()
frm.Width,frm.Height,frm.Name = 300,100,"TestForm"
frm.OnClose = function()return caFree end -- caFree -> auto destroy form on close
-- frm.BorderStyle = bsNone -- remove comment if ready to test bsNone
--
local prevColor
local Label = createLabel(frm)
Label.AutoSize = false -- set not autosize first, else caption setting may change size
Label.Left,Label.Top,Label.Width,Label.Height = 0,0,30,15
Label.Caption = 'here!'
-- may be useful effect
Label.OnMouseEnter = function(self) -- show move anchor on hover
self.Caption='MOVE';self.Color,prevColor = 0xccffcc,self.Color
end
Label.OnMouseLeave = function(self) -- hidden on not hover
self.Caption='';self.Color = prevColor
end
Label.OnMouseDown = function()frm.DragNow()end -- DragNow is a form method
Label.OnDblClick = frm.Destroy-- left a way to destroy form with bsNone