Re: NVDA and Autohotkey

 

Hello,
Sorry, no one responded to my previous email, thus I resend it.

I have the following script as an example

FileEncoding, UTF-8


Menu, Clipboard Sync, Add, Save Windows Clipboard to Cloud, Clipboard2Cloud_Save
Menu, Clipboard Sync, Add, Append Windows Clipboard to Cloud, Clipboard2Cloud_Append
Menu, Clipboard Sync, Add, Read Cloud to Windows Clipboard, Cloud2Clipboard
Menu, Clipboard Sync, Add, Open Text File, OpenClipboardsyncTxtFile

;Menu, Software, Add, Firefox (Default profile), FirefoxDefault
Menu, Shortcuts, Add, Firefox Limited configuration Profile, FirefoxLimitedcfg

Menu, Folder, Add, AppData Folder, OpenFolder_appdata
Menu, Folder, Add, Downloads, OpenFolder_Downloads
Menu, Folder, Add, Secondary Drive (E Drive), OpenFolder_EDrive
Menu, Folder, Add, Startup Folder, OpenFolder_Startup

Menu, Work Related, Add, Payment Record Folder, OpenFolder_paymentrecord

Menu, Video, Add, Append to m3u file, Video_appendtom3u
Menu, Video, Add, Clear m3u file, Video_clearm3u
Menu, Video, Add, Play m3u file, Video_playm3u

Menu, My Favourite, Add, Apple Clipboard Sync, :Clipboard Sync
Menu, My Favourite, Add, Folder, :Folder
Menu, My Favourite, Add, Dropbox, OpenFolder_Dropbox
Menu, My Favourite, Add, Shortcuts, :Shortcuts
Menu, My Favourite, Add, Google Drive, OpenFolder_Googledrive
Menu, My Favourite, Add, ICloud Drive, OpenFolder_Iclouddrive
Menu, My Favourite, Add, Work Related, :Work Related
Menu, My Favourite, Add, Video, :Video
return

Clipboard2Cloud_Save:
;Dropbox
FileDelete, C:\Users\%CurrentOS_UserName%\Dropbox\Apple Shortcuts\IOS clipboard.txt
FileAppend, %clipboard%, C:\Users\%CurrentOS_UserName%\Dropbox\Apple Shortcuts\IOS clipboard.txt
;ICloud
;FileDelete, C:\Users\%CurrentOS_UserName%\iCloudDrive\iCloud~is~workflow~my~workflows\Apple Shortcuts\IOS clipboard.txt
;FileAppend, %clipboard%, C:\Users\%CurrentOS_UserName%\Dropbox\Apple Shortcuts\IOS clipboard.txt
TrayTip, Windows Clipboard saved to Cloud,%clipboard%
return

Clipboard2Cloud_Append:
;Dropbox
FileAppend, `r`n, C:\Users\%CurrentOS_UserName%\Dropbox\Apple Shortcuts\IOS clipboard.txt
FileAppend, %clipboard%, C:\Users\%CurrentOS_UserName%\Dropbox\Apple Shortcuts\IOS clipboard.txt
;Icloud
;FileAppend, `r`n, C:\Users\%CurrentOS_UserName%\iCloudDrive\iCloud~is~workflow~my~workflows\Apple Shortcuts\IOS clipboard.txt
;FileAppend, %clipboard%, C:\Users\%CurrentOS_UserName%\iCloudDrive\iCloud~is~workflow~my~workflows\Apple Shortcuts\IOS clipboard.txt
TrayTip, Windows Clipboard appended to Cloud, %clipboard%
return

Cloud2Clipboard:
clipboard := ""
;Dropbox
FileRead, clipboard, C:\Users\%CurrentOS_UserName%\Dropbox\Apple Shortcuts\IOS clipboard.txt
;ICloud
;FileRead, clipboard, C:\Users\%CurrentOS_UserName%\iCloudDrive\iCloud~is~workflow~my~workflows\Apple Shortcuts\IOS clipboard.txt
TrayTip, Cloud to Windows Clipboard, %clipboard%
return

OpenClipboardsyncTxtFile:
;Dropbox
Run C:\Users\%CurrentOS_UserName%\Dropbox\Apple Shortcuts\IOS clipboard.txt
;Icloud
;Run C:\Users\%CurrentOS_UserName%\iCloudDrive\iCloud~is~workflow~my~workflows\Apple Shortcuts\IOS clipboard.txt
return

;FirefoxDefault:
;Run C:\Program Files\Mozilla Firefox\firefox.exe -no-remote -p default
;return

FirefoxLimitedcfg:
Run C:\Program Files\Mozilla Firefox\firefox.exe -no-remote -p limitedcfg
return

OpenFolder_appdata:
Run C:\Users\%CurrentOS_UserName%\AppData\Roaming
return

OpenFolder_Downloads:
Run C:\Users\%CurrentOS_UserName%\Downloads
return

OpenFolder_Dropbox:
Run C:\Users\%CurrentOS_UserName%\Dropbox
return

OpenFolder_EDrive:
Run E:\
return

OpenFolder_Googledrive:
Run C:\Users\%CurrentOS_UserName%\Google Drive
return

OpenFolder_Iclouddrive:
Run C:\Users\%CurrentOS_UserName%\iCloudDrive
return

OpenFolder_paymentrecord:
Run C:\Users\%CurrentOS_UserName%\Dropbox\Payment Record - Unpaid 待付款
return

OpenFolder_Startup:
Run C:\Users\%CurrentOS_UserName%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
return

Video_appendtom3u:
FileAppend, %clipboard%, C:\Users\%CurrentOS_UserName%\Dropbox\playlist.m3u
FileAppend, `r`n, C:\Users\%CurrentOS_UserName%\Dropbox\playlist.m3u
TrayTip, %clipboard%, appended to m3u file.
return

Video_clearm3u:
FileDelete, C:\Users\%CurrentOS_UserName%\Dropbox\playlist.m3u
FileAppend, , C:\Users\%CurrentOS_UserName%\Dropbox\playlist.m3u
TrayTip, , m3u file is cleared.
return

Video_playm3u:
Run "C:\Program Files\DAUM\PotPlayer\PotPlayerMini64.exe" C:\Users\%CurrentOS_UserName%\Dropbox\playlist.m3u
return

^!h::Menu, My Favourite, Show

I don't know why NVDA always defer reporting the TrayTip notification.

For example,
Now I am editing the email to send to you,
If I press ctrl alt h to bring up the menue and selected clear m3u file,
NVDA will say something like
composing email, and read the title of Thunderbird, and read the current line in focus, then read the notification.

I would like NVDA to read it immediately, do you know any way to fix this?
Thanks.

Join nvda@nvda.groups.io to automatically receive all group messages.