doublea500 Posted March 6, 2009 Share Posted March 6, 2009 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! Link to comment Share on other sites More sharing options...
enaiman Posted March 6, 2009 Share Posted March 6, 2009 This will give you an idea: http://www.autoitscript.com/autoit3/docs/t...pad/notepad.htm 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 More sharing options...
doublea500 Posted March 6, 2009 Author Share Posted March 6, 2009 i actually saw that already but the thing is that i want it to say it in the game and not the notepad Link to comment Share on other sites More sharing options...
ACS Posted March 6, 2009 Share Posted March 6, 2009 Have you tried writing anything yet? That's the best way to learn something-- by doing. Link to comment Share on other sites More sharing options...
enaiman Posted March 6, 2009 Share Posted March 6, 2009 "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 :) Link to comment Share on other sites More sharing options...
doublea500 Posted March 6, 2009 Author Share Posted March 6, 2009 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 More sharing options...
enaiman Posted March 9, 2009 Share Posted March 9, 2009 ok, I can see you did something 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 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