Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/268.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Autohotkey 自动热键中的窗口标题_Autohotkey - Fatal编程技术网

Autohotkey 自动热键中的窗口标题

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

在自动热键中,如何编写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}
}

获取窗口标题的方法有很多种,但我认为最好的选择是使用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文件。