Hallo,
ich wollte gerade einen Script machen, das ein Bild, solange es gerdrückt wird nicht ausgewählt wird.
Das heißt, wenn ich auf einem Bild klicke und die Maus gedrückt halte soll nichts passieren. Aber wenn ich es über diesem Bild loslasse soll eine Msgbox auftauchen. Hat jemand eine Idee?
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
$Cursorinfo1 = GUIGetCursorInfo($Form1)
If $Cursorinfo1[4] = $Pic1 And $Cursorinfo1[2] = 1 Then
While 1
$Cursorinfo2 = GUIGetCursorInfo($Form1)
If $Cursorinfo2[2] = 0 Then
If Not $Cursorinfo2[4] = $Pic1 Then
MsgBox(0, "", "nICHT")
ExitLoop
EndIf
EndIf
Sleep(10)
WEnd
EndIf
Sleep(10)
WEnd