Help Needed C# Menu?

Posts 1–6 of 6 · Page 1 of 1
'Add Module' Greyed out.


I was following this tutorial:http://www.mpgh.net/forum/33-visual-...odule-new.html

When I had to stop at the first step :/

I don't have an 'Add Module' selection xD!

Little help of what I'm doing wrong, or what I need to do instead.

~~~Resolved first problem, new problem at hand:


The 'Add Module' selection is there, I can't use it though!
Maybe modules are like classes in C# or it might be a namespace, I dont know.
Try the following:

Code:
class KeyModule
{
    [DllImport("User32.dll")] //fix up the calling convention yourself
    static extern int GetAsyncKeyState(long vKey);
    bool isKeyJustPressed(long vKey)
    {
        return (GetAsyncKeyState(vKey)&1);
    }

    bool isKeyDown(long vKey)
    {
        return (GetAsyncKeyState(vKey)>0);
    }
}
usage:
Code:
KeyModule myKeyModule = new KeyModule();
if(myKeyModule.isKeyDown(0x79)==true) //if F10 is held down
{
    //Your leeched code here
}
Maybe wrong visual basic if u have 2008 and he have 2010
Try to update your visual basic
this is c# section not vb
Quote Originally Posted by XxTylerxX View Post
this is c# section not vb
u can make one
but its rather difficulter then VB.
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us