Jump to content

Script Help


Recommended Posts

Im working ona script for grand Theft Auto: San Andreas. I have the function and the hotkey set up so when i open the program, i can hit the hotkey and start the script. the script inputs whatever codes I typed in for a way of putting in cheat codes faster than i can type them.

this is what it looks like:

CODE

hotkeyset("{F1}", "start")

while 1

sleep(100)

wend

func start()

hotkeyset("{F1}", "start")

sleep(1000)

send("baguvix")

sleep(500)

send("fullclip")

EndFunc

the "baguvix" and "fullclip" sends are the two codes i have in right now. I tested in notepad to make sure the text was sent, which it was. In the game however, i can see the character moving as if i were pressing the keys, but the codes never activate. any ideas on what i can do to fix that?

Link to comment
Share on other sites

I know nothing about Grand Theft Auto: San Andreas but I'd think you would probably have to hit enter or something before you could start typing.

Send("{enter}")

Send("fullclip{enter}")

is what I'd think you would actually have to do.

If you have to hit some combination like "ctrl-x" like in simcity then use

Send("^x")

Send("fullclip{enter}")

btw, "^" = ctrl, "!" = alt, "+" = shift

Link to comment
Share on other sites

well, as far as the game goes, it doesn't require an {enter} press, however, ill try it just for shits and giggles.

EDI: FIXED IT! the problem is that the game couldn't keep up with how fast the script was inputting keys. I added a delya after every key press and presto, cheat activated.

Edited by frixionburne
Link to comment
Share on other sites

BAH! now only works liek 10% of the time. ok so heres the criteria for the inputting of codes.

1) code is keypresses, there is no "chatbox" to input them in. More or less you enter game, type a few letters, and the code pops.

2) I've tried adding huge delays, delays even slower than a 5 year old with palsy would type, and that works maybe 10% of the time.... still open to suggestions.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...