Quand je lance le programme et que j'appuie sur F3, tout ce passe bien: l'écran devient noir (sans bordure)! Mais lorsque que je r'appuie sur cette touche, l'écran redevient normal pendant quelque ms et redevient noir!
Voici le code:
Code : Tout sélectionner
#include <Misc.au3>
$dll = DllOpen("user32.dll")
$a = 1
HotKeySet("{F3}", "go")
HotKeySet("{ESC}", "esc")
While 1
Sleep(100)
WEnd
Func go()
if $a = 1 Then
$destination = "C:\Users\*****\Desktop\Sans titre.jpg"
SplashImageOn("Splash Screen", $destination,1540,1000) <====== ICI je n'ai pas mis ma résolution d'écran pour ne pas voir les bordures.
Sleep(1000)
While 1
If _IsPressed("72", $dll) Then
$a = 2
While _IsPressed("72", $dll)
Sleep(100)
WEnd
ExitLoop
EndIf
WEnd
EndIf
if $a = 2 Then
SplashOff()
Sleep(1000)
While 1
If _IsPressed("72", $dll) Then
$a = 1
While _IsPressed("72", $dll)
Sleep(100)
WEnd
ExitLoop
EndIf
WEnd
DllClose($dll)
EndIf
EndFunc
Func esc()
Exit
EndFunc



