Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; 建立視窗, 以下的 Input: 開頭即是指名名字為 Input
- Gui, Input:New
- Gui, Input:Add, Text, x12 y20 w120 h20, 按'Alt+F5'鍵要貼上的字串
- Gui, Input:Add, Text, x12 y50 w120 h20, 按'Alt+F6'鍵要貼上的字串
- Gui, Input:Add, Text, x12 y80 w120 h20, 按'Alt+F7'鍵要貼上的字串
- Gui, Input:Add, Text, x12 y110 w120 h20, 按'Alt+F8'鍵要貼上的字串
- Gui, Input:Add, Edit, x142 y20 w100 h20 vEdit1,
- Gui, Input:Add, Edit, x142 y50 w100 h20 vEdit2,
- Gui, Input:Add, Edit, x142 y80 w100 h20 vEdit3,
- Gui, Input:Add, Edit, x142 y110 w100 h20 vEdit4,
- Gui, Input:Add, Button, Default, OK
- ; Alt-F11 叫出視窗
- !F11::
- Gui, Input:Show, x168 y148 h180 w300,
- Return
- ; 其實這裡可以不用費事計算位置和長寬, 可以直接使用 AutoSize 計算長寬, Center 自動置中
- ; 送出
- ; 這裡的前綴字即是你的視窗名, 可以看到原來寫 GuiClose 的變成 InputClose, ButtonOK 也多了 Input 前綴
- InputClose:
- InputButtonOK:
- ; 這裡不一定要指定名字, 因為既然是這個視窗的動作那操作的自然是這個視窗
- Gui, Input:Submit
- Return
- ; Alt-F5 ~ Alt-F8 叫出快鍵
- !F5::
- Send %Edit1%
- Return
- !F6::
- Send %Edit2%
- Return
- !F7::
- Send %Edit3%
- Return
- !F8::
- Send %Edit4%
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement