Closed Thread
Results 1 to 2 of 2

Thread: Taking actions in MINIMIZED window? Is it even possible?

  1. #1
    anonymousb is offline Newbie
    Join Date
    Mar 2010
    Posts
    1
    Rep Power
    0

    Taking actions in MINIMIZED window? Is it even possible?

    Hello!

    I'm working on my frist C# "serious" project.

    I have a small, simple online game written by my older brother and I want to write a simple bot for this game.

    I want to write a C# bot that will be clicking right mouse button every 5 seconds in game window. It's easy, because there's a lot info about mouse/keyboard events in C#.

    So the hard part - I want this window to be minimized at the same time.

    Is there any way of doing this? Some hook, hack, bug anything like that? I want it to work under Windows 7 Ultimate or at least Windows XP.

    Any ideas?

    Thanks a lot!

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Davide's Avatar
    Davide is offline Programming God
    Join Date
    Dec 2009
    Location
    Manchester, UK
    Posts
    507
    Blog Entries
    8
    Rep Power
    11

    Re: Taking actions in MINIMIZED window? Is it even possible?

    Yes, i am sure you can do that, it doesn't matter if it's minimized. It doesn't even have to be displayed:
    Code:
    Form1 newForm = new Form1();
    newForm.MousePosition = 4;
    newForm.otherStuff = 2;
    newForm.Show(); //So you can change stuff without having to display the form
    Make sure you make a way to stop the mouse moving so you can close the bot.
    Are you a newbie programmer trying to learn C#? Check out my small tutorial: Visual C# Programming Basics

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Help with Taking turns..
    By johnm1191 in forum C# Programming
    Replies: 3
    Last Post: 04-25-2011, 11:35 PM
  2. create a new window without window.h
    By Kalanij in forum C and C++
    Replies: 14
    Last Post: 12-24-2008, 02:44 PM
  3. multiple actions in one form
    By phpforfun in forum PHP Development
    Replies: 8
    Last Post: 06-13-2008, 01:55 AM
  4. Application Starts Minimized
    By Lop in forum C# Programming
    Replies: 2
    Last Post: 05-01-2007, 09:55 PM

Tags for this Thread

Bookmarks

Posting Permissions

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