Guest Doxie Posted June 22, 2004 Share Posted June 22, 2004 Hi, I wonder if there is someone out there who got the time to help me write a little tool that helps me in a game i'm playing? The fact that i'm asking for help reflect the idea of the tool It should be a AFK tool, that you should be able to schedule. This is what it should do (basicly) -Check the configuration -Login to the game (online) -Use several Send{} commands as requested in the Config Example: I start the tool Enter that it should cast a specific spell at 01:00 Enter that it should train 350 military at 03.00 Enter that it should build 35 stables at 05.00 (Go to bed) At 01:00 The tool will cast the spell At 03:00 The tool will train 350 military At 05:00 The tool will build 35 stables When i wake up i should have a log, that tells me if it was succeful. (Wich means it has to read the information on the webpage and return fail or succes. You should be able to que several operations, so i guess i have to make the tool check the configuration once per hour. The actually Send commands is not that hard to make, the thing i need help with is the GUI of the configuration tool, and how it should write the info down to a ini file. Also how i should do to make it check itself every one hour. Thanks in advance for any help Link to comment Share on other sites More sharing options...
Guest Doxie Posted June 22, 2004 Share Posted June 22, 2004 This is just a dummy how it could look like.http://www.southbar.se/Dreamer.exe Link to comment Share on other sites More sharing options...
ezzetabi Posted June 22, 2004 Share Posted June 22, 2004 Well.. to help you we need more info. How can you order "make stables"? There is a key combination? Link to comment Share on other sites More sharing options...
Guest Doxie Posted June 22, 2004 Share Posted June 22, 2004 I belive i have to use Send commands to do all the things.Below you can see a script that i made, that is only doing one thing, and that is casting a spell.expandcollapse popupGlobal $SD = @ScriptDir & "\" Global $Utopia = $SD & "utopia.ini" Run ("C:\Program Files\Internet Explorer\iexplore") WinWaitActive ( "Utopia") sleep (5000) send("{SHIFTDOWN}") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{TAB}") send("{SHIFTUP}") Send(IniRead($Utopia, "Options", "User", "")) Send("{TAB}") Send(IniRead($Utopia, "Options", "Pass", "")) Send("{ENTER}") WinWaitActive ( "The Utopian Batt") sleep (5000) $x = StatusbarGetText("The Utopia") IniWrite($SD & "test.ini", "Options", "test", $x) Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{ENTER}") sleep (5000) Send("{CTRLDOWN}") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{CTRLUP}") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{DOWN}") Send("{DOWN}") Send("{DOWN}") Send("{DOWN}") Send("{DOWN}") Send("{DOWN}") Send("{DOWN}") Send("{DOWN}") Send("{TAB}") Send("{ENTER}")If i wanted to anything else, i need to change the Send commands.I also add a link to a picture of the "Growth" page in this game, then you will get an idea how to build things.So for example, if i should build stables, then i tab my way to this page, tab down to the correct "input" and enter the value, continue tab until i get to "Construct Buildings" button. Its all about "Sending" i guess there is another way aswell, but that´s to complicated for me right now The Picture Link to comment Share on other sites More sharing options...
Guest Doxie Posted June 22, 2004 Share Posted June 22, 2004 ops, skip the:$x = StatusbarGetText("The Utopia")IniWrite($SD & "test.ini", "Options", "test", $x)In the text above, that was just a test, that did not work Link to comment Share on other sites More sharing options...
Guest Ezzetabi offline Posted June 22, 2004 Share Posted June 22, 2004 I see. Can you check if the buttons are usable controls? It would make everything much easier. Macroing is considere cheating by most. I hope you dont spoil game to others. Link to comment Share on other sites More sharing options...
Guest Guest Posted June 22, 2004 Share Posted June 22, 2004 >>>>>>>>>>>> Window Title <<<<<<<<<<<<< The Utopian Battlefields - Microsoft Internet Explorer ( classname=IEFrame ) >>>>>>>>>>> Window Dimensions <<<<<<<<<<< left: -4 top: -4 width: 1032 height: 746 >>>>>>>>>>> Mouse Position <<<<<<<<<<< On Desktop: x: 536 y: 646 In Window: x: 540 y: 650 >>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<< RGB Mode - Hex: 0xF4F5FD Dec: 16053757 BGR Mode - Hex: 0xFDF5F4 Dec: 16643572 >>>>>>>>>>> Last Control Under Mouse <<<<<<<<<<< Class: Internet Explorer_Server1 Text: >>>>>>>>>>> Status Bar Text <<<<<<<<<<< (1): (2): (3): (4): (5): (6): Internet >>>>>>>>>>> Visible Window Text <<<<<<<<<<< Google http://i.swirve.com/enter.cgi http://i.swirve.com/enter.cgi >>>>>>>>>>> Hidden Window Text <<<<<<<<<<< This is from the page, you can see on my post above. There is two buttons on that page, but none seems to be showed in Spy. Anyway, there is direct links to the different pages, so i would not have to tab to each page, instead i can just open "that" page, and tab on it. Link to comment Share on other sites More sharing options...
pekster Posted June 22, 2004 Share Posted June 22, 2004 Just a small suggestion: instead of using a ton of Send commands with the same character over and over, try this format: Send("{TAB 5}") which will send TAB 5 times. This technique also works for ControlSend. You might also want to take a look at the SendKeyDelay option (look under AutoItSetOption, or Opt for short.) [font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes. Link to comment Share on other sites More sharing options...
emmanuel Posted June 22, 2004 Share Posted June 22, 2004 This is just a dummy how it could look like.http://www.southbar.se/Dreamer.exenot going to download a foriegn exe and run it, why don't you just post the code? "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
ezzetabi Posted June 23, 2004 Share Posted June 23, 2004 Ok, so no controls. What about open the IE page and send a couple of PAGEUP just to be sure that you are at the beginning of the page and use mouse clicks? 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