kokice Posted July 24, 2008 Share Posted July 24, 2008 While 1 Send('{!}') Sleep(500) WEnd this code above works fine when i open Notepad, but in my gamehowever in the chat box it will not type it i even tried While 1 WinWaitActive("game title") Send('{!}') Sleep(500) WEnd and this above still wont work Link to comment Share on other sites More sharing options...
Decker87 Posted July 24, 2008 Share Posted July 24, 2008 Have you tried adding a messagebox to make sure it is looping? Have you tried using SendKeepActive? Link to comment Share on other sites More sharing options...
Alodar99 Posted July 24, 2008 Share Posted July 24, 2008 Have you tried it without the "Curley Brackets". Send('!') [font="Franklin Gothic Medium"]---Al[/font] Link to comment Share on other sites More sharing options...
kokice Posted July 24, 2008 Author Share Posted July 24, 2008 yeah its looping i just tried with non curley brackets still doesn't work muttley Link to comment Share on other sites More sharing options...
crzftx Posted July 24, 2008 Share Posted July 24, 2008 A lot of games will not allow you to send keys in the way AutoIt does. There have been many threads on this, and I don't remember anybody ever finding an AutoIt based solution. Maybe trying to imitate the keyboard drivers or something, I have no idea. Link to comment Share on other sites More sharing options...
Backnor Posted July 24, 2008 Share Posted July 24, 2008 What game are you trying to use this code in? Link to comment Share on other sites More sharing options...
cal Posted July 24, 2008 Share Posted July 24, 2008 also have a look at the keydown delay. Some games can't handle the default value. I had to do for an old game. Hmmm...... Found the old script in my "not needed" dir. Opt("SendKeyDownDelay", 55) I had to bump it all the way up to 55 before GTA would see keystrokes. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now