Jump to content

Nitrolord

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by Nitrolord

  1. No I posted this as a Help Forum for those who cant figure out why there AU3Info Tool is returning a different HEX Color then the PixelGetColor. But if you prefer I post it in the Examples Forum then no problem.
  2. Jos is correct it is returning the pixel at the very tip of your mouse pointer. problem solved here.
  3. I had this problem with PixelGetColor not giving me the same HEX Color as the AU3Info Tool and searched every were with no luck then had a OH DA moment LoL. The problem is that the "PixelGetColor ($mouseX[0], $mouseY[1])" is looking rite at the very tip of the mouse pointer not under it. So you have to set a -3 after the [0] and [1]. "PixelGetColor ($mouseX[0] -3, $mouseY[1] -3)" to make it search next to the pointer not on the pointer. You may have to adjust this a bit for your display but you should not have to go more then -5. -3 seems to work best for me. Example.au3 #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Form1", 141, 127, 276, 231) $Input1 = GUICtrlCreateInput("", 8, 8, 121, 21) $Label1 = GUICtrlCreateLabel("Press or Hold F1 to get Hex color at Mouse X -3, Y-3 Pos,", 8, 40, 124, 73) GUISetState(@SW_SHOW) HotKeySet("{f1}","MousePos") Func MousePos() $aPos = MouseGetPos() $PGC = PixelGetColor($aPos[0] -3, $aPos[1] -3) GUICtrlSetData($Input1, "0x" & Hex($PGC, 6)) EndFunc While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
  4. I know this post is old but if your still wondering and for others who are still looking for the solution check out my post.
  5. I know this post is old but if your still wondering and for others who are still looking for the solution Check out my post.
  6. Well i found a sloppy script and cleand it up a bit but i cant figure out the save. If u can figure it out pls let me know. #Include <ScreenCapture.au3> HotKeySet("{ESC}", "_esc") _ScreenCapture_SetJPGQuality(100) $x=0 while 1 _ScreenCapture_Capture(@ScriptDir, "clip" & $x & ".jpg") $x = $x + 1 _save() WEnd Func _save() Local $hBmp _ScreenCapture_SaveImage (@ScriptDir & "clip" & $x & ".jpg", $hBmp) EndFunc func _esc() Exit EndFunc
×
×
  • Create New...