Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off & setlocal enableDelayedExpansion
- :mouse
- batbox /g 15 10 /c 0x1f /d "HIER KLICKEN"
- ::Werte eines Mausklicks einlesen:
- for /f "tokens=1,2 delims=:" %%X in ('batbox /m') do (
- set x=%%X
- set y=%%Y
- )
- ::überprüfen ob dieser Wert im Bereich des Buttons liegt:
- if %y% EQU 10 (
- if %x% GEQ 14 if %x% LEQ 26 (
- goto :Clic
- )
- )
- ::Falls nicht:
- goto mouse
- ::Falls schon:
- :Clic
- batbox /g 15 10 /c 0x9a /d "HIER KLICKEN" /w 200
- goto :mouse
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement