Je demande encore de l'aider, et oui ^^
Voici, mon BUT, lancer une fonction après un temps d'inactiver, du PC.
Donc j'ai penser a sa !
Code : Tout sélectionner
#include <Misc.au3>
Global $last_x = 0
Global $1 = 0
Global $Last_y = 0
Global $TIME
main()
Func main()
while 1
Sleep(30000)
If MouseGetPos(0) = $last_x Then
If MouseGetPos(1) = $last_y Then
Time()
EndIf
EndIf
$last_x = MouseGetPos(0)
$Last_y = MouseGetPos(1)
WEnd
Endfunc
Func Time()
$TIME = TimerInit()
While $1 = 0
Sleep(30000)
If MouseGetPos(0) <> $last_x Then
If MouseGetPos(1) <> $last_y Then
ExitLoop
EndIf
If TimerDiff($TIME) > 600000 Then $1 = 1
EndIf
$last_x = MouseGetPos(0)
$Last_y = MouseGetPos(1)
WEnd
If $1 = 1 Then FONCTION()
EndFunc
Func FONCTION()
......
EndFuncVoila sauf que la fonction n'est jamais appeler ... :/
ou trop vite, j'ai fait des changement, et avec cette méthode elle n'est jamais appeler.


