Advertisement
Guest User

BatBox /M

a guest
Nov 13th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.46 KB | None | 0 0
  1. @echo off & setlocal enableDelayedExpansion
  2. :mouse
  3. batbox /g 15 10 /c 0x1f /d "HIER KLICKEN"
  4.  
  5. ::Werte eines Mausklicks einlesen:
  6. for /f "tokens=1,2 delims=:" %%X in ('batbox /m') do (
  7.     set x=%%X
  8.     set y=%%Y
  9. )
  10.  
  11. ::überprüfen ob dieser Wert im Bereich des Buttons liegt:
  12. if %y% EQU 10 (
  13.     if %x% GEQ 14 if %x% LEQ 26 (
  14.         goto :Clic
  15.     )
  16. )
  17.  
  18. ::Falls nicht:
  19. goto mouse
  20.  
  21. ::Falls schon:
  22. :Clic
  23. batbox /g 15 10 /c 0x9a /d "HIER KLICKEN" /w 200
  24. goto :mouse
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement