wangling51 发表于 2009-8-10 20:49:51

切換兩exe?

比如 我一次執行 notpad.exe 和 calc.exe兩程式
想要用 組合鍵如 ctrl alt 1 表示執行 notpad.exe
ctrl alt 2 時隱藏 前一各執行的 notpad.exe (不是關掉)
再執行 calc.exe
當以後 loop ctrl alt 1 或 ctrl alt 2時都會先隱藏前一各執行程式
再分別依 1 或2組合鍵來切換執行
初學 autoit
請高手指導
感謝

kn007 发表于 2009-8-11 08:15:45

謝謝,希望以後多些
weeks 发表于 2009-8-11 08:10 http://www.autoitx.com/images/common/back.gif
楼上的别乱灌水

wangling51 发表于 2009-8-11 09:09:13

請高手指導
謝謝

zjg2003 发表于 2009-8-12 10:50:44

定义热键,执行相关动作,这样就可以实现

liangxm 发表于 2009-8-12 11:33:27

HotKeySet("!1", "stopbuttonhot")
Func stopbuttonhot()
        。。。。
      。。。。
EndFunc

lin6163 发表于 2009-8-12 19:52:00

alt+shift+1
alt+shift+2



#NoTrayIcon

HotKeySet("!++1", "s")
HotKeySet("!++2", "c")

While 1
sleep(10)
WEnd

Func s()
       
MsgBox ("" , "" , "notpad.exe")
run("notpad.exe")
EndFunc

Func c()
MsgBox ("" , "" , "calc.exe")
run("calc.exe")
EndFunc
页: [1]
查看完整版本: 切換兩exe?