vba - MS Access VBA AppActivate“发送传真”和 SendKeys
问题描述
我正在向多功能传真机/打印机发送一系列访问报告。每个报告都是自定义的,需要转到特定的电话号码。我想自动化,但它一直卡在脚本应该输入数字并继续的地方。
DoCmd.PrintOut 'This works fine to print to the Fax
AppActivate "Send fax" 'This works as the window focus changes from MS Access to the Send fax dialog box
SendKeys "%f" & rst![Fax] 'This does not work and when I move the mouse around, I get a pointer when on the Send fax dialog box but a busy spinning circle when I move the mouse away from the dialog box. It seems the process is hung up at AppActivate and not letting this part work.
SendKeys "%d99" 'This part would thus not work also
SendKeys "{Enter} 'This part would thus not work also
解决方案
推荐阅读
- hyperledger-fabric - Hyperledger Fabric:获得一个与多个同行的认可
- javascript - 无法读取对象数组上未定义的属性“推送”(Typeof 显示对象)
- android - 在没有 Android Studio 的情况下在 Google Play 控制台上部署移动应用
- c# - 为什么我的看不到
沙 s from Intellisense? using C# and Visual Studio 2017-2019
- git - 如何在没有来源的 Git 上使用 zsh tab 补全?
- python - 将 unicode 小写大写字母转换为其 ASCII 等价物
- python - 为什么第一次发送/获取后项目冻结?
- date - AIML 聊天机器人的响应在不同时间有所不同?
- parallel-processing - Dataprovider Mixing Up Values for Parallel Methods
- loops - 使用原始变量的计数获取时间复杂度