Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

Recommended Posts

Hello guys,

This weekend i make a simple bot to locate some bitmaps and click. But, after a while (sometimes lasts 1 hour , sometimes even 15 minutes) the following error appears in the scar-divi : "CANVAS DOES NOT WORKING" ... I wonder if someone could help me...

 

 

 

program new;varBmp1, Bmp2, Bmp3, Bmp4, Bmp5, Bmp6, Bmp7, Bmp8: TSCARBitmap;x, y, tmover1, xi1, yi1, xf1, yf1, tcoletar: Integer; Int: Integer;begin tcoletar := 3000; //PRIMEIRO SQM xi1 := 588; xf1 := 709; yi1 := 256; yf1 := 374; tmover1 := 1500; Int := 0; while Int <> 5 do begin  //BANCO DE DADOS BITMAPS Bmp1 := TSCARBitmap.Create('deNo9k8mTG2cZxkf9ff11t9bWrtY+2lpqSa2lt' +   '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');   Bmp2 := TSCARBitmap.Create('deNo9kmlvG1UUhuO5d+4s3sbjPbbHux2P7fEy8' +   'b7b431rvGVznLSkpY26pAlJaZHaigqlBFWUiiIEH/gA/AC+8AuQ+FtMRUF6P1w' +   'dnffe5z33sGuWtczc42uT/jIVrWhjbY1DQsW7zjtvupc/7W09T/jGKmMJrEtYb' +   'J8enIf3ntRnl9n6PW5xLqVWrNzsrWqyA4suS3knsH8R2XlRCe0BpQgNOQU/o6R' +   'z1+2r0cXb5c2rTPNcN7pflB5Y4vuUvYk0GZLJUOYcJm45ykvenFmjeaAXsc25/' +   'fBl7/H17tWvJyfvKvVHzNPvV5PnLvGQtknIlKUrXaMlQXqbKmGiU/Gw3rNEakp' +   '+SA8vAmfvl6uvxf4Ta2pfefrd9u03UufczU8oS45wp5SqDVyXROYsgXzQk1ZzG' +   'SSMDIsn+bNv9w++LDUe2oNjNH6WXDzPS4+csR3SXoXID6AXEEFIhXD5IEsmFMa' +   'GwcPk0cvy4FEiuWvh6iiyAoEp8A6BbwjcXaCMAjIIqNBHFxEA1iLw90Foiufva' +   'Lx9aC0gb15jK64xcVwtIP0mztWgbwRsRYUuLhtx3AcMSYW7jXl7wFqAVAQSAuS' +   'rTHNg9TQ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C5UUKe4cpdQp7jsQ3EJaK+CuB6UJ6zkyutMvfHe5CVUSq' +   'HBYuUU8QYiYgoDnsRz0xAetda679JXQKMa3blrn/0nn/25Vh7FhOmaNKELustN' +   'VwBiQxXHWXd7xGplAHiHcRXQugcxgq21pw/+TR49dfJL3/fzH6SGhf2/Ank96G' +   'jDLEstEx6clSzHXcXIJOHSyWyvhlItbHygWfzPD64yt77NFQfRcQpJhzD3AzSB' +   'Rgv07EijXMou2YX6h6x5a1oAb0XzHTwzA4mjojy1L19phQm3vQO4PogvonQazB' +   'f97S6Qb7BWl/AMKLmIL5txjr9cKqFxzfAyhZZmgTN07o09nNdGG0gAclGr8Ky6' +   'h+OlruDCJ6C/W6k0wl1++H96VpasUebIGd6O/Py7Nte6zjCm3hCB9F14M5icnv' +   'JMBONDR+VQv8B/6zdxg=='); Bmp3 := TSCARBitmap.Create('deNo9j+tv2lYYh2Of42ObWwx2zc3GEAwJDjYX2' +   '4CJuQVzCReTACXpmsC0ZVu7rVqUblXXSc32af0yaZu2z/tn9ofVlbpJz4f3vHp' +   'e/X4ntBfd2/4027x0zG1EdJDcYayZGG74sks4/aF49dApfAL8OuQsTFnTz35Zu' +   't/azotY+SktDFCoTjF1OmoB/UJsXyvR+p5PAayOG4+F7ZvJj39tl2/T+s6XdFD' +   'UCjgXYsLwZQcBbRkOFODJKFbo+JW579OH+d0fl1/85oxfZpQlHbNI2WKCBTJcR' +   'dEGiWQoGUGhjjSXm9/rizfVzdum851UuqKELkQ5ALOAPIR0gfAGDy9dW3CFc1T' +   'cgvwKZOdAnoPMGfCrgDoEdOGjSeZB3Aa5KTB6oaS9x5SJoIZYg0j1oOyCpI2Fy' +   '55MEDLgqlhmhGcnQDsnDwZ4qgvFDhRskLAwoY1FdOBTIJGDnhkswlAJBDXQ/jI' +   'lj4HUxWMWHqnioSLm4UV7Pf8noABvuXrdVFdk3AJ8hYxX/NGyn8xD+r+eHigPQ' +   '0Wcr2GXD1b/nuEbVKnLTpep4YUYLlG8iTMa7kV7P/IpyLuN1ED9m6D+FWJr6Lj' +   'JmD0m0yKkPtTWdG6EGA37aB5CRof2c+poCZgqEkxSbqHskDp5KlefMFKfCKmQK' +   'hCkQiAF0iVY35FSD98vEY9qQB57T3bzql/b8ekxZOuET0VJI7BfpiK6L3P2oe2' +   '+BtN9f/Mzfv2zcvf3Tf9O0q6JrAv3a0S1x8VNv2Qxjww8oCJWwzo75fbd4vU/t' +   '3/+++v2d7117y/fQuUSBk0CFSFSiLhBNRw21yPMJ5Hhi/TiVfHzd8vu12LpGmk' +   '3UN3CQAXmGpxsspU2N5oklSFVmKHSmjKvw9PnzcqGy8+AfAbSQzxwDDWLt09FZ' +   '5Ts9ZO5NpnugcMJbWzi7jNbf8zLI5hq4VEdCxxB1WInk0zHiZoWm9IJsYWrLjf' +   'Ymdvvx50bUXHJjANSNmBV0uhws4nYH8etNt845WSLEhrwaOhvXHGKSx8MYOoET' +   '+j4qSvMV9L5Spq4UmvAO3OxPY2rvVCihks2TFp4vIYdNJE9ZucrYXYhuEtp6oq' +   'jWXy+yk7XmdaEL5zQx61AqRNUW36jF5wtEsNJzON8mX4PMxeeMQ=='); Bmp4 := TSCARBitmap.Create('deNo9k2lvGlcUhs3cOxsD9sCw7zbDAGMYljHMs' +   'G+DAbOZxXjD4LhJ6jh1ktq1nThSkjaqnCaKmkaNun3oh6r/pD+skzat9H64OtJ' +   'z73vOfY9pwbqQqlpDRV24pAsWtLm6Oa0YnTlNZIQ1H/D332w++WV2eFPL3jGwH' +   'dpe0DuLIDYmc9OV8nw1t7sstpzyll/aWmEbBFfUJiqM1DJ5FCx/7L37tnX5697' +   'gWYLt68wF4FCQ2L62c766d1UdX8rVe57CPjd72pmcK6mZ0a1g4YpR2fQZM1r/E' +   'LYvIjvPS+E9QInQlNHwY1I599256V28m966kernhvZp9PjrYe+LvHJqi++Trjq' +   '2KBG0RFplIA7cxSlvlRbIMGCSmrUt1/zFxpevd2/+ODl5X6o+pLsnmdn1xpMfZ' +   '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'x3RrUKpZq133KEMo64VFUIIDtFzaL3harQ8o74vVCZ8FRDcINcm9t5xXtyysA3' +   'oKSBWUaMLwYxin+wEG5sreABaVjFrHGMScDRaaXc9mwM2IGu9RRDtmerz1OyrZ' +   'unAzffwZQV48oCJ4lLN0Z8EawO/lsOicVu+aU/16e6Gu1axrCu2/iAglGmXDEP' +   'rlLxj4nvqgkBPDnGISK3j7G562n13teEI8+bXF8M/39z67eXu3zp3+5Y='); Bmp5 := TSCARBitmap.Create('deNo9U1mPG1kZbde9tXpp7/vuctlVtsv7Uu7yW' +   't7au922u93ttnsySej0ZJtu0pkkmiRMhDpkFCYTMcDMCPEwIHjgAV6QeAeBhHj' +   'hhX8Av4B3KmJAOvp09T0c3XO+cyxbtq39PbbSsjECzopUrKoeTHytodOxo4juY' +   'Z273Aefjh99uT65koo3dHRfayupHWUQn5E7K391EykeeJMd5XQvIPXdxZG7MA/' +   'k5366TcSb2kzdGC5RLgkTTz03X+9efnU4eZqkRypTCdgbSPyI6l9EDh/WZ5eF+' +   'i03P6XSkjlcp0pHzPpJf3HRyK71rgbmFpSxkl6bJwNT2HsQPXhWYQ+BMg2NgoK' +   'bkY0L742r4YM3q/eu8s0LXWap1sawQBf07sROvzcd3hYbd6yJI9LZxDR5QpsjL' +   'AUkPXGVV5wlv0WywJBGMnPn5nn3w1fLq2/Ozt5W6ve08bFyO4oV9v2DM2H9uPv' +   'oR+vpU296QzkamClHFct6C48Hmip+qlOyMN80h8sUN6AGD5jzL1brH6R7D23ZI' +   '6U9j6jCaGRo6JwlTp4N7n++f+N1o3Ph46akpYC545SKQXUpzFLAMRq60ipnDuW' +   'HxsXD4vlnR8eflKS7ztAI03AgnFH7alju0D44T48epxZPi417nvgB4axCLAhgA' +   'OAhSLKo/JAhy+FHxv7d1Mnzcv9eMrW0ehtEMK+XWo5IWcU0icgEj64BswcCA0A' +   'PgG8XKGOACAGS/ZYEZ4BNBMEeYPfQ4k1NoActAsrs6CcTZjRj+mOfnA2xY3SIW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' +   '5VjFzfEfQ3g3gG6KCY27NOxv1y3UkEslrCKHVt2pE1J5r/+4YeDrmt319YbOBa' +   'L0PGKzUg6ZwGGW8rCgZEbyq2E7h3EmkKSZZ3UtU/m9HQaYiOmVw+mv/z0va9fL' +   'H/2yfG//vTVZOSdTjzLhf9kxR0fhqW2lS2Q9hziEaFDQGw5hT+PCpXtesdab9t' +   '6fc9kxMSj1qv7g9//+O6ff/Hs7795/e9//HY+oxfzwP7CL8/RyNdq2QslPSeoM' +   'pI+Lqriolqo6bu79sHI1x/6x+PAdESLgnMzTr/6cPS7N7f/9quX//zLN/8BV9x' +   'Nqw=='); Bmp6 := TSCARBitmap.Create('deNo9lElsHGkZhu2qv5ZeXe1ud3f1Vr1U7/ve1' +   'e7qtXqvxb17bXuSOBM7iZM4OJl4NFkmgxwyChOiWZiMRhwCAqQBMRcEQkhIAwI' +   'JgRAXBFyQkODKBW5I1IQB6T38+g6PvuV/X8uCfaHRIls9siPaegOXMPHwE7c4c' +   'XIiGa1rnVU4OsJ6l8Ozk9XinpbZ1QZF1FtDM3VibWhrtE2NHtkbOPiRsz90tCR' +   'rpW/u8nauS7ZFqzB18TOan3kGG+4yv2JbBcmhsXreuX1aufig3zzw1Pep7DZBd' +   '4A7j47GVL1rbvBWGSWNndWWqdIjq6JFGDibfUtXtA7HjsHENtumpQmVbxHOsqJ' +   '9MT06rpy/Jxw8HE5PasLlQn3fFRHUVA4Tpt5y18x2yFrPVmub8hVDSW5VsvQl6' +   '3TdM566hDVybWzZ2An1h1SyrnGwMLOrK53XSzeS66fl6oGh8qq+cxBOSB5lALY' +   'zwM0BbweJdVWNvrkhOUpdku2YRlPX5laAEy2BMh6s4JG6ptBYTlY01tXFyAjtH' +   'IUuv71258P53lmjuK+jeYJkNdYyHB8rVrfd1d1wccMpA+uCudYx1drmybqbkyz' +   'FNXth4slP3HQbp1lFpEwkWjo7h5YuURefdG893xzcTdKSeoWFLRwU31LyN8Obt' +   '+vjW4X6gSM6VIRYbaG+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WtTZ0zmaBcpnaHWQe35A+fXrlN99' +   '+9Ldfvfjzz55///2j/wDuitAD');   Bmp7 := TSCARBitmap.Create('deNo9kmmP29YVhi3eS1LUNtolitRKLaONWqh9H' +   '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' +   '0ua'); Bmp8 := TSCARBitmap.Create('deNotVetu3NYZlK3d5fXc7zzkIbnkXrQXaeWVr' +   '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' +   '='); //FUNCOES if FindBitmap(x, y, Bmp1, xi1, yi1, xf1, yf1) then       begin       MoveMouse(x, y);       ClickMouse(x, y, mbLeft);             Wait (tmover1);       ClickMouse(648, 315, mbRight);             Wait (tcoletar);     end; if FindBitmap(x, y, Bmp2, xi1, yi1, xf1, yf1) then       begin       MoveMouse(x, y);       ClickMouse(x, y, mbLeft);             Wait (tmover1);       ClickMouse(648, 315, mbRight);             Wait (tcoletar);     end; if FindBitmap(x, y, Bmp3, xi1, yi1, xf1, yf1) then       begin       MoveMouse(x, y);       ClickMouse(x, y, mbLeft);             Wait (tmover1);       ClickMouse(648, 315, mbRight);             Wait (tcoletar);     end; if FindBitmap(x, y, Bmp4, xi1, yi1, xf1, yf1) then       begin       MoveMouse(x, y);       ClickMouse(x, y, mbLeft);             Wait (tmover1);       ClickMouse(648, 315, mbRight);             Wait (tcoletar);     end; if FindBitmap(x, y, Bmp5, xi1, yi1, xf1, yf1) then       begin       MoveMouse(x, y);       ClickMouse(x, y, mbLeft);             Wait (tmover1);       ClickMouse(648, 315, mbRight);             Wait (tcoletar);     end; if FindBitmap(x, y, Bmp6, xi1, yi1, xf1, yf1) then       begin       MoveMouse(x, y);       ClickMouse(x, y, mbLeft);             Wait (tmover1);       ClickMouse(648, 315, mbRight);             Wait (tcoletar);     end; if FindBitmap(x, y, Bmp7, xi1, yi1, xf1, yf1) then       begin       MoveMouse(x, y);       ClickMouse(x, y, mbLeft);             Wait (tmover1);       ClickMouse(648, 315, mbRight);             Wait (tcoletar);     end; if FindBitmap(x, y, Bmp8, xi1, yi1, xf1, yf1) then       begin       MoveMouse(x, y);       ClickMouse(x, y, mbLeft);             Wait (tmover1);       ClickMouse(648, 315, mbRight);             Wait (tcoletar);     end; end; end.

 

Share this post


Link to post
Share on other sites
Hello guys,

This weekend i make a simple bot to locate some bitmaps and click. But, after a while (sometimes lasts 1 hour , sometimes even 15 minutes) the following error appears in the scar-divi : "CANVAS DOES NOT WORKING" ... I wonder if someone could help me...

[/code]

 

Load your bitmaps outside (before) the looping so you don't keep reloading them into memory and running it out until canvas stops working. Then free them at the end of script. There are some other options like loading and then freeing everytime but it's better for your application to load once and free at the end.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×