Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.57 KB | None | 0 0
  1. #include<misc.au3>
  2. local $mousewheel=false
  3. while _ispressed(04)
  4.     record()
  5. wend
  6. while not _ispressed(04)
  7.     sleep(10)
  8.     wend
  9. func record()
  10. mciSendString("open new type waveaudio alias mysound")
  11. mciSendstring("record mysound")
  12. mciSendstring("save mysound mysound.wav")
  13. mciSendstring("close mysound")
  14. FileCopy("mysound.wav", @scriptdir&"\mysound.wav", 1)
  15. Msgbox(0, "", "")
  16. endfunc
  17. Func mciSendstring($string)
  18.     Local $iRet
  19.     $iRet = DllCall("winmm.dll", "int", "mciSendStringA", "str", $string, "str", "", "int", 65534, "hwnd", 0)
  20.     If Not @error Then Return $iRet[2]
  21. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement