Jump to content

Search the Community

Showing results for tags 'PixelChecksum'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Location


WWW


Interests

Found 5 results

  1. Hey there! Is there a way to detect movement only for 1 specific window? HWnd is not really working, it still detects movement in all the windows within the region This is my script: ;Checksum actual HotKeySet("{f2}", 'exit_') MsgBox(0, '', '0') Beep(500, 2000) $Hwnd = WinActive('') while 1 $Checksum = PixelChecksum(211, 650, 1094, 914, 1, $Hwnd) If PixelChecksum(211, 650, 1094, 914, 1, $Hwnd) <> $Checksum Then For $i = 1 To 100 Beep(1000, 50) Next MsgBox(0, '', 'New message!', 1) EndIf WEnd Func exit_() Beep(500, 1000) Exit 0 EndFunc I just want to check whenever a message comes because the app i use doesn't give notifications properly. Any help is really appreciated!
  2. Hi there, I did a short script to simulate mouse click when pixel change is detected on a small section of the screen. I recorded the screen many times to see the accuracy of the script and it seems though response time varies widely. Here's the script $checksum = pixelchecksum (400,250, 402,252) While $checksum = pixelchecksum (400,250, 402,252) Sleep (50) Wend Sleep (300) Mouseclick("left", 450,300, 1, 0) Counting from the pixel change to the mouse click, i get response times anywhere between 370ms and 550ms. I've tried running au3 and exe, changed sleep times but never gotten an accurate response time based on the script. Any ideas why?
  3. I could use a bit of math help. What I'd like to do is sample a 5x5 pixel area with PixelChecksum. I would then sample again a few seconds later to check for a change as seems to be the normal usage. Can I do any useful maths on the PixelChecksum results? For instance, if I subtracted the two sample values would it tell me anything about pixel color content? Might I know that a color shift has happened to maybe Blue or Red for instance? Or would I have to do that on a per pixel sample? And if that is the case... what math would i use to compare an RGB value against another to detect a shift in color from neutral towards Red or Blue? From the docs: Func _testShift() ; with PixelChecksum Local $toler=5 Local $PCS1 = PixelChecksum($x + $toler, $y + $toler, $x - $toler, $y - $toler, 1, $windowHandle , 0) Sleep(200) Local $PCS2 = PixelChecksum($x + $toler, $y + $toler, $x - $toler, $y - $toler, 1, $windowHandle , 0) If $PCS1 <> $PCS2 Then ; How to compare these meaningfully for colorshift? ; or with single pixel.... Local $px1 = PixelGetColor($x, $y, $windowHandle) Local $pxRGB1 = _ColorGetRGB($px1) Sleep(200) Local $px2 = PixelGetColor($x, $y, $windowHandle) Local $pxRGB2 = _ColorGetRGB($px2) If $px1 <> $px2 Then If $pxRGB1[0] < $pxRGB2[0] Then Red? If $pxRGB1[2] < $pxRGB2[2] Then Blue? EndFunc
  4. Hello, i need help with my script here. I want to detect when my Screen is nearly or completly dark/black. I'm using PixelChecksum(0,0,1919,1079) and it's giving me random numbers (e.g. 2690216355, 2589900821, 854331631, 481460664) How can i compare that with a Black like 0xFFFFFF ?
  5. when i macro surf with IE certain pages tend to hang or my IE crashes. so im looking for a way to get things moving again if im not around. is there any commands that can refresh page if, lets say, PixelChecksum (50,50,100,100) stays the same for maybe 2 mins?
×
×
  • Create New...