Jump to content
Sign in to follow this  
kokice

simple code wont work in my game? plz take a look

Recommended Posts

kokice

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

Share this post


Link to post
Share on other sites
Decker87

Have you tried adding a messagebox to make sure it is looping?

Have you tried using SendKeepActive?

Share this post


Link to post
Share on other sites
Alodar99

Have you tried it without the "Curley Brackets".

Send('!')


[font="Franklin Gothic Medium"]---Al[/font]

Share this post


Link to post
Share on other sites
kokice

yeah its looping i just tried with non curley brackets still doesn't work muttley

Share this post


Link to post
Share on other sites
crzftx

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.

Share this post


Link to post
Share on other sites
Backnor

What game are you trying to use this code in?

Share this post


Link to post
Share on other sites
cal

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.