Jump to content
Sign in to follow this  
randa

Error planned tasks with image search

Recommended Posts

Hello, 

When i run my script with the command Run Script (x64bits) it works by when i do it with the planned tasks the following error message comes :

image.png.86ad6d3cf7c3833499519a808a1dad01.png

I try to do it with ImageSearch.dll 32bits and 64bits and versions of autoit 86, 64 and 32bits but it doesn't work.

My script is :

#include <ImageSearch.au3>


shellexecute("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe","http://xxxxxxxxxxx")
Sleep (10000)

$x1=0
$y1=0
  $result = _ImageSearch("NameImage.png",1,$x1,$y1,0)
 if $result=1 Then
     MouseClick("Left", $x1 + 50, $y1, 1)
     Sleep (5000)
Send ("USERNAME")
ElseIf msgbox(4,"blablabla","blablabla",10)

 EndIf

 $a1=0
$b1=0
  $result = _ImageSearch("PasswordImage.png",1,$a1,$b1,0)
  MouseMove($a1,$b1,10)
 if $result=1 Then
     MouseClick("Left", $a1 + 150, $b1, 1)
     Sleep (5000)
Send ("PASSWORD")


 EndIf

 $x1=0
$y1=0
  $result = _ImageSearch("NameImage2.png",1,$x1,$y1,0)
 if $result=1 Then
     MouseClick("Left", $x1, $y1, 1)
     Sleep (5000)

 EndIf

 

Can someone help me to solve my issue ? Thank you a lot.

Share this post


Link to post
Share on other sites

@randa it looks very much like you are trying to automate getting around a Captcha image, is this accurate?

 

===In case you missed it, this is a Mod stepping into a thread===


"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites

Hello, Thank you for your help. I want to run a scheduled task by opening a url until everything works but when I say to find an image I have this error message. Do you have an idea? thanks a lot for your help

Share this post


Link to post
Share on other sites

You haven't answer the question raised:

On 2/22/2019 at 4:51 PM, JLogan3o13 said:

@randa it looks very much like you are trying to automate getting around a Captcha image, is this accurate?

So is this the case?

Jos


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
1 hour ago, randa said:

Hello Jos,

No this is not the case. Do you think that a file is missing somewhere ? Thank you

Then please explain in more detail what you are trying to accomplish. A picture of the passwordimage and nameimage pictures would go a long way toward helping folks understand.

Edited by JLogan3o13

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...