ShadowIRON Posted April 14, 2016 Share Posted April 14, 2016 Hello! I've made a pretty simple script: #include <Constants.au3> #include <Misc.au3> Local $hDLL = DllOpen("user32.dll") While 1 If _IsPressed("46", $hDLL) Then ; Wait until key is released. While _IsPressed("46", $hDLL) Send("{S 2}") Sleep(250) WEnd ElseIf _IsPressed("1B", $hDLL) Then ExitLoop EndIf Sleep(250) WEnd DllClose($hDLL) All its supposed to do press S 2 times every 250ms while i'm holding down the 'F' key. It is working properly,however it doesn't run under another program. I wanna start a project where i can clear certain levels in games. I'm trying with Dark souls 3 atm, and the script seems like "not running" while im inside the game, however if i press alt+tab and go into a notepad or something and i press 'F' it still works. Is there any solution for that? Or should i just try with other games? Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted April 15, 2016 Moderators Share Posted April 15, 2016 @ShadowIRON welcome to the forum. Unfortunately you have missed the forum rules on your way in. Please review them now, particularly the section regarding game automation, and you will see why this thread is locked. Hope to see you soon with a legitimate question. "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