Jump to content

djdodo

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by djdodo

  1. Hi there! I have the Problem that i Need to map a folder to a driveletter and I don´t know the full path to that Folder. I know "\\Server\share\folder1\folder2\folder3\folder4* The Folder4 Name is something like "1234567890 <some text>". I know the number but not the text. so I Need to use: DriveMapAdd ( "U:", $folder & "*")How can I do that or how can I find this Folder and get the full path from the hande form FileFindFirstFile? Thank You!
  2. I posted my Neighbor-help-code some days ago. Here again, with a few changes: HotKeySet("{H}", "HelpNeighbor") HotKeySet("{S}", "Stop") While 1 Sleep(100) WEnd Func HelpNeighbor() WinWaitActive("FarmVille") While True $coord=0 $coord = PixelSearch( 450, 300, 671, 380, 0x4A925A) $step=1 If Not @error Then $coord2 = PixelSearch( 450, 300, 671, 380, 0x104D18) If Not @error Then ;msgbox(0,"", $coord[0] & $coord[1]) MouseMove($coord[0] ,$coord[1]) $step=2 MouseClick("left", $coord[0], $coord[1]) $step=3 Sleep(30000) $step=4 MouseMove(417,499) $coord1 = PixelSearch( 400, 450, 500, 600, 0x31CB42) $step=5 While @error $step=6 MouseMove(417,499) MouseMove(420,505) $coord1 = PixelSearch( 400, 450, 500, 600, 0x31CB42) WEnd $step=7 MouseMove($coord1[0]+ 10 ,$coord1[1]+10) $step=8 MouseClick("left",$coord1[0]+ 10 ,$coord1[1]+10) $step=9 Sleep(500) $step=10 MouseClick("left",$coord1[0]+ 10 ,$coord1[1]+10) $step=11 Sleep(1000) $step=12 MouseMove(343,220) $step=13 MouseClick("left",343,220) $step=14 Sleep(10000) $step=15 Else ;msgbox (0,"","Nicht gefunden!") Send("{F5}") $step=17 Sleep(10000) $step=18 EndIf EndIf WEnd EndFunc Func Stop() Exit EndFunc 2 Problems remain: 1. If there is another info above the Free gifts | Play | My Neighbors the script won´t work (finding Free gifts), so there is to to some config dialog 1b. Same Prob for other resolutions 2. If there is no Go To XYZ´s Farm button, I need to press F5 manually, cause it finds the specified pixels, without the Button being there... Anyone could help?
  3. Copy and Paste in an empty au3-script. Run with F5 or compile. When on the "My Neighbors"-Page it "H" (Capital "H"!!!) But there are still a few bugs. everyday, the coords of the buttons change because of the yellow bar "Experiencing Connection Problems etc" and the Mafia Wars Ads. Need to put the coords in a settings.ini.... And If there is no Go To XYs Farm, the script finds a Pixel in the PixelSearch, but when I use WindowInfo, it is an other Color-Code. What is this? See attached Screenshot.
  4. Here´s my script for the neighbor-help: HotKeySet("{H}", "HelpNeighbor") While 1 Sleep(100) WEnd Func HelpNeighbor() WinWaitActive("FarmVille") While True $coord = PixelSearch( 0, 0, 710, 414, 0x4A925A ) If Not @error Then MouseMove($coord[0] ,$coord[1]) MouseClick("left",$coord[0] ,$coord[1]) Sleep(30000) $coord1 = PixelSearch( 600, 500, 725, 555, 0x396139 ) While @error $coord1 = PixelSearch( 600, 500, 725, 555, 0x396139 ) WEnd MouseMove($coord1[0]+ 10 ,$coord1[1]+10) MouseClick("left",$coord1[0]+ 10 ,$coord1[1]+10) Sleep(500) MouseClick("left",$coord1[0]+ 10 ,$coord1[1]+10) Sleep(1000) MouseMove(543,268) MouseClick("left",543,268) Sleep(10000) Else MouseMove(543,268) MouseClick("left",543,268) Sleep(10000) EndIf WEnd EndFunc But I´m experiencing Problems... Sometimes when loading the farm i get a error, Something like (translated) Error while opening a page from the farmville application (I got it in German) and two buttuns "Retry " and To "Start Page". Retry doesnt work. How do I catch this case? Needs to be between Sleep(30000) Error? $coord1 = PixelSearch( 600, 500, 725, 555, 0x396139 ) I could do another pixelsearch here, but what then? I could move the Mouse down to the FV-Icon, click it, go to Neighbors page again, but that means the whole Code again in this Error?-Case???
  5. Sorry, doesn´t work for me. When setting coordinates of Free gifts with "END", I get a "406,295 16249847" msgbox. And then after a "Line -1: Error: Subscript used non-Array variable" How do I set the coords of the play button? When manually editing the setting.ini and I want to set the Home Coordinates, I get a "Play button not found..."
  6. Nope. In Fullscreen it moves to the middle of the screen, one up and one right. Which resolution do you use?
  7. @JohannesM: Ich denke mal, Du sprichst Deutsch.... Skript läuft nicht wirklich. Ich starte es auf der "Play" Seite, richtig? Maus fährt von links unten nach rechts oben, es passiert aber nichts....
  8. [edit] How Do I read the text under my mouse? e.g. $mousetext=http://apps.facebook.com/onthefarm/index.php?mission=crows&friendId=xxxxxxxxxxxxxxxxxx if strinstr($mousetext,"http://apps.facebook.com/onthefarm/index.php?mission=") Then Click [/edit]
  9. Plowing Cost 15 coins. How do you get to 10?
  10. I can´play in Fullscreen cause my IE or Firefox hangs up... But I´m using the Autobot for Farming, the rest I want to do myself... except: The damn Neighbor helping. Does anyone have a script for helping neighbors? Tried myself but couldn´t get it working. I tried helping through the bottom line when in game-> Click-> Help/Visit -> Click the next etc. All the Popups "Will u try to help me" open in background, you can click the one by one, get money and exp but the Good Samaritan Counter does not increase. So I need a script: While true Go to Neighbors Page when exist "Go to XY farm" -> click else Send "F5" Click Accept 2x Go to Neighbors page
  11. Thanx, found it. I used the German Help-file, there was nothing about TCP.... Tried out TCPrecv and TCPsend. But I don´t understand the code. How do I receive from more than one sender?
  12. Hi! I´m trying to write a small Server Monitoring Solution. CODE while 1 If ProcessExists ( "Process" ) Then Sleep(500) Else <SEND Signal to Monitoring> Sleep (500) EndIf WEnd How do I send a signal, and how do I receive it?
×
×
  • Create New...