- 帖子
- 49
- 主題
- 5
- 精華
- 0
- 積分
- 92
- 點名
- 0
- 作業系統
- Windows 7
- 軟體版本
- Office 2007
- 閱讀權限
- 20
- 性別
- 男
- 註冊時間
- 2010-7-31
- 最後登錄
- 2011-10-19
|
本帖最後由 ivanyung 於 2010-8-20 21:18 編輯
看到論壇有朋友想要一個 Print Screen 程式, 貪玩的做了一個, 基本上沒什麼功能可言‧
就是運行程式後, 按一下 Print Screen, 就會將現行畫面儲到我的圖片裡‧(filename : PrintScreen.jpg)
附上已編好的程式及原代碼, 請隋便更改‧
PrintScreen.zip (6.68 KB)
- Public Class Form1
- Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Integer) As Short
- Private WithEvents tmr As New Timer
- Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
- tmr.Interval = 200
- tmr.Start()
- End Sub
- Private Sub tmr_Tick(ByVal sender As Object, ByVal e As EventArgs) Handles tmr.Tick
- If GetAsyncKeyState(Keys.PrintScreen) Then
- Dim myImg As Image = Clipboard.GetImage()
- myImg.Save(Environment.GetFolderPath(Environment.SpecialFolder.MyPictures) & "\PrintScreen.jpg")
- End If
- End Sub
- End Class
複製代碼 9 樓有新程式 |
-
1
評分人數
-
-
Min:
非常感謝您無私的分享!金錢 + 1
|