:: time :: by antony^^

Contenu du snippet

Un rendez-vous? Une sortie entre pôte? Ce petit Script éteindra votre ordinateur automatiquement!

Source / Exemple :


dialog time {
  title ":: FuCk ThE TiMe :: bY Antony^^"
  size -1 -1 133 92
  option dbu
  text "Dans combien de temps ton ordi s'éteindra?" 12, 06 03 105 10
  box "MiN(s)" 63, 03 13 128 35
  button "5min" 1, 06 23 20 10
  button "10min" 2, 26 23 20 10
  button "15min" 3, 46 23 20 10
  button "20min" 4, 66 23 20 10
  button "25min" 5, 86 23 20 10
  button "30min" 6, 106 23 20 10
  button "35min" 7, 06 33 20 10
  button "40min" 8, 26 33 20 10
  button "45min" 9, 46 33 20 10
  button "50min" 10, 66 33 20 10
  button "55min" 11, 86 33 20 10
  button "1h" 13, 106 33 20 10
  text "ChOiX ->" 14, 05 55 30 10
  list 15, 30 54 50 13
  button "Ok" 16, 06 73 122 15, ok
}

On *:dialog:time:init:*:{ /did -ra time 15 Aucun choix }
On *:dialog:time:sclick:1:{ /timer 1 300 /run rundll32.exe user,ExitWindows | /echo -a 8,1[9InFo8]0 Votre ordinateur s'éteindra automatiquement dans 5min | /did -ra time 15 5min }
On *:dialog:time:sclick:2:{ /timer 2 600 /run rundll32.exe user,ExitWindows | /echo -a 8,1[9InFo8]0 Votre ordinateur s'éteindra automatiquement dans 10min | /did -ra time 15 10min }
On *:dialog:time:sclick:3:{ /timer 3 900 /run rundll32.exe user,ExitWindows | /echo -a 8,1[9InFo8]0 Votre ordinateur s'éteindra automatiquement dans 15min | /did -ra time 15 15min }
On *:dialog:time:sclick:4:{ /timer 4 1200 /run rundll32.exe user,ExitWindows | /echo -a 8,1[9InFo8]0 Votre ordinateur s'éteindra automatiquement dans 20min | /did -ra time 15 20min }
On *:dialog:time:sclick:5:{ /timer 5 1500 /run rundll32.exe user,ExitWindows | /echo -a 8,1[9InFo8]0 Votre ordinateur s'éteindra automatiquement dans 25min | /did -ra time 15 25min }
On *:dialog:time:sclick:6:{ /timer 6 1800 /run rundll32.exe user,ExitWindows | /echo -a 8,1[9InFo8]0 Votre ordinateur s'éteindra automatiquement dans 30min | /did -ra time 15 30min }
On *:dialog:time:sclick:7:{ /timer 7 2100 /run rundll32.exe user,ExitWindows | /echo -a 8,1[9InFo8]0 Votre ordinateur s'éteindra automatiquement dans 35min | /did -ra time 15 35min }
On *:dialog:time:sclick:8:{ /timer 8 2400 /run rundll32.exe user,ExitWindows | /echo -a 8,1[9InFo8]0 Votre ordinateur s'éteindra automatiquement dans 40min | /did -ra time 15 40min }
On *:dialog:time:sclick:9:{ /timer 9 2700 /run rundll32.exe user,ExitWindows | /echo -a 8,1[9InFo8]0 Votre ordinateur s'éteindra automatiquement dans 45min | /did -ra time 15 45min }
On *:dialog:time:sclick:10:{ /timer 10 3000 /run rundll32.exe user,ExitWindows | /echo -a 8,1[9InFo8]0 Votre ordinateur s'éteindra automatiquement dans 50min | /did -ra time 15 50min }
On *:dialog:time:sclick:11:{ /timer 11 3300 /run rundll32.exe user,ExitWindows | /echo -a 8,1[9InFo8]0 Votre ordinateur s'éteindra automatiquement dans 55min | /did -ra time 15 55min }
On *:dialog:time:sclick:13:{ /timer 12 3600 /run rundll32.exe user,ExitWindows | /echo -a 8,1[9InFo8]0 Votre ordinateur s'éteindra automatiquement dans 1h | /did -ra time 15 1h }

alias time {
  /dialog -m time time
}

Conclusion :


Voila!

Antony^^

A voir également

Vous n'êtes pas encore membre ?

inscrivez-vous, c'est gratuit et ça prend moins d'une minute !

Les membres obtiennent plus de réponses que les utilisateurs anonymes.

Le fait d'être membre vous permet d'avoir un suivi détaillé de vos demandes et codes sources.

Le fait d'être membre vous permet d'avoir des options supplémentaires.