Stuart的Matlab视频

观看并学习

MATLAB编辑器的Autohotkey快捷方式

我创造了一些autohotkey.快捷方式使得在Matlab编辑器中更容易执行任意代码行。他们包括:

  • alt.+进入:执行我目前编辑/键入的行
  • alt.+左键单击:执行刚刚单击的行
  • alt.+鼠标选择:执行所选代码
  • 在这里,我将向您展示一些使用它们的例子。ahk文件如下。

    跟着我 (@stuartmcgarrity)如果您想在我发布时通过Twitter通知。

    以全屏模式播放视频以获得更好的观看体验。

    autohotkey .ahk文件是:

    #noenv;推荐用于性能和兼容未来的Autohotkey版本。#warn;启用警告以帮助检测常见错误。SendMode输入;由于其卓越的速度和可靠性,建议新脚本。SetWorkingDir%a_scriptdir%;确保一个一致的起始目录。#singleinstance力量;Alt + Enter  - >使用F9执行当前代码行!输入::; Alt+Enter Send, {End} Send, +{Home} Send, {F9} Send, {Home} return ; Alt+Click, Alt+Click-Drag/select -> Execute clicked line of code, or click-drag-selected lines of code using F9. ~!LButton:: ~!LButton Up:: ; Alt+Left Click Up (pass-through) if (A_TimeSincePriorHotkey<500){ ; Mouse click and drag-select Send, {End} Send, +{Home} Send, {F9} Send, {Home} } else { ; Just Mouse click Send, {F9} } return
    |
    • 打印
    • 发送电子邮件

    评论

    要发表评论,请点击在这里登录您的MathWorks帐户或创建新的。