jaenster Posted January 9, 2006 Share Posted January 9, 2006 i use ControlCommand now very mutch .. it's very nice .. but i must gamble the varibale name ..can make autoIT some list with variablename's ? can you only set an varibale .. ? or can you read it too ? yes ofc but how ? Thanks jaenster -jaenster -jaenster Link to comment Share on other sites More sharing options...
seandisanti Posted January 9, 2006 Share Posted January 9, 2006 i use ControlCommand now very mutch .. it's very nice .. but i must gamble the varibale name ..can make autoIT some list with variablename's ? can you only set an varibale .. ? or can you read it too ? yes ofc but how ? Thanks jaenster -jaensteryou just use the variable to read from it: $variable = "This is the value in the variable" MsgBox(0,"Title",$variable) Link to comment Share on other sites More sharing options...
jaenster Posted January 9, 2006 Author Share Posted January 9, 2006 lol i know .. but i dont mean that .. you know controlcommand ? controlcommand("diablo","","","ping",'2342') No i write in var ping 2342 But i wanna read a var -jaenster Link to comment Share on other sites More sharing options...
seandisanti Posted January 9, 2006 Share Posted January 9, 2006 lol i know .. but i dont mean that .. you know controlcommand ?controlcommand("diablo","","","ping",'2342')No i write in var ping 2342But i wanna read a varyou want to read the text already in the control? If that's what you're trying to do, use ControlGetText() Link to comment Share on other sites More sharing options...
jaenster Posted January 9, 2006 Author Share Posted January 9, 2006 wow thanks -jaenster Link to comment Share on other sites More sharing options...
jaenster Posted January 9, 2006 Author Share Posted January 9, 2006 dont work .. -jaenster Link to comment Share on other sites More sharing options...
Stumpii Posted January 9, 2006 Share Posted January 9, 2006 From the help file, the format of the ControlCommand function is: ControlCommand ( "title", "text", controlID, "command", "option" ) you have the following in your script: controlcommand("diablo","","","ping",'2342') From what I see, you are sending 'ping' to the window 'diablo'. The '2342' is not a valid option string. What exactly are you trying to accomplish? Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity. Link to comment Share on other sites More sharing options...
JSThePatriot Posted January 9, 2006 Share Posted January 9, 2006 This thread needs to be moved to the Support Forum. It shouldnt have been brought here. AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Link to comment Share on other sites More sharing options...
cdkid Posted January 10, 2006 Share Posted January 10, 2006 (edited) ok, im gonna take a guess.... i think he plays 'Diablo' or 'Diablo II' (some fun online games) and he wants to ping the server he's on...donno why...i hope this helps to answer his question try using looking in the help file for "Ping" example: ping("1.1.1.1",250) Edited January 10, 2006 by cdkid AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide! Link to comment Share on other sites More sharing options...
jaenster Posted January 10, 2006 Author Share Posted January 10, 2006 ping is some var in the game -jaenster Link to comment Share on other sites More sharing options...
Stumpii Posted January 10, 2006 Share Posted January 10, 2006 You need to be more descriptive than 'ping is some var in the game'. What does that mean? Are you sending text to a command line in a game, or sending text to a specific control in a game? What is the name of the control? Do it actually have a name, or do you have to send the text to the program window. We need more information to help you. Tell us as if you were telling a grandparent. Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity. Link to comment Share on other sites More sharing options...
jaenster Posted January 11, 2006 Author Share Posted January 11, 2006 if you know that "ping" is some var in a game .. then can you edit : controlcommand({title},"","","Ping",{your edit}) That's the func from controlcommand .. and i dont wanna write a var but i wanna READ -jaenster 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