Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2012/5.0 > C# 2012/5.0 General Discussion
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 31st, 2014, 04:35 PM
Registered User
 
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.





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 04:23 AM
Use Hand Held Scanner Mahavishnu Classic ASP Professional 1 November 16th, 2004 12:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.