Jump to content
Sign in to follow this  
Ahmedn1

How to hold down a key

Recommended Posts

Ahmedn1

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
water

Welcome to AutoIt and the forum!

Did you read the forum rules?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Ahmedn1

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
Jos

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.


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     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  

×