Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Hotkey call tripartite program-practical method

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1. Description of the problem or requirement:

Hotkey call tripartite program

two。 Solution:

Using the AutoIt3 scripting language, you can quickly write a hotkey keynote program.

3. For example:

Use hotkeys to call three-party programs to achieve specific needs. In the routine, we can adjust the tripartite program when pressing the "F4" key to clear all Bluetooth connections on the computer.

Au3 Code:

If WinExists ("firswof-clearbt") Then ExitGUICreate ("firswof-clearbt") HotKeySet ("{ESC}", "_ Exit") HotKeySet ("{F2}", "_ ShutAllConsole") HotKeySet ("{F3}", "_ RestartBT") HotKeySet ("{F4}", "_ ClearBT") ToolTip ("[ESC: exit") F4: clear Bluetooth] ", 0,0) While (1) Sleep (60000) WEndFunc _ Exit () ExitEndFuncFunc _ ClearBT () ShellExecute (" E:\ BT_Pair.exe ","-u ",") EndFuncFunc _ RestartBT () ShellExecute ("E:\ BT_Pair.exe", "- r", ") EndFuncFunc _ ShutAllConsole () ShellExecute (" E:\ BT_Pair.exe ","-a ",") EndFunc

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report