CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2008
    Location
    India
    Posts
    408

    Question Restricting inputs

    Hello friends,

    I am trying to automate a windows application. During the execution, the user is not supposed to lose the focus of the window. So I am trying to restrict the keyboard and mouse inputs for a certain period. How can I achieve this?

    Regards,
    Bharani
    Rate the posts which you find useful

  2. #2
    Join Date
    Jan 2006
    Location
    18° 32' N / 73° 52' E
    Posts
    416

    Re: Restricting inputs

    What do you exactly mean by "the user is not supposed to lose the focus of the window" ?
    Do you want that window to stay on top? and yet you intend to use already opened form ?

    well i dont understand your exact requirment.. but you can just try doing something like this...

    Code:
    1. frmWindow.Show(this);
    2. frmWindow.ShowDialog(this);
    I think this should work...

  3. #3
    Join Date
    Jan 2008
    Location
    India
    Posts
    408

    Re: Restricting inputs

    Hi

    I'm actually controlling an application through my program. The application which I control must stay on top and the user should not interrupt the action which is currently going on in the application.

    Regards
    Bharani
    Rate the posts which you find useful

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured