HomeScript Posted September 28, 2015 Share Posted September 28, 2015 Hi, I want to search BMP in another BMP using this function: I have "Error locking screen 1". My code:$BMP1 = @ScriptDir & "\scrdbg.bmp" $BMP2 = @ScriptDir & "\tru.bmp" findBMP($BMP1,$BMP2, 1) Link to comment Share on other sites More sharing options...
Bert Posted September 28, 2015 Share Posted September 28, 2015 The thread and code are 7 years old. Have you read the entire thread to see if anyone else had the same issue? Have you searched the forum for other people who wanted to do what you are doing and see the issues they have? You may find your solution there. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
junkew Posted September 28, 2015 Share Posted September 28, 2015 The findbmp code is still valid but information is needed on win version and autoit version and most likely it has to do with gdi version. In the findbmp thread there are basic instructions on how to check basic gdi stuff. FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
junkew Posted September 28, 2015 Share Posted September 28, 2015 FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
HomeScript Posted September 29, 2015 Author Share Posted September 29, 2015 (edited) Is there another code to search bitmap in bitmap?Edit:I fixed this, but how to get x, y axis? My code: #include <GDIPlus.au3> #Include <ScreenCapture.au3> #include <string.au3> #include <BmpSearch.au3> $bDebug = False Const $cMatchLinePercentage=0.99 const $c24RGBFullMatch=1 ;Load as 24 bits and full match const $c24RGBPartialMatch=2 ;Load as 24 bits and partial match const $c16RGBFullMatch=3 ;Load as 16 bits and full match const $c16RGBPartialMatch=4 ;Load as 16 bits and partial match Global const $Bitmap1Filename = _GDIPlus_ImageLoadFromFile(@ScriptDir & "\CALCULATOR.BMP") Global Const $Bitmap2Filename = _GDIPlus_ImageLoadFromFile(@scriptDir & "\BACKSPACE.BMP") findTester($Bitmap1Filename,$Bitmap1Filename,$c24RGBPartialMatch) Func FindTester($BMP1, $BMP2, $Bool) local $tResult _GDIPlus_Startup () $start = TimerInit() $tResult=findBMP($BMP1,$BMP2, $Bool) ConsoleWrite($tResult) EndFunc _GDIPlus_Shutdown() Edited September 29, 2015 by HomeScript Link to comment Share on other sites More sharing options...
junkew Posted September 30, 2015 Share Posted September 30, 2015 And whats the output if you run that? Please give details. As it works on my system i only can guess why its not working for you. FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
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