Jump to content

Recommended Posts

When i try make my script find the right picture it doesn't find it and in the console it says this: +>@OSArch=X64    @AutoItX64=0    therefore using x32 ImageSearch DLL

I have no clue what to do with this im kinda new into the autoit programming but it was working fine yesterday and i tried it today and outta nowhere it doesn't work anymore when i haven't made any changes to the script.

Link to post
Share on other sites

Not much information to help you solve your problem.

So as a start: Which program do you try to automate?
Can you please post your script?

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2021-06-05 - Version 1.5.4.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2021-06-14 - Version 1.6.5.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - Wiki

 

Link to post
Share on other sites
  • Moderators

@Duccduccycduc As I stated in your other thread, you have to help us help you by providing enough information to give you suggestions.

"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!

Link to post
Share on other sites

#include <ImageSearch2015.au3>


HotKeySet("{f1}","myExit")
Global $wait = false;
Global $colors= [0x3E7A8F]

$x=0
$y=0
Global $picScreenshot= "C:\Users\pc\Desktop\ImageSearch2015\screenshot1"

while(1)
        first()
        secondIfFirstDone()
        thirdIfFirstAndSecondDone()
        sleep(3000)
WEnd

Func changeDirection()
    MouseClick("left",1432,58,1,1)
    sleep(2000)


EndFunc

func myExit();stop script me F1
    msgbox(0,"Ending", "script quit")
    exit
EndFunc

func secondIfFirstDone()
         changeDirection()
        $pix1= PixelSearch(818,35,1101,56,0x0FFCB05,1) 
            if not (@error) then 
            MouseClick("left",303,883,1,Random(1,50)) 
            MouseClick("left",Random(1600,1688),Random(55,78),1,1)
            sleep(6000)
            EndIf

    EndFunc


func first()
     changeDirection()
    $pix= PixelSearch(610,178,1076,560,0xFEF5F4,3)
        if not (@error) then  
            sleep(2000)
            
            MouseClick("left", $pix[0], $pix[1],1,1) 
            Sleep(5000)

        EndIf


    EndFunc

func SearchTrue()
    $pixSearch1= PixelSearch(818,35,1101,56,0x0FFCB05,1) 
            if not (@error) then ;
                return True;
            Else
                return False
            EndIf
    EndFunc

func thirdIfFirstAndSecondDone()
    while(1)

        $pix3= PixelSearch(1234,378,1260,399,0x643713,1)
        if (@error) Then
            ExitLoop
        Else
            $pix2= PixelSearch(3,28,1639,1034,0x3E6976,5) 
            if not (@error) then 
                    if SearchTrue() then
                        first()
                    EndIf
                    MouseClick("right",$pix2[0],$pix2[1],1,5)
                    $result= _ImageSearch($picScreenshot,1,$x,$y,1,0)
                    if $result= 1 then 
                        MouseClick("left",$x,$y,1,1)
                        
                    EndIf
                    sleep(5000)
                    $wait= true
                    while($wait) 
                        $isWaiting= PixelSearch(8,33,10,35,0xD39223,1)
                        if not (@error) then
                        Else
                            $wait = False
                            sleep(3000)

                        EndIf

                    WEnd
                EndIf
            sleep(2000)
        EndIf
    WEnd
EndFunc

 

 

this is basically the script but the imagesearch doesn't work anymore with the message it kept saying as i stated above.

Link to post
Share on other sites
  • Developers

..but the thing I am trying to tell you is that we have Nothing  to have a play with other than your script without the file!
So what about you either provide ALL required information, as now is requested for the 3rd and last time,  for us to be able to help you or simply sort it out yourself and stop asking for help?

Jos

Edited by 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.
  :)

Link to post
Share on other sites
  • Moderators

The point Jos is so patiently trying to make is no one can test your script because no one knows what the image is, and what you're searching for. You're asking us to first guess at what is in your screenshot and then help you troubleshoot why you cannot find what you're looking for. Help us help you.

"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!

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...