School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
Welcome to Dream.In.Code
Become an Expert!

Join 340,125 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 4,061 people online right now. Registration is fast and FREE... Join Now!



Send Keys To Minimized window

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

#1 Cha0sBG  Icon User is offline

  • D.I.C Head
  • Icon
  • Group: Contributors
  • Posts: 149
  • Joined: 09-April 09


Dream Kudos: 50

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

  • apt-get install DIC.bin
  • Icon
  • View blog
  • Group: Admins
  • Posts: 16,211
  • Joined: 26-July 07


Dream Kudos: 12400

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

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
  • Group: Contributors
  • Posts: 149
  • Joined: 09-April 09


Dream Kudos: 50

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

  • apt-get install DIC.bin
  • Icon
  • View blog
  • Group: Admins
  • Posts: 16,211
  • Joined: 26-July 07


Dream Kudos: 12400

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

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
  • View blog
  • Group: Greeters
  • Posts: 1,121
  • Joined: 02-March 08


Dream Kudos: 50

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
  • Group: Contributors
  • Posts: 149
  • Joined: 09-April 09


Dream Kudos: 50

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
  • View blog
  • Group: Greeters
  • Posts: 1,121
  • Joined: 02-March 08


Dream Kudos: 50

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
  • Group: Contributors
  • Posts: 149
  • Joined: 09-April 09


Dream Kudos: 50

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
  • View blog
  • Group: Greeters
  • Posts: 1,121
  • Joined: 02-March 08


Dream Kudos: 50

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
  • Group: Contributors
  • Posts: 149
  • Joined: 09-April 09


Dream Kudos: 50

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



Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month