win10操作中心如何开启热点

how to enable hotspot in the action center of win10

出于某些原因,我不想运行一个批处理文件来启动 wifi 热点。

是的,我选择在 autohotkey 中使用 单击 命令在操作中心启用热点。

(我想按 Numpad0 和 NumpadEnter 来启用它)

(以下代码无效)

~Numpad0 & NumpadEnter::

CoordMode MouseGetPos , Screen

MouseGetPos, X, Y

Send #a

MouseClick , Left, 1496, 796, 1, 10, U

Send #a

MouseClick , L, X, Y, 0, 10, , 

Return

问题是,autohotkey 无法将鼠标光标移动到操作中心的按钮上原因不明,也无法单击它。

感谢任何帮助。

修订版 2。

希望对您有所帮助。

~Numpad0 & NumpadEnter::
SetDefaultMouseSpeed, 1 ;;Mouse move superfast!
SetKeyDelay, 10, 60 ;;make sure, you dont have [Sendmode, input] at top of your script.
CoordMode, Screen
CoordMode, Mouse
MouseGetPos, X, Y
Send, #a
Sleep 100
MouseMove,1496,796
Click ;;sends left click
Sleep 100
Send, #a
MouseMove, X, Y ;;goes back to Original Pos

return