正在阅读:按键精灵教程:不同windows主题兼容窗口脚本按键精灵教程:不同windows主题兼容窗口脚本

2009-04-28 16:58 出处:PConline原创 作者:佚名 责任编辑:zhangyifei

  不同windows主题兼容窗口脚本。(移动窗口 定位窗口 通用脚本)

      Plugin dingweihwnd=Window.Find("Notepad",0)

  //Plugin dingweihwnd=DBSoft.GetHwndNEX("记事本",0,1,"Notepad",1,1,0)

  //TracePrint dingweihwnd

  TracePrint dingweihwnd

  //TracePrint dingweihwnd(0)

  //获取窗口句柄

  //    dingweii=0

  For 1

  //For UBound(dingweihwnd)+1

  Plugin rect=Window.GetClientRect(dingweihwnd)

  //    Plugin rect=Window.GetClientRect(dingweihwnd(dingweii))

  dingweiiMyArray=Split(rect,"|",-1,1)

  TracePrint dingweiiMyArray(0) & ":" & dingweiiMyArray(1)

  If dingweiiMyArray(0)<>3 or dingweiiMyArray(1)<>27

  Plugin dingweibiaoti=Window.GetWindowRect(dingweihwnd)

  //    Plugin dingweibiaoti=Window.GetWindowRect(dingweihwnd(dingweii))

  dingweibiaoti=Split(dingweibiaoti,"|",-1,1)

  //Plugin dingweibiaoti=DBSoft.GetWindowsRect(dingweihwnd(dingweii))

  dingweix=dingweiiMyArray(0)-dingweibiaoti(0)

  dingweiy=dingweiiMyArray(1)-dingweibiaoti(1)

  dingweix=3-dingweix

  dingweiy=27-dingweiy

  Plugin Window.Move(dingweihwnd,dingweix,dingweiy)

  //Plugin DBSoft.SetWindowsRect(dingweihwnd(dingweii),dingweix,dingweiy,0,0)

  //移动窗口

  EndIf

  dingweii=dingweii+1

  EndFor

  EndScript

  复制代码红色部分是在原创作主题获取的。

  dingweiiMyArray(0)=3

  dingweiiMyArray(1)=27

  要在脚本上修改3,27

  有大兵插件和按键自带插件2个版本

  大兵版本能多窗口修改,自带插件只能单窗口

关注我们

最新资讯离线随时看 聊天吐槽赢奖品