Duccduccycduc Posted June 22, 2020 Posted June 22, 2020 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.
water Posted June 22, 2020 Posted June 22, 2020 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.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 PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Moderators JLogan3o13 Posted June 23, 2020 Moderators Posted June 23, 2020 @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!
Duccduccycduc Posted June 23, 2020 Author Posted June 23, 2020 #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.
Duccduccycduc Posted June 23, 2020 Author Posted June 23, 2020 Changed my autoit to the 64x one now it gives this in my consolelog +>@OSArch=X64 @AutoItX64=1 therefore using x64 ImageSearch DLL and doesn't search the image after it posts that
Developers Jos Posted June 24, 2020 Developers Posted June 24, 2020 Why are you expecting anybody to be able to assist when not all information is provided? 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.
Duccduccycduc Posted June 24, 2020 Author Posted June 24, 2020 I posted the full script what else do i need to give information about lol
Developers Jos Posted June 24, 2020 Developers Posted June 24, 2020 True.... So will it show your issue when I run it? 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.
Duccduccycduc Posted June 24, 2020 Author Posted June 24, 2020 Well it doesn't search the image and this pops up in the console after i run my script for the imagesearch: "+>@OSArch=X64 @AutoItX64=1 therefore using x64 ImageSearch DLL"
Developers Jos Posted June 24, 2020 Developers Posted June 24, 2020 (edited) ..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 June 24, 2020 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.
Duccduccycduc Posted June 24, 2020 Author Posted June 24, 2020 So you want me to post the script file?
Moderators JLogan3o13 Posted June 24, 2020 Moderators Posted June 24, 2020 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!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now