Jump to content
fredb47

Send a key to a game - (Locked)

Recommended Posts

How do I send a key stroke to a game (Shroud of the Avatar) window? 

I used this code I found in the forums;

HotKeySet("1", "Main")

Func Main()
    while 1
        If _IsPressed(ASC 060) Then ; If 1 key is pressed
            ExitLoop ; Exit Loop
         EndIf
         ToolTip("Sending...",0,0)
        send("8")
        Sleep(30)
    WEnd
EndFunc

Share this post


Link to post
Share on other sites

Welcome to AutoIt and the forum!

Seems you missed to read the forum rules on your way in. Please do so now and you will understand why you won't get any help on your subject.
Game automation of any kind is not permitted here.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2019-03-02 - Version 1.3.5.0) - Download - General Help & Support - Example Scripts - Wiki
Outlook Tools (2019-01-22 - Version 0.1.0.0) - Download - General Help & Support
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

Welcome to the AutoIt forum.

Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked.

See you soon with a legitimate question I hope.

The Moderation team

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×
×
  • Create New...