Jump to content
Sign in to follow this  
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 (NEW 2020-03-26 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2020-03-21 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEXGUI (NEW 2020-03-27 - Version 1.0.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - 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
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - 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


"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Share this post


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

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...