Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
hi every body
i have some code in a method and i want my app run in windows start-up and go to system try so I want if someone pressed Ctrl+G my method run in background and paste some text in windows clipboard. bu i don't know how to do like this, i search all the internet and fine a lot of code but i was unsuccessful,
my app is a windows form in c#.
please help if you know,
thanks in advance
Posted
Comments
[no name] 22-Oct-14 15:19pm    
What you are searching for should be "global keyhook"
nashalj 22-Oct-14 15:22pm    
my app is a windows form application and i don't know how to use "global keyhook" in a windows form.
[no name] 22-Oct-14 15:51pm    
So? That is why they call it research and why Google was invented. Use Google and do some research.
nashalj 22-Oct-14 16:01pm    
i did it as i said in my question but nothing useful. if you have a sample and simple code and example, please help me to get rid of this problem.
[no name] 22-Oct-14 16:05pm    
So, far there is no problem "to help you get rid of". You just said that that you was unsuccessful, whatever you think that means. I got almost 6000 results for a simple google search and you found nothing at all?

1 solution

First hit on Google for me:
A Simple C# Global Low Level Keyboard Hook[^]

Give it a try...
 
Share this answer
 
Comments
nashalj 26-Oct-14 14:38pm    
thanks for your help

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900