fredb47 Posted May 11, 2019 Posted May 11, 2019 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
water Posted May 11, 2019 Posted May 11, 2019 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 2024-07-28 - Version 1.6.3.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 (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
Moderators JLogan3o13 Posted May 11, 2019 Moderators Posted May 11, 2019 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!
Recommended Posts