Sign in to follow this  
Followers 0
ianonyk

Auto Key Presser

5 posts in this topic

Hey guys, I'm new to AUTO IT, and I'm trying to build a program that check whenever user press "~" . It repeats "~" for 5 times with 1 second delay between. Could you guys show me the simplest way to do that. Thanks alot

Share this post


Link to post
Share on other sites



In the AutoIT help file, refer to HotKeySet, Send (or ControlSend), and Sleep. The help file will also be, helpful, whether you want 5 repeats and a 1 sec. delay, or a 1 sec. delay between the repeats. You are much more likely to receive help with problems arising from some code you've written.

Welcome to the Forum!


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

Welcome to AutoIt and the forum!

Can you please tell us which program you try to automate? Your keyboard has a repeat function - so why script it?


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

#4 ·  Posted (edited)

I'm trying to get a auto press for my game :P. BTW the built in function in window is repeat when you actually hold the key. I need it to "Key Down - Key Up" every time.  Could you guys demo a simple source code that do it? 

Edited by ianonyk

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