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 


[SOLVED] The problem with the form "bsNone"

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
GradenT
Newbie cheater
Reputation: 0

Joined: 06 May 2012
Posts: 17

PostPosted: Thu Sep 20, 2012 12:41 pm    Post subject: [SOLVED] The problem with the form "bsNone" Reply with quote

Hello Dark Byte !

Tell us how we can move the form "bsNone" for the picture.
Internet search has not given anything concrete.

In Visual Basic 2010, it looks like this:

===================================================================
Code:



    Dim b As Integer

    Private Property a As Integer

    Private Sub PictureBox1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseDown
        a = Control.MousePosition.X - Me.Location.X
        b = Control.MousePosition.Y - Me.Location.Y
    End Sub
    Private Sub PicturetBox1_MouseMove(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseMove
        If e.Button = MouseButtons.Left Then
            Dim newPoint As New System.Drawing.Point()
            newPoint = Control.MousePosition
            newPoint.X = newPoint.X - (a)
            newPoint.Y = newPoint.Y - (b)
            Me.Location = newPoint
        End If
    End Sub


============================================================


Tried to do something like this in a generate generic trainer "lua script: from table", did not work.
That's the problem.
You are the only hope.


Last edited by GradenT on Tue Oct 30, 2012 9:25 am; edited 1 time in total
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Thu Sep 20, 2012 3:00 pm    Post subject: Reply with quote

Give the image an onMouseDown event and put in there this code
Code:

form_dragNow(form)

Replace (form) with the formname

_________________
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
GradenT
Newbie cheater
Reputation: 0

Joined: 06 May 2012
Posts: 17

PostPosted: Thu Sep 20, 2012 10:24 pm    Post subject: The problem with the form "bsNone" Reply with quote

Thank you for responding.

I have tried many options and they all produce an error.
I took a screenshot.
Tell me what the problem is ?



CE.JPG
 Description:
Screenshot
 Filesize:  303.96 KB
 Viewed:  9259 Time(s)

CE.JPG


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Fri Sep 21, 2012 2:25 am    Post subject: Reply with quote

not bsNone but the name of the form

In your case probably CETrainer

Also, close the formdesigner (the bar at top) when testing so the form turns into a normal form, else it might override the mousedown

_________________
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
GradenT
Newbie cheater
Reputation: 0

Joined: 06 May 2012
Posts: 17

PostPosted: Sat Sep 22, 2012 3:35 am    Post subject: Reply with quote

It works.
Thank you!
Back to top
View user's profile Send private message
GradenT
Newbie cheater
Reputation: 0

Joined: 06 May 2012
Posts: 17

PostPosted: Mon Sep 24, 2012 3:43 am    Post subject: Reply with quote

Decision:

Code:
function CEImage1MouseDown(sender, button, x, y)
form_dragNow(CETrainer)
end
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