fredb47 Posted May 11, 2019 Share 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 Link to comment Share on other sites More sharing options...
water Posted May 11, 2019 Share 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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted May 11, 2019 Moderators Share 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! Link to comment Share on other sites More sharing options...
Recommended Posts