#x:: @ WinGetPos, X, Y, width, height, A ; \"A\" to get the active window\'s pos.@ @ if(width = 1288 and height = 954)@ {@ WinRestore A ; 还原当前窗口@ }@ else@ {@ WinMaximize A ; 最大化当前窗口 @ ;SendMessage,0x112,0xF030,0,,A @ }@ Return@#y:: run D:\\02_Green\\putty0.60en\\PUTTY.EXE -load Gen -l liun -pw liun 10.144.118.207@#z::@ WinGetPos, X, Y, w, h, A ; \"A\" to get the active window\'s pos.@ MsgBox, at %X%`,%Y%, size (%w%, %h%)@ |