Mauszeiger auf Farbe springen

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Mauszeiger auf Farbe springen

    Habe eine gaaanz große bitte!

    Ich mache mal vor was ich möchte:

    Ich brauche ein Programm, welches mir Hilft schnell mit dem Mauszeiger auf eine bestimmte Farbe in einer Anwendung zu Springen!
    z.B. linker Mausklick (oder ein Tastatur zeichen) springt sofort auf die Farbe Gelb oder den Farbcode "#FFFF00" (können auch andere sein)

    Ist sowas möglich? Wenn ja, kann mir jemand einen Source Code/Fertiges Programm schicken?
    Leider fange ich gerade mal mit PHP, HTML, MySQL und dem ganzen kram an in der Schule... doch das reicht leider nicht aus für eine C# programierung. Ich habe online einen Code gefunden, aber weis nicht ob das ActiveX, C++ oder sonst was ist! oder wie ich ihn benutze!

    Ist außerdem scheinbar fehlerhaft

    Quellcode

    1. pixel <strong class="highlight">search</strong> <strong class="highlight">bot</strong> example
    2. ; include the misc UDF library
    3. ; UDF = user defined Function
    4. #include <Misc.au3>
    5. ;----- set the hotkeys ------;
    6. HotKeySet("{f3}", "chosecolor")
    7. ; set the escape button to
    8. ; the exit function
    9. HotKeySet("{esc}", "_exit")
    10. HotKeySet("{f5}", "start")
    11. HotKeySet("{f6}", "stop")
    12. ; declare the variable color to be
    13. ; used globaly
    14. Global $color
    15. ; declare ON globaly and set it
    16. ; to false(off)
    17. Global $ON = False
    18. While 1
    19. Sleep(30); dont **** the CPU
    20. ; if the on is set to true
    21. If $ON = True Then
    22. ; this is the pixel <strong class="highlight">search</strong> function
    23. ; the last parameter (40) is the
    24. ; shade variation
    25. ; the other parameters are the
    26. ; pixel <strong class="highlight">search</strong> area
    27. ; change them so they fits your needs :)
    28. $coord = PixelSearch(0, 0, 400, 400, $color, 40)
    29. ; if the return of coord is an array
    30. ; which means a pixel was found
    31. If IsArray($coord) = 1 Then
    32. ; left click on the pixel
    33. MouseMove($coord[0],$coord[1])
    34. MouseClick("left",$coord[0],$coord[1])
    35. EndIf
    36. EndIf
    37. WEnd
    38. ; chose color function
    39. Func chosecolor()
    40. ; this will display a color chose window
    41. ; the chosen color will be stored in the
    42. ; variable $color
    43. $color = _ChooseColor(2, 0x0080C0, 2, "")
    44. MsgBox(0,'',$color)
    45. EndFunc ;==>chosecolor
    46. ; func extit
    47. Func _exit()
    48. ; simply exits the script
    49. Exit
    50. EndFunc ;==>_exit
    51. ;start func
    52. Func start()
    53. ; set the variable to true
    54. $ON = True
    55. EndFunc ;==>start
    56. ;start func
    57. Func stop()
    58. ; set the variable false
    59. $ON = False
    60. EndFunc ;==>stop
    Alles anzeigen


    Bitte es ist Wichtig!, Thx im vorraus

    DerAnfänger

    Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von DerAnfänger ()