Autohotkey 自动热键中的窗口标题
在自动热键中,如何编写if/then语句:Autohotkey 自动热键中的窗口标题,autohotkey,Autohotkey,在自动热键中,如何编写if/then语句: ::create:: IF(Window.Title == 'Microsoft SQL Server Management Studio') { SendInput CREATE TABLE dbo.xxx({Enter} SendInput xxxID Int Identity(101,1) CONSTRAINT xxxID Primary Key{Enter} } 获取窗口标题的方法有很多种,但我认为最好的选择是使用wingtitl
::create::
IF(Window.Title == 'Microsoft SQL Server Management Studio') {
SendInput CREATE TABLE dbo.xxx({Enter}
SendInput xxxID Int Identity(101,1) CONSTRAINT xxxID Primary Key{Enter}
}
获取窗口标题的方法有很多种,但我认为最好的选择是使用wingtitle命令:
WinGetTitle, Window_Title, A ;A is for the active window
If (Window_Title = "Microsoft SQL Server Management Studio") {
}
获取窗口标题的方法有很多种,但我认为最好的选择是使用wingtitle命令:
WinGetTitle, Window_Title, A ;A is for the active window
If (Window_Title = "Microsoft SQL Server Management Studio") {
}
我想你最好接受命令。下面是按Win+C时触发的示例
#c::
IfWinActive, Microsoft SQL Server Management Studio
Send, CREATE TABLE dbo.xxx({Enter}xxxID Int Identity(101,1) CONSTRAINT xxxID Primary Key{Enter}
return
我想你最好接受命令。下面是按Win+C时触发的示例
#c::
IfWinActive, Microsoft SQL Server Management Studio
Send, CREATE TABLE dbo.xxx({Enter}xxxID Int Identity(101,1) CONSTRAINT xxxID Primary Key{Enter}
return
我喜欢这样。在我的情况下,我已经在使用#IfWinActive测试ahk#U类,以查看我是否在Eclipse中。。现在我想测试我是否正在处理一个.java文件。我喜欢这种方式。在我的情况下,我已经在使用#IfWinActive测试ahk#U类,以查看我是否在Eclipse中。。现在我想测试我是否正在处理一个.java文件。