toplu iş dosyası ile birlikte fare işlemek için en basit yolu
rundll32 user32.dll,SetCursorPos
Ancak bu çok kullanışlı değil - sadece fareyi 0,0 konumuna getiriyor.
Kontrol mouse.bat - bir öz derlenmiş C#/toplu dosyasıdır ve dış araçları gerektirmez ve kaynak görünür ve düzenlenebilir.
Örnekler:
//clicks at the current position
call mouse click
//double clicks at the current position
call mouse doubleClick
//right clicks at the current position
call mouse rightClick
//returns the position of the cursor
call mouse position
//scrolls up the mouse wheel with 1500 units
call mouse scrollUp 150
//scrolls down with 100 postitions
call mouse scrollDown 100
//relatively(from the current position) moves the mouse with 100 horizontal and 100 vertial postitions
call mouse moveBy 100x100
//absolute positioning
call mouse moveTo 100x100
//relative drag (lefclick and move)
call mouse dragBy 300x200
//absolute drag
call mouse dragTo 500x500
Bir kedim elde öneririz. Onu masanıza koy. İstediğiniz efekti elde edersiniz. – Shmiddty
Bu durumda bunun mümkün olduğundan şüpheliyim. Fare işaretçisini denetlemek için bir toplu komut dosyası için gerçekten bir örnek yok. Her ne olursa olsun, elde etmeye çalıştığınız şeyi elde etmek için daha iyi bir yol var. – David
@David: Daha iyi bir yol için herhangi bir yön? – rapt