Sign in to follow this  
Followers 0
Ahmedn1

How to hold down a key

4 posts in this topic

I'm trying to do it in C#

AutoItX3Lib.AutoItX3 au = new AutoItX3Lib.AutoItX3();
au.Send("{LEFT down}");

But it is not working with me

I tried to do it in a loop

like

au.Send("{LEFT 100}")

it is working but not effective for me

my main problem is I try to send keys to a game like need for speed

and these games need the real effect of holding down the key (not just pressing it multiple times)

if you played such games, you will get my point

So, any help?

Thanks for you all

Share this post


Link to post
Share on other sites



Welcome to AutoIt and the forum!

Did you read the forum rules?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

yes I did but the issue is that I'm not trying to concentrate mainly on games

I need this to be in general

I just gave an example

Share this post


Link to post
Share on other sites

yes I did but the issue is that I'm not trying to concentrate mainly on games

I need this to be in general

I just gave an example

Rules are clear.

Topic closed and lets keep it that way.


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0