Jump to content

Need Help


Recommended Posts

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

Link to comment
Share on other sites

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

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 :)

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...