Jump to content

marian001

Members
  • Posts

    8
  • Joined

  • Last visited

About marian001

  • Birthday 11/22/1978

Profile Information

  • Location
    Prague, Czech republic
  • WWW
    http://www.marian001.com

marian001's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I am getting "Object referenced outside a "With" statement." error quite often (on Vista Ent). Any idea/workaround/...? I need some reliable zip solution... Marian
  2. Farmville is a nice Facebook game (made in Flash) were you take care of your farm. It requires a lot of "work".. so I decided to automate it. That allows me to e.g. brush me teeth while watching how my farm is taken care of instead of never-ending clicking... Before you run this: - since I don't know how to control Flash app from autoit, this is just about knowing where to click, so your screen resolution, flash app position etc. must match mine (or you can make adjustments yourself) - optimalized for 1280x800 screens and IE7 (without additional toolbars) running on Vista - unexpected popup windows within flash are not handled, so you might need to stop script execution manually - to stop script execution at any time, press ESC; otherwise don't move your mouse until script finishes - you have to setup your field corner coordinates (when the application is in full-screen mode and twice zoomed out); I suggest you use ScriptWriter for this; to find a coordinates of a field tile, use its middle point - you may enter you login (email) and password to enable automatic login - this script assumes you have one plant planted on whole field - ...more info in script Features - following actions are available: _Harvest, _Plow, _Plant, _Restore - _Harvest - harvests whole field - _Plow - plows whole field - _Plant(screen, item) - buys item number 'item' (1-6) from screen number 'screen' within plants offered in market - _Restore - for cases when you have to stop script (e.g. because of popup window) restore feature is available; every from above action writes its state into ini file after each click - this file is used to provide information for restore function; if you choose to run restore function, it will only finish unfinished job (e.g. buys last bought item and finishes planting) - no further tasks will be executed Bonus - I am including excel with comparison of items (incomplete...) Version 1.0 facebook_farmville.zip enjoy your farm... any improvements are welcome.. Marian
  3. Thank you very much!! I was searching.. but probably not hard enough ;-)
  4. In my GUI, I would like to display short description of each menu item in status bar. So I need to know when the mouse is over certain menu/submenu item or when it's "highlighted". I have tried some UDFs, but without success. Any ideas? p.s. tooltip doesn't work for menu items either...
  5. This doesn't work with Menu Items, does it?
  6. Thanks for the tip.. I still wasn't able to resolve the problem... I guess I wasn't looking enough yet :-) Anyways, I've had a request for my friends for sale code. I am attaching it... but I haven't used it in a while so I'm not sure if it's still functional. Due to the described and unresolved problem, the functionality of the script is quite primitive. facebook_FFS.au3 To run this, you will also need to create file FFS.csv (in the same directory as the script) with user numbers in one column, e.g. 105523315 12114441 92668623 10383499 110421783 104800471 regards Marian www.marian001.com
  7. Hi all, UPDATED (current version 4.8): facebook_mafia_buy_properties.au3 WHAT IT DOES: (you can rearrange the functions to suit your needs, so the following is an algorithm that works for me) - opens IE window with Mafia Wars (this can be switched to hidden mode) -- if you're not logged into Facebook, it will log you in (don't forget to fill variables $email and $password) - Thanks to koldkaos -- if you are in Cuba it will automatically fly you to NY - reads current prices and hourly earnings for each property - calculates current price per earning ratio for each property - sorts properties from lowest to highest P/E - reads your cash balance (not what you have in bank) - attempts to make the best buy for the money you have - continues with "reads current prices...." until you are out of money or no purchase can be done meeting criteria: -- $minBuy - lot (amount of items in 1 purchase [1-10]) -- $PEmax - maximum price per earning ratio value -- $maxRank - maximum allowed P/E ranking - flies to Cuba - sells all crates produced by your businesses and collects politico corrupto - deposits all C$ to bank - currently doesn't work - fights weakest opponent from opponents offered on Fight screen (if you win the fight and button Attack Again! is available, you will fight the same opponent again) - executes selected job (on the screen displayed after clicking Jobs) - accepts energy pack (if available and conditions met...) and sends energy pack to friends - fights and does jobs again... - closes IE and quits - heals (if conditions are met) and fights again - get gifts if available - doesn't work yet.. - flying between NY and Cuba fixed (since Transport button was introduced) - UPDATE: as requested, I have added looping functionality, so you can enable looping ($loop = 1) and set loop delay ($loopDelay) in minutes; to stop the loop at any time and finalize the script with the summary, press Shift-Alt-L (the script will finalize after finishing current/next run); I didn't test this functionality, so let me know if there are some problems PREREQUISITES: - obviously, you have to have a Facebook account, have Mafia Wars application activated/installed, have some Mafia Wars (NY) money to spend, have businesses in Cuba - define following variables: -- $email - your Facebook login (will be needed only if you are not logged in by default) -- $password - your Facebook password (will be needed only if you are not logged in by default) -- $minBuy - lot (amount of NY properties in 1 purchase [1-10]) -- $PEmax - maximum price per earning ratio value (I recently stopped purchasing at 7000) -- $maxRank - for item to be bought, it must placed among e.g. top 3 properties (based on P/E ratio ranking) [1-12] -- $minEnergy - level of energy when to stop executing jobs (don't decrease below energy amount necessary to execute selected job!) -- $minHealth - level of health when to stop fighting [20-...] -- $minStamina - level of stamina at which healing is enabled [0-...] -- $jobNum - job to execute (on screen displayed when you click 'Jobs') [1-n] (n is number of jobs available on selected screen) -- $minExpDiff - minimum difference between current experience and exp. needed for next level at which you want to enable accepting energy pack -- $loop = 0 ; loop the script execution: 0-off, 1-on -- $loopDelay = 60 ; delay between runs (if looping is enabled) [minutes] COMMENTS: - there are still some things to fix (e.g. 'fight result unknown' happens from time to time - script should handle it, just let it work...) and some unfinished/WIP functions (e.g. playing lotto, helping friends, claiming rewards) - watch the console - it tells you what's happening :-) - I am sure it could have been coded more neatly, but I wasn't aiming to win a beauty contest with this code :-) - script contains bunch of useless (commented) stuff which are remains of code development and debugging - feel free to clean it - the shopping logic I used seems quite reasonable to me, but I will be glad to hear your ideas - script is now built into functions, so you can play with the flow of the execution - see the script - also any improvements are welcome have fun :-) Marian www.marian001.com p.s. oh yes... if you want to join my mafia, add me - http://www.facebook.com/profile.php?id=550...amp;ref=profile p.s.2 I suppose next update will be necessary after Moscow is launched...
  8. I have made a few simple scripts for running Facebook applications... Currently I am trying to upgrade my script for buying friends in FFS. I have already made a script which does that well, but I don't like the way it's done. I want it to run in background, so I can do other stuff while it runs. The problem is addressing the button 'Purchase for $...' within "popup window" which is displayed once you click on 'Buy for $...' link from person's FFS profile page. (In my current script I am clicking that 'Purchase..' button using sending of keystrokes.) This popup is not a separate browser window - it is just some java/html thing that is displayed over the page... I have seen this done on other pages in combination with dimming the page below the popup... (I hope you know what I'm talking about...) The code for this popup is not in the code of the profile page - it is generated by executing some Java commands running some PHP... Does anyone have an idea how to deal with this?
×
×
  • Create New...