xhuyvn Posted September 18, 2015 Share Posted September 18, 2015 (edited) Hi all expert autoit.I got a problem with imagesearch and pixelgetcolor.It not work for all pc.My autoit program work fine on my pc with nvidia graphic card. when i test it will another pc, which use onboard card, it not working.i think my problem is difference of graphic card. How can i fix it? how can i use pixelgetcolor with all pc??Here my example code$color=PixelGetColor($X , $Y )if $color="XXXXXX" then msgbox(0,"wn"," found it")else msgbox(0,"wn"," not found")EndIF Edited September 18, 2015 by xhuyvn Link to comment Share on other sites More sharing options...
computergroove Posted September 18, 2015 Share Posted September 18, 2015 #include <MsgBoxConstants.au3> Local $Color = PixelGetColor($x,$y) MsgBox(0,0,$Color)Different video cards can produce slightly different results. You might have to test all video cards you want to use your script on and you can do something like:If $Color == xxxxxx or $Color == yyyyyy or $Color == zzzzzz Thenor start thinking outside the box for a different solution. If you provide the app you are using I can test intel hd video and nvidia. Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html Link to comment Share on other sites More sharing options...
Reyzor Posted February 4, 2018 Share Posted February 4, 2018 Hello guys, Im new at autoit and i need help with the same problem. i have this: #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=Michael-Beach-Axe-Cop-Axe-Cop-Head.ico #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <TabConstants.au3> #include <WindowsConstants.au3> #include <Date.au3> #Region ### START Koda GUI section ### Form=c:\users\reyz\desktop\autoit\detencao tablesheet.kxf $Form1_1 = GUICreate("test (helper)", 500, 466, 192, 123) $Tab1 = GUICtrlCreateTab(0, 0, 497, 465) $TabSheet1 = GUICtrlCreateTabItem("test1") $assinatura = GUICtrlCreateLabel("test", 360, 448, 134, 17) (after some lines, i just do this funcion....how can i do for all computers work? func mail() if PixelGetColor (114, 19) = 0xf5f5fa and PixelGetColor (171, 328) = 0xfff7b2 Then MouseClick("right", 114, 19, 2) endif EndFunc thanks for help! 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