erickmiyazaki Posted June 23, 2005 Share Posted June 23, 2005 (edited) Updated my noob source o.0 Run("D:\GAMES\RoseON\Roseonline") WinWaitActive("www.roseonline.com") Sleep ("5000") MouseClick("left", 364, 588, 1) Sleep ("15000") MouseClick("left", 764, 332, 1) Send ("XXXXXX"); ID MouseClick("left", 718, 365, 1) Send ("YYYY"); Password MouseClick("left", 873, 316, 1) How can I make the script read a .ini with some configurations like password, user name? And is there a way to recognize when the game connected to the server and make it stop? Edited June 23, 2005 by erickmiyazaki Trying to make my first script, help me! Link to comment Share on other sites More sharing options...
FuryCell Posted June 23, 2005 Share Posted June 23, 2005 Now what command is ued to make my mouse move to X, Y coordinates and left click?<{POST_SNAPBACK}>MouseClick ( "button" [, x, y [, clicks [, speed ]]] )Or just to recognize a text and left click in that text?<{POST_SNAPBACK}>OCR might work but it won't be pretty and will hog the cpu. HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. Link to comment Share on other sites More sharing options...
erickmiyazaki Posted June 23, 2005 Author Share Posted June 23, 2005 Yea, I got it, but I think my new questions won't be easy to me to find out. Trying to make my first script, help me! Link to comment Share on other sites More sharing options...
FuryCell Posted June 23, 2005 Share Posted June 23, 2005 (edited) And is there a way to recognize when the game connected to the server and make it stop?<{POST_SNAPBACK}>IniRead() is what you need.(Sorry for the ryme. ) Edited June 23, 2005 by SolidSnake HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. Link to comment Share on other sites More sharing options...
erickmiyazaki Posted June 23, 2005 Author Share Posted June 23, 2005 IniRead() is what you need.(Sorry for the ryme. )<{POST_SNAPBACK}>Hmm, lets say I have this .ini already configured:ID: XXXXX PASSWORD: YYYY Server I want to connect: YAnd then I want to my script read the ID: XXXXX / PASSWORD: YYYY and send they XXXXX/YYYY Keys that have been set in the .ini file?Shit, my english is so bad.Here's a SS to show the place to send the XXXXX/YYYY keys. Hope it helps. Trying to make my first script, help me! Link to comment Share on other sites More sharing options...
FuryCell Posted June 24, 2005 Share Posted June 24, 2005 Hmm, lets say I have this .ini already configured:ID: XXXXX PASSWORD: YYYY Server I want to connect: YAnd then I want to my script read the ID: XXXXX / PASSWORD: YYYY and send they XXXXX/YYYY Keys that have been set in the .ini file?Shit, my english is so bad.Here's a SS to show the place to send the XXXXX/YYYY keys. Hope it helps.<{POST_SNAPBACK}>First Of the ini should look like this.[MAIN] ID=XXXXX PASSWORD=YYYY Server I want to connect=YThen if the ini was called "test.ini" and was in the same dir as the script you could do this.$ID = IniRead("Test.ini", "Main", "ID", 0) $Password = IniRead("Test.ini", "Main", "Password", 0) $Server = IniRead("Test.ini", "Main", "Server I want to connect", 0) HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. 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