Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/06/2011 in all areas

  1. First @error will get set to success since MouseClick isn't likely to fail. Then what instruction do you expect to break the inner Do loop, since you yourself say the color picked will never equal the constant you use? In AutoIt like C--, C, C++ or any other language, Do <whatever> Until <condition never met> loops until the Sun goes nova.
    2 points
  2. jchd

    Help with asm

    That's a moot point: should it be called RemoveTrojan or PrepareGUI would you trust it more?
    2 points
  3. Jos

    Easyhook and dll injection

    guilty and so be it.I am done spending time on his and for this moment will lock the thread unless a Mod with poker knowledge comes along and convinces me its ok as you havent. Jos
    1 point
  4. Taumantis, So I understand that you want an outer loop which waits until you "put x" and then an inner loop to wait for a reaction. What exactly is "put x"? Is it a key? A coordinate? A colour? A lot depends on how you intend to interact with the script. M23
    1 point
  5. Taumantis, Welcome the the AutoIt forum. The problem you have is that the Until @error will never fire as @error at that point has been set to 0 by the preceding MouseClick line: HotKeySet("^!x", "MyExit") Func MyExit() Exit EndFunc ;==>MyExit Opt("MouseCoordMode", 1) Do Sleep(100) MouseMove(1097, 760) MouseClick("left") Sleep(100) Do $i = PixelGetColor(1015, 760) Sleep(10) ; <<<<<<<<<<<<<<<<<<<<<<<<<<<<< Important to reduce the load on the CPU Until $i = 10846764 MouseClick("left") Until @error ; <<<<<<<<<< But error at this point is set by the MouseClick and so will always be 0What error do you want to act as the trigger for leaving the loop? M23 Edit: Just seen your post. Why do you have 2 loops in that case? HotKeySet("^!x", "MyExit") Func MyExit() Exit EndFunc ;==>MyExit Opt("MouseCoordMode", 1) While 1 Sleep(100) MouseMove(1097, 760) MouseClick("left") Sleep(100) If PixelGetColor(1015, 760) = 10846764 Then ExitLoop ; This will take you to... MouseClick("left") WEnd ; ...here!Is that what you want?
    1 point
  6. UEZ

    Change image interpolation

    You can use GDI+ to scale the image using the _GDIPlus_GraphicsSetInterpolationMode() function (in ) to set the interpolation to nearest-neighbor interpolation. Afterwards you can send the scaled image to the picture control. Br, UEZ
    1 point
×
×
  • Create New...