how can use getinput.exe
ı dont understand
At the very basic level, you just run GetInput.exe and then a representation of what the user entered is stored in the %errorlevel% variable. If the user pressed a key, %errorlevel% will be positive. If the user clicked the mouse, %errorlevel% will be negative.
If all you need to check is if the user clicked something, just use
if %errorlevel% leq 0 (
echo Mouse was clicked
If you need to check where the user clicked something, use the code in Usage.txt, remembering that the top-left corner of the screen is 0,0.
if %errorlevel% gtr 0 (
echo Key pressed: %errorlevel%
) else (
rem Mouse button clicked
set /A "input=-%errorlevel%, row=input >> 16, col=input & 0xFFFF"
if !col! lss 32768 (
echo LEFT button clicked at !row!,!col!
) else (
set /A col-=32768
echo RIGHT button clicked at !row!,!col!
@thekvc ı dont understood.
I find usage.txt insufficient.
give more examples and please explain more
input.exe is using a lot of memory. so I want to use getinput.exe