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 


C#, I need to learn it

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam
View previous topic :: View next topic  
Author Message
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Sun Dec 25, 2011 2:09 am    Post subject: C#, I need to learn it Reply with quote

halp
Back to top
View user's profile Send private message
gogodr
I post too much
Reputation: 125

Joined: 19 Dec 2006
Posts: 2041

PostPosted: Sun Dec 25, 2011 2:17 am    Post subject: Reply with quote

I can help you, what do you need to do?
Back to top
View user's profile Send private message MSN Messenger
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Sun Dec 25, 2011 2:29 am    Post subject: Reply with quote

I need one form that hides or shows form 2 which is entirely transparent but has an embedded swf AND that snaps to the coordinates of a window if it's open based on window name
Back to top
View user's profile Send private message
gogodr
I post too much
Reputation: 125

Joined: 19 Dec 2006
Posts: 2041

PostPosted: Sun Dec 25, 2011 2:38 am    Post subject: Reply with quote

on load of form 1 hide the form 2
to snap to the coodinates of a window you can use this

Code:

[StructLayout(LayoutKind.Sequential)]
        struct RECT
        {
            public int left;
            public int top;
            public int right;
            public int bottom;
        }

        [DllImport("user32.dll")]
        public static extern IntPtr FindWindow(String sClassName, String sAppName);

        [DllImport("user32.dll")]
        static extern bool GetWindowRect(IntPtr hWnd, out RECT rect);

       
                IntPtr Window = FindWindow(null, "Window Name");
                RECT rect;
                GetWindowRect(Window, out rect);


forms have subprograms inside their class Hide() and Show()
you can use
Form2.Hide();
or
Form2.Show();
Back to top
View user's profile Send private message MSN Messenger
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Tue Dec 27, 2011 3:54 am    Post subject: Reply with quote

Ok I have no idea where to put that code.
Back to top
View user's profile Send private message
1929394839292057839194958
Grandmaster Cheater Supreme
Reputation: 130

Joined: 22 Dec 2006
Posts: 1509

PostPosted: Tue Dec 27, 2011 5:25 am    Post subject: Reply with quote

Cryoma wrote:
Ok I have no idea where to put that code.
Read a fucking tutorial or a book or something. You can't know like nothing of the language and just expect to do things instantly
Back to top
View user's profile Send private message
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Tue Dec 27, 2011 2:05 pm    Post subject: Reply with quote

konr wrote:
Cryoma wrote:
Ok I have no idea where to put that code.
Read a fucking tutorial or a book or something. You can't know like nothing of the language and just expect to do things instantly

Yes I can it's worked up to this point.
Back to top
View user's profile Send private message
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Tue Dec 27, 2011 2:51 pm    Post subject: Reply with quote

Shrooms wrote:
give me something in return and I will do this for you.

Last time I fixed your puzzle bot under c#...

Steam games.
:\ All I have.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam 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