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
Alles anzeigen
Bitte es ist Wichtig!, Thx im vorraus
DerAnfänger
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
- pixel <strong class="highlight">search</strong> <strong class="highlight">bot</strong> example
- ; include the misc UDF library
- ; UDF = user defined Function
- #include <Misc.au3>
- ;----- set the hotkeys ------;
- HotKeySet("{f3}", "chosecolor")
- ; set the escape button to
- ; the exit function
- HotKeySet("{esc}", "_exit")
- HotKeySet("{f5}", "start")
- HotKeySet("{f6}", "stop")
- ; declare the variable color to be
- ; used globaly
- Global $color
- ; declare ON globaly and set it
- ; to false(off)
- Global $ON = False
- While 1
- Sleep(30); dont **** the CPU
- ; if the on is set to true
- If $ON = True Then
- ; this is the pixel <strong class="highlight">search</strong> function
- ; the last parameter (40) is the
- ; shade variation
- ; the other parameters are the
- ; pixel <strong class="highlight">search</strong> area
- ; change them so they fits your needs :)
- $coord = PixelSearch(0, 0, 400, 400, $color, 40)
- ; if the return of coord is an array
- ; which means a pixel was found
- If IsArray($coord) = 1 Then
- ; left click on the pixel
- MouseMove($coord[0],$coord[1])
- MouseClick("left",$coord[0],$coord[1])
- EndIf
- EndIf
- WEnd
- ; chose color function
- Func chosecolor()
- ; this will display a color chose window
- ; the chosen color will be stored in the
- ; variable $color
- $color = _ChooseColor(2, 0x0080C0, 2, "")
- MsgBox(0,'',$color)
- EndFunc ;==>chosecolor
- ; func extit
- Func _exit()
- ; simply exits the script
- Exit
- EndFunc ;==>_exit
- ;start func
- Func start()
- ; set the variable to true
- $ON = True
- EndFunc ;==>start
- ;start func
- Func stop()
- ; set the variable false
- $ON = False
- EndFunc ;==>stop
Bitte es ist Wichtig!, Thx im vorraus
DerAnfänger
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von DerAnfänger ()