我璦你、 發表於 2014-9-4 20:29:36

vb6 sendKeys 問題

我想要用 sendkeys "{F5}"

至今發現  ((執行的時候  他寫 "你沒有執行的權限 " <<大概這樣寫

請問為啥會這樣˙˙

If Check1.Value = 1 Then
            Timer1.Enabled = True
        End If
        If Check1.Value = 0 Then
            Timer1.Enabled = False
            End If

哪裡出問題阿

cuandy01 發表於 2014-9-4 21:22:07

直接編譯出來測試~

asdf70813 發表於 2014-9-5 09:58:22

你想用鍵盤熱見吧
自己去GOOGLE
還有你寫法太XX了
改成這樣
寫法1
If Check1.Value = 1 Then
Timer1.Enabled = True
Else
Timer1.Enabled = False
End If

寫法2
If Check1.Value = 1 Then Timer1.Enabled = True
If Check1.Value = 0 Then Timer1.Enabled = False

寫法3
If Check1.Value = 1 Then Timer1.Enabled = True : If Check1.Value = 0 Then Timer1.Enabled = False



其實都差不多的東西If Check1.Value = 1 Then
            Timer1.Enabled = True
        End If
        If Check1.Value = 0 Then
            Timer1.Enabled = False
            End If還有不是這段 程式碼的問題
這段本身不會報錯
要問 問題請貼出  詳細程式碼..
頁: [1]
查看完整版本: vb6 sendKeys 問題