Jump to content

Another quesiont, hehe!


Recommended Posts

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!

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

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.
Link to comment
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!

Link to comment
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.
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...