A practical Ahk Software "Voice number"

Source: Internet
Author: User

Many people often have to enter a large number of numbers, such as identity cards, mobile phone numbers, and so on, then use this
Ahk made software is very convenient, it can be continuously lost on one side in order to read out,
do not worry about the wrong, but also save the trouble of checking.

;---------------------------
;  Voice numbers (by Feiyue);---------------------------; Put this script and voice files together and compile #NoEnv #SingleInstance Force detecthiddenwindows, on menu, Tray, Icon, Shell32.dll, menu, Tray, NoS
Tandard menu, Tray, add, Assist, help Menu, Tray, add, suspend use, Dosuspend menu, Tray, Add, exit, Exitsub Menu, Tray, Default, suspend use Menu, Tray, Click, 1;//Create a voice directory in the Temp folder F=%a_temp%\yuyinshuzi if! INSTR (FileExist (f), "D") {ifexist,%f% {filesetattrib,-R,%f% filedelete,%f%} filecreatedir,%f%} Set  Workingdir,%f%;//Copy the voice file to the Voice directory ifnotexist, 0.wav fileinstall, 0.wav,%f%\0.wav ifnotexist, 1.wav fileinstall, 1.wav,  %f%\1.wav ifnotexist, 2.wav Fileinstall, 2.wav,%f%\2.wav ifnotexist, 3.wav fileinstall, 3.wav,%f%\3.wav ifnotexist, 4.wav Fileinstall, 4.wav,%f%\4.wav ifnotexist, 5.wav fileinstall, 5.wav,%f%\5.wav ifnotexist, 6.wav Fileinstall, 6.wav,%f%\6.wav ifnotexist, 7.wav fileinstall, 7.wav,%f%\7.wav ifnotexist, 8.wav fileinstall, 8.wav,%f%\8.wav ifnot Exist, 9.wav Fileinstall, 9.wav,%f%\9.wav ifnotexist, 10.wav fileinstall, 10.wav,%f%\10.wav;//Allow only one of the programs to run Pid:=dllcal L ("GetCurrentProcessId") winget, Name, ProcessName, Ahk_pid%pid% Loop, 2 {winget, list, list, Ahk_class AutoHotkey I
    F (list=1) break Loop,%list% {id:=list%a_index% winget, p, PID, ahk_id%id% if (p=pid) Continue Winget, N, ProcessName, ahk_id%id% if (n=name) {winclose, ahk_id%id% winwaitclose, ahk_id%id%, , 1 if ErrorLevel Winkill, ahk_id%id%,, 1}};//Set Hotkey Loop, {i:=a_index-1 Hotkey, $%i%, so und;//laptop computer needs Hotkey, numpad%i%, sound} Hotkey, $., sound;//notebook computer need Hotkey, Numpaddot, sound;//buffer behind the button crit
ical Return sound:k:=substr (a_thishotkey,0) if (k= "T" or k= ".")
  {Sendraw.        Soundplay,%f%\10.wav} else {Sendraw%k% soundplay,%f%\%k%.wav} Sleep, Return Help:msgbox, 4096, using Help, (' N Speech number (by Feiyue) ' n ' n The purpose of this program: on the keypad or on the main keyboard ' n by number (0-9) and Dot (.)Will read out the sound.
' N pause: Left click the program icon at the bottom right.
' n ' when entering QQ password with keypad, suspend "' N ' exit program: Right click on the program icon and select Exit. ), return dosuspend:suspend return Exitsub:exitapp

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.