Turn your Mobile Apps into m-commerce apps – Learn More!

You're Browsing As A Guest! Register Now...
Become a C# Expert!

Join 415,728 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 1,736 people online right now.Registration is fast and FREE... Join Now!



Send Keys To Minimized window Rate Topic: -----

#1 Cha0sBG  Icon User is offline

  • D.I.C Head
  • Icon

Reputation: 4
  • View blog
  • Posts: 151
  • Joined: 09-April 09


Dream Kudos: 50

Share |

Send Keys To Minimized window

Post icon  Posted 10 April 2009 - 12:06 PM

Hello,
I was wondering if anyone can help me. I want to send enter keys to a window. No matter if it's minimized or not. Searched a lot for this but couldn't find it. So i'm hopping that someone from here can help me :)

Regards:
~Cha0sBG
Was This Post Helpful? 0
  • +
  • -


#2 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • Icon

Reputation: 1398
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07


Dream Kudos: 12950

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net, jQuery

Re: Send Keys To Minimized window

Posted 10 April 2009 - 12:17 PM

In order to send keyboard input to a window that doesn't have focus (I.e; minimized) you're going to need to use low level keyboard hooks
Was This Post Helpful? 0
  • +
  • -

#3 Cha0sBG  Icon User is offline

  • D.I.C Head
  • Icon

Reputation: 4
  • View blog
  • Posts: 151
  • Joined: 09-April 09


Dream Kudos: 50

Re: Send Keys To Minimized window

Posted 10 April 2009 - 12:34 PM

That's for a console app as i read.
Will it be appropriate to ask u to give me an example with a Forms Application ? and the process handle to be obtained from a listbox with the name listBox1
key i need to send is enter :D
If u do that i will be very grateful :)
Was This Post Helpful? 0
  • +
  • -

#4 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • Icon

Reputation: 1398
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07


Dream Kudos: 12950

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net, jQuery

Re: Send Keys To Minimized window

Posted 10 April 2009 - 12:43 PM

That is an example only. That same code can be implemented in either a console application or a WinForms application
Was This Post Helpful? 0
  • +
  • -

#5 papuccino1  Icon User is offline

  • His name was Robert Paulson.
  • Icon

Reputation: 55
  • View blog
  • Posts: 1,121
  • Joined: 02-March 08


Dream Kudos: 100

Re: Send Keys To Minimized window

Posted 10 April 2009 - 01:02 PM

You building yourself a keylogger you sly dog you. ;)
Was This Post Helpful? 0
  • +
  • -

#6 Cha0sBG  Icon User is offline

  • D.I.C Head
  • Icon

Reputation: 4
  • View blog
  • Posts: 151
  • Joined: 09-April 09


Dream Kudos: 50

Re: Send Keys To Minimized window

Posted 10 April 2009 - 01:17 PM

nah not a keylogger lolz ...... i want to sendkeys not get them :D i'm building an autologin for a game. It's totally legal ^^

PS: WTH is this tittle "New D.I.C Head" WtF?!?!?! is the admin drunk or something ;D :D

This post has been edited by Cha0sBG: 10 April 2009 - 01:17 PM

Was This Post Helpful? 0
  • +
  • -

#7 papuccino1  Icon User is offline

  • His name was Robert Paulson.
  • Icon

Reputation: 55
  • View blog
  • Posts: 1,121
  • Joined: 02-March 08


Dream Kudos: 100

Re: Send Keys To Minimized window

Posted 10 April 2009 - 01:24 PM

I think it's just an intended pun.
Was This Post Helpful? 0
  • +
  • -

#8 Cha0sBG  Icon User is offline

  • D.I.C Head
  • Icon

Reputation: 4
  • View blog
  • Posts: 151
  • Joined: 09-April 09


Dream Kudos: 50

Re: Send Keys To Minimized window

Posted 10 April 2009 - 01:25 PM

i'm looking at the example and i see how it hooks to the process but i don't understand how to send the enter key etc o.O either i'm a complete moron or i don't know :D
Was This Post Helpful? 0
  • +
  • -

#9 papuccino1  Icon User is offline

  • His name was Robert Paulson.
  • Icon

Reputation: 55
  • View blog
  • Posts: 1,121
  • Joined: 02-March 08


Dream Kudos: 100

Re: Send Keys To Minimized window

Posted 10 April 2009 - 02:53 PM

Are you by any chance making a automatic logger for Darkfall Online? xD
Was This Post Helpful? 0
  • +
  • -

#10 Cha0sBG  Icon User is offline

  • D.I.C Head
  • Icon

Reputation: 4
  • View blog
  • Posts: 151
  • Joined: 09-April 09


Dream Kudos: 50

Re: Send Keys To Minimized window

Posted 10 April 2009 - 03:14 PM

nop ^^ other game but lets not get offtopic :D
Was This Post Helpful? 0
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users