29/01/12 0:35
gh0st
allora ho un problema con questa sequenza
Private Sub Command1_Click()
Dim ascissa As Long
Dim ordinata As Long
Dim nickname As String
ascissa = 1650
ordinata = 10
cont = 0
If txt1.Text <> "marco" And txt2.Text < 18 Then
mouse_event MOUSEEVENTF_LEFTDOWN + MOUSEEVENTF_LEFTUP, ascissa, ordinata, 0, 0
SetCursorPos ascissa, ordinata
else
End If
end sub
allora il programma mi parte a meta se io metto dei valori ad txt1 e txt2 tutto apposto funziona bene
ma se io lascio la txt1 e txt2 vuota mi fa errore
io vorrei che se la txt 1 e 2 fossero vuote il programma finirebbe li senza risultarmi errore come posso fare plis aiuto
Private Sub Command1_Click()
Dim ascissa As Long
Dim ordinata As Long
Dim nickname As String
ascissa = 1650
ordinata = 10
cont = 0
If txt1.Text <> "marco" And txt2.Text < 18 Then
mouse_event MOUSEEVENTF_LEFTDOWN + MOUSEEVENTF_LEFTUP, ascissa, ordinata, 0, 0
SetCursorPos ascissa, ordinata
else
End If
end sub
allora il programma mi parte a meta se io metto dei valori ad txt1 e txt2 tutto apposto funziona bene
ma se io lascio la txt1 e txt2 vuota mi fa errore
io vorrei che se la txt 1 e 2 fossero vuote il programma finirebbe li senza risultarmi errore come posso fare plis aiuto
aaa