CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: vinayak4gargya

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Replies
    8
    Views
    1,091

    Re: Controlling mouse through keyboard

    Trust me . If it worked, i wouldnt be posting on this forum.
  2. Replies
    8
    Views
    1,091

    Re: Controlling mouse through keyboard

    Service or not. Any way to do it?
  3. Replies
    8
    Views
    1,091

    Re: Controlling mouse through keyboard

    Mouse Keys. Yes. But the problem is , i dont have a numpad.
  4. Replies
    8
    Views
    1,091

    Controlling mouse through keyboard

    Hi I want to create a service/app where i can control the mouse through my keyboard.
    Any tips to get me started? Will this involve hooks?
    Just a little push in the right direction.
  5. Replies
    1
    Views
    1,497

    Transmitting Microphone Data

    Hey all
    I didnt know what forum would be appropriate for this thread so i am just posting it here

    I want to use another computers microphone as a recording device on my computer.
    The computers...
  6. Re: [RESOLVED] Receiving Multiple Keyboard Hook Messages

    The problem has been solved, it was masking indeed.. only i wasnt masking the correct way . . .
  7. [RESOLVED] Receiving Multiple Keyboard Hook Messages

    Hey

    I have been having this problem of receiving multiple keyboard hook messages for every input. . .
    e.g. if i press 'h' once , i receive it twice!

    I have set the hook using...
  8. Replies
    7
    Views
    1,248

    Re: List out all the files in a folder

    Yep got it!
    Supposed to AND FileAttributes with FILE_ATTRIBUTE_DIRECTORY

    Thanks a bunch :)
  9. Replies
    7
    Views
    1,248

    Re: List out all the files in a folder

    Thanks A Lot!

    Although ,it does not search directory within a directory.
  10. Replies
    7
    Views
    1,248

    Re: List out all the files in a folder

    I am using Windows although I would be happy to port to Linux too.

    And is there some Non-MFC alternative?

    Thanks :)
  11. Replies
    7
    Views
    1,248

    List out all the files in a folder

    Could anyone tell me how to list out all the files in a folder?
    e.g. if I want to extract all the .jpeg files from a folder, how do i go about it?

    Any help would be appreciated.

    Thanks :)
  12. Replies
    3
    Views
    1,930

    Can Somebody Explain This Code??

    I didnt know where else to put this, so Im putting it here.. I found this code to lock folders on the web

    www.hackingethics.com/blog/wp-content/uploads/2008/05/lock.txt


    I would really...
  13. Replies
    5
    Views
    1,500

    Obtain hinstance for hdc

    Hi
    Is there a way to obtain the hinstance of my program from the hdc value??
    Just poking around!
  14. Replies
    1
    Views
    1,504

    Global Keyboard Hook

    Hi
    I am trying to set a global keyboard hook with this code:


    case WM_CREATE:
    hHookInst = LoadLibrary(TEXT("HookProcedure.dll"));
    hHookProc =...
  15. Replies
    22
    Views
    3,339

    Re: Snake

    Done it!!!!!
    There was definitely something overwriting the snake head!
    Of course the weird scoreline!
    See I print the scoreline --"Your Score __"
    Well I had declared this to be a static...
  16. Replies
    22
    Views
    3,339

    Re: Snake

    So what should the correct prototype be?
  17. Replies
    22
    Views
    3,339

    Re: Snake

    static BOOL bKeyPressed;
    static HBITMAP hBitmap;

    are the two variables I want in my code.
    If I compile it with them I have a problem.
    If I compile without them I dont have a problem
    Both...
  18. Replies
    22
    Views
    3,339

    Re: Snake

    Ok heres some more detail...


    case WM_TIMER:
    InvalidateRect(hwnd,NULL,TRUE);
    SetRect(&rect,pt[0][0].x,pt[0][0].y,pt[0][1].x,pt[0][1].y);
    int check;
    check =...
  19. Replies
    22
    Views
    3,339

    Re: Snake

    These are the values passed to MoveSnake

    - pt 0x00bd81a0 pt tagPOINT [2]*
    + [0] {x=0 y=30} tagPOINT
    + [1] {x=10 y=40} tagPOINT
    iDirect 1 int
    iLength 4 int

    after the function finishes...
  20. Replies
    22
    Views
    3,339

    Re: Snake

    Could this function be a problem?


    void NewGame(BOOL *bFoodOnScreen,int *iDirect, int *iSnakeSize,POINT pt[500][2],int *iScore)
    {
    int i;
    *bFoodOnScreen = FALSE;
    *iDirect = 4;
    *iScore =...
  21. Replies
    22
    Views
    3,339

    Re: Snake

    Heres WM_PAINT


    case WM_PAINT:
    hdc = BeginPaint(hwnd,&ps);

    SetIso(hdc,cxClient,cyClient); //Mapping mode

    hPen = CreatePen(PS_SOLID,5,RGB(255,255,255));
    hBrush =...
  22. Replies
    22
    Views
    3,339

    [RESOLVED] Snake

    Hi
    I am trying to build a simple snake game.
    I have pretty much done it. It works well but theres a little problem.
    if i try to add a static variable over the code that i have written, i get a...
  23. Replies
    6
    Views
    1,298

    Re: Changing Window Procedure

    oooh thanks a lot! So i need to hook into a process first?? Could somebody please elaborate on 'hooking'.. Or link to an article probably?
  24. Replies
    6
    Views
    1,298

    Re: Changing Window Procedure

    well basically i want to log all keystroke events...
    From the debugger it is evident that i get the foreground window... (a call to showwindow(hwnd,SW_HIDE) works)
    But the keystroke events in...
  25. Replies
    6
    Views
    1,298

    Changing Window Procedure

    Hi
    Is this code for changing an application's window procedure correct , cuz im having trouble with it



    while(TRUE)
    {
    hwnd = GetForegroundWindow();...
Results 1 to 25 of 38
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured