Jump to content

How to hold down a key


Ahmedn1
 Share

Recommended Posts

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

Link to comment
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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

  • Developers

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 etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...