PhieuLang

ChupManHinh_Source

Apr 9th, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.53 KB | None | 0 0
  1. #include <ScreenCapture.au3>
  2. HotKeySet("{F1}","setA")
  3. HotKeySet("{F2}","setB")
  4. HotKeySet("{F3}","capture")
  5. Global $left,$top,$right,$bottom
  6.  
  7. While 1
  8.    Sleep(100)
  9. WEnd
  10. Func setA()
  11.    Local $pos
  12.    $pos = MouseGetPos()
  13.    $left = $pos[0]
  14.    $top = $pos[1]
  15. EndFunc
  16. Func setB()
  17.    Local $pos
  18.    $pos = MouseGetPos()
  19.    $right = $pos[0]
  20.    $bottom = $pos[1]
  21. EndFunc
  22. Func capture()
  23.    _ScreenCapture_Capture(@DesktopDir & "\PHIEULANG"  & @MON & @MDAY  & @HOUR & @MIN & @SEC  & ".jpg", $left, $top, $right, $bottom)
  24. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment