Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 2012/5.0 > C# 2012/5.0 General Discussion
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
C# 2012/5.0 General Discussion Discussions about the C# 2012 language and tool not related to any specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2012/5.0 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 31st, 2014, 03:35 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Making a program thins it has a button held down

Im trying to manipulate a program to think it has a button held down but am having some problems.


when using this code it does send the button.
Code:
SendKeys.Send("{mybutton}");
But I have been trying to make the program think it was held down.

When adding more to it, it just acts like the button was pressed over and over.
Code:
SendKeys.Send("{mybutton}+{mybutton}+{mybutton}+");
Also, having it like this does nothing.
Code:
SendKeys.Send("{mybutton}{mybutton}{mybutton}");

Is there some code I'm missing that does this?
Any help would be appreciated.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Clearing an label and making button 2 work SteveDoeve C# 4.0 aka C# 2010 General Discussion 1 September 7th, 2011 04:59 PM
Making Server program Need Help Slick- Beginning VB 6 0 August 5th, 2006 05:44 PM
Please help with this am held up p2ptolu Classic ASP Databases 1 May 19th, 2005 07:43 AM
making a setup program matshediso VB How-To 0 January 27th, 2005 03:23 AM
Use Hand Held Scanner Mahavishnu Classic ASP Professional 1 November 16th, 2004 11:50 AM



All times are GMT -4. The time now is 07:48 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.