Sign in to follow this  
Followers 0
erickmiyazaki

Another quesiont, hehe!

6 posts in this topic

#1 ·  Posted (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 by erickmiyazaki

Trying to make my first script, help me!

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by SolidSnake

HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.

Share this post


Link to post
Share on other sites

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

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

Posted Image


Trying to make my first script, help me!

Share this post


Link to post
Share on other sites

Hmm, lets say I have this .ini already configured:

ID: XXXXX
PASSWORD: YYYY
Server I want to connect: Y

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

Posted Image

<{POST_SNAPBACK}>

First Of the ini should look like this.

[MAIN]
ID=XXXXX
PASSWORD=YYYY
Server I want to connect=Y

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

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  
Followers 0