Jump to content
Sign in to follow this  
doublea500

Need Help

Recommended Posts

doublea500

I want to type something in a game. the name of the client is SRO_Client and lets say i wanted to type "hello its me doublea500"every 5 seconds and then click enter in the game right after i type it. im just learning to make scripts for auto it and im not sure how

can someone make a script for me please?

thanks! :P

Share this post


Link to post
Share on other sites
doublea500

i actually saw that already but the thing is that i want it to say it in the game and not the notepad

Share this post


Link to post
Share on other sites
ACS

Have you tried writing anything yet? That's the best way to learn something-- by doing.

Share this post


Link to post
Share on other sites
enaiman

"That" is explaining to you how to do it. What you will have to do is to get your app title and replace it in the script ... just "think" not expect some1 to give you everything on a silver platter.


SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Share this post


Link to post
Share on other sites
doublea500

ok im gonna try to write it

if i wanted to right something what would i have to type though?

THis is what i have so far... its really wrong i think lol

Global $Paused
HotKeySet("{F9}", "Pause")
HotKeySet("{ESC}", "Close")
HotKeySet("{F10}", "Start the enter login")
HotKeySet("{F11}", "Start type")


While 1
    Sleep(100)
WEnd

Func Pause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
    WEnd
EndFunc

Func Close()
    Exit 0
EndFunc

Func Start()
    While 1
        ControlSend("SRO_Client", "", "", "{ENTER}")
        Sleep(4000)
    Wend
EndFunc

Func Starte()
    While 1
    F("SRO_Client", "Hello all im doublea500.yahoo.com!")
        Sleep(500)
    Wend
EndFunc

Share this post


Link to post
Share on other sites
enaiman

ok, I can see you did something :P

First: you cannot have white spaces in a function name.

The help file says for HotKeySet

Sets a hotkey that calls a user function.

HotKeySet ( "key" [, "function"] )

Parameters

key The key combination to use as the hotkey. Same format as Send().

function [optional] The name of the function to call when the key is pressed. Not specifying this parameter will unset a previous hotkey.

You can see now that you have some wrong function names: "Start the enter login" and "Start type".

I have modified your script; you don't need 2 functions, one is enough to send your text and Enter.

Global $Paused
HotKeySet("{F9}", "Pause")
HotKeySet("{ESC}", "Close")
HotKeySet("{F10}", "Start")


While 1
    Sleep(100)
WEnd

Func Pause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
    WEnd
EndFunc

Func Close()
    Exit
EndFunc

Func Start()
    While 1
        ControlSend("SRO_Client", "", "", "Hello all im doublea500.yahoo.com!")
        Sleep(500)
        ControlSend("SRO_Client", "", "", "{ENTER}")
        Sleep(4000)
    Wend
EndFunc

SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

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.