Accueil > > > PANNEAU DE CONFIGURATION EN PICWIN
PANNEAU DE CONFIGURATION EN PICWIN
Information sur la source
Description
Ce script vous permet de faire un panneau de configuration en associant des image à une commande ( et description ) . La parti disign n'est poa encore au point , je compte l'ameliorer ... Je vs conseille de prendre le .zip car sinon vs allez jms arriver à faire marcher le script à moins que vs le lisiez entierement ( lol , bon courage ) . Dans le zip allé ds le repertoir setting\ et ouvrer le fichier config : à chaque ligne son image associé a sa commande et description : image.jpg echo test : test du script si vs mettez un commantaire vs devez séparer la commande et le commantaire par ":" . Sinon de poa mettre les ":" au risq de faire bugger le script . pour les images la couleur regb est : $rgb(255,0,255) petit conseille pour éviter les bug : pour creer de nouvel image prenner la mem taille que cel donné en exemple ( perso j'ouvre cel déjà fé et je la modifi ) .
Source
- ;/!\ prenner le zip /!\
-
- ;#########################
- ;#########################
- ;### ###
- ;### configuration ###
- ;### ###
- ;#########################
- ;### ###
- ;### by aBd0ulaX ###
- ;### ###
- ;#########################
- ;#########################
-
- alias configuration {
- window -dapBkzC +dL @config 1 1 450 300
- set %confread 0
- configuration1
- }
- alias configuration1 {
- drawrect -f @config 1 1 0 0 450 300
- if ( $read(setting\config, $calc(15+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -340 -210 420 280 $read(setting\config,$calc(15+ %confread)) }
- if ( $read(setting\config, $calc(14+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -260 -210 340 280 $read(setting\config,$calc(14+ %confread)) }
- if ( $read(setting\config, $calc(13+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -180 -210 260 280 $read(setting\config,$calc(13+ %confread)) }
- if ( $read(setting\config, $calc(12+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -100 -210 180 280 $read(setting\config,$calc(12+ %confread)) }
- if ( $read(setting\config, $calc(11+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -20 -210 100 280 $read(setting\config,$calc(11+ %confread)) }
-
- if ( $read(setting\config, $calc(10+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -340 -125 420 195 $read(setting\config,$calc(10+ %confread)) }
- if ( $read(setting\config, $calc(9+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -260 -125 340 195 $read(setting\config,$calc(9+ %confread)) }
- if ( $read(setting\config, $calc(8+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -180 -125 260 195 $read(setting\config,$calc(8+ %confread)) }
- if ( $read(setting\config, $calc(7+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -100 -125 180 195 $read(setting\config,$calc(7+ %confread)) }
- if ( $read(setting\config, $calc(6+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -20 -125 100 195 $read(setting\config,$calc(6+ %confread)) }
-
- if ( $read(setting\config, $calc(5+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -340 -40 420 110 $read(setting\config,$calc(5+ %confread)) }
- if ( $read(setting\config, $calc(4+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -260 -40 340 110 $read(setting\config,$calc(4+ %confread)) }
- if ( $read(setting\config, $calc(3+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -180 -40 260 110 $read(setting\config,$calc(3+ %confread)) }
- if ( $read(setting\config, $calc(2+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -100 -40 180 110 $read(setting\config,$calc(2+ %confread)) }
- if ( $read(setting\config, $calc(1+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -20 -40 100 110 $read(setting\config,$calc(1+ %confread)) }
- drawrect @config 15 3 0 0 450 300
- drawrect @config 15 2 0 0 450 24
- drawrect @config 14 1 0 0 450 300
- drawtext @config 3 435 3 x
- drawrect -f @config 3 2 425 42 10 10
- drawrect -f @config 3 2 425 270 10 10
- drawtext @config 9 429 40 -
- drawtext @config 9 427 267 +
- }
- menu @config {
- mouse {
- if ($mouse.x >= 425) && ($mouse.x <= 435) && ($mouse.y >= 42) && ($mouse.y <= 52) { drawrect @config 9 1 425 42 10 10 }
- elseif ($mouse.x >= 425) && ($mouse.x <= 435) && ($mouse.y >= 270) && ($mouse.y <= 280) { drawrect @config 9 1 425 270 10 10 }
- elseif ($mouse.x >= 435) && ($mouse.x <= 445) && ($mouse.y >= 3) && ($mouse.y <= 13) { drawtext @config 9 435 3 x }
- elseif ($mouse.x >= 20) && ($mouse.x <= 90) && ($mouse.y >= 40) && ($mouse.y <= 110) && ( $read(setting\config, $calc(1+ %confread)) ) { drawrect @config 14 1 20 40 70 70 | if ( : isin $read(setting\config, $calc(1+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(1+ %confread)),$calc($pos($read(setting\config, $calc(1+ %confread)),:)+2),999999) } }
- elseif ($mouse.x >= 100) && ($mouse.x <= 170) && ($mouse.y >= 40) && ($mouse.y <= 110) && ( $read(setting\config, $calc(2+ %confread)) ) { drawrect @config 14 1 100 40 70 70 | if ( : isin $read(setting\config, $calc(2+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(2+ %confread)),$calc($pos($read(setting\config, $calc(2+ %confread)),:)+2),999999) } }
- elseif ($mouse.x >= 180) && ($mouse.x <= 250) && ($mouse.y >= 40) && ($mouse.y <= 110) && ( $read(setting\config, $calc(3+ %confread)) ) { drawrect @config 14 1 180 40 70 70 | if ( : isin $read(setting\config, $calc(3+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(3+ %confread)),$calc($pos($read(setting\config, $calc(3+ %confread)),:)+2),999999) } }
- elseif ($mouse.x >= 260) && ($mouse.x <= 330) && ($mouse.y >= 40) && ($mouse.y <= 110) && ( $read(setting\config, $calc(4+ %confread)) ) { drawrect @config 14 1 260 40 70 70 | if ( : isin $read(setting\config, $calc(4+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(4+ %confread)),$calc($pos($read(setting\config, $calc(4+ %confread)),:)+2),999999) } }
- elseif ($mouse.x >= 340) && ($mouse.x <= 410) && ($mouse.y >= 40) && ($mouse.y <= 110) && ( $read(setting\config, $calc(5+ %confread)) ) { drawrect @config 14 1 340 40 70 70 | if ( : isin $read(setting\config, $calc(5+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(5+ %confread)),$calc($pos($read(setting\config, $calc(5+ %confread)),:)+2),999999) } }
- elseif ($mouse.x >= 20) && ($mouse.x <= 90) && ($mouse.y >= 125) && ($mouse.y <= 195) && ( $read(setting\config, $calc(6+ %confread)) ) { drawrect @config 14 1 20 125 70 70 | if ( : isin $read(setting\config, $calc(6+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(6+ %confread)),$calc($pos($read(setting\config, $calc(6+ %confread)),:)+2),999999) } }
- elseif ($mouse.x >= 100) && ($mouse.x <= 170) && ($mouse.y >= 125) && ($mouse.y <= 195) && ( $read(setting\config, $calc(7+ %confread)) ) { drawrect @config 14 1 100 125 70 70 | if ( : isin $read(setting\config, $calc(7+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(7+ %confread)),$calc($pos($read(setting\config, $calc(7+ %confread)),:)+2),999999) } }
- elseif ($mouse.x >= 180) && ($mouse.x <= 250) && ($mouse.y >= 125) && ($mouse.y <= 195) && ( $read(setting\config, $calc(8+ %confread)) ) { drawrect @config 14 1 180 125 70 70 | if ( : isin $read(setting\config, $calc(8+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(8+ %confread)),$calc($pos($read(setting\config, $calc(8+ %confread)),:)+2),999999) } }
- elseif ($mouse.x >= 260) && ($mouse.x <= 330) && ($mouse.y >= 125) && ($mouse.y <= 195) && ( $read(setting\config, $calc(9+ %confread)) ) { drawrect @config 14 1 260 125 70 70 | if ( : isin $read(setting\config, $calc(9+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(9+ %confread)),$calc($pos($read(setting\config, $calc(9+ %confread)),:)+2),999999) } }
- elseif ($mouse.x >= 340) && ($mouse.x <= 410) && ($mouse.y >= 125) && ($mouse.y <= 195) && ( $read(setting\config, $calc(10+ %confread)) ) { drawrect @config 14 1 340 125 70 70 | if ( : isin $read(setting\config, $calc(10+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(10+ %confread)),$calc($pos($read(setting\config, $calc(10+ %confread)),:)+2),999999) } }
- elseif ($mouse.x >= 20) && ($mouse.x <= 90) && ($mouse.y >= 210) && ($mouse.y <= 280) && ( $read(setting\config, $calc(11+ %confread)) ) { drawrect @config 14 1 20 210 70 70 | if ( : isin $read(setting\config, $calc(11+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(11+ %confread)),$calc($pos($read(setting\config, $calc(11+ %confread)),:)+2),999999) } }
- elseif ($mouse.x >= 100) && ($mouse.x <= 170) && ($mouse.y >= 210) && ($mouse.y <= 280) && ( $read(setting\config, $calc(12+ %confread)) ) { drawrect @config 14 1 100 210 70 70 | if ( : isin $read(setting\config, $calc(12+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(12+ %confread)),$calc($pos($read(setting\config, $calc(12+ %confread)),:)+2),999999) } }
- elseif ($mouse.x >= 180) && ($mouse.x <= 250) && ($mouse.y >= 210) && ($mouse.y <= 280) && ( $read(setting\config, $calc(13+ %confread)) ) { drawrect @config 14 1 180 210 70 70 | if ( : isin $read(setting\config, $calc(13+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(13+ %confread)),$calc($pos($read(setting\config, $calc(13+ %confread)),:)+2),999999) } }
- elseif ($mouse.x >= 260) && ($mouse.x <= 330) && ($mouse.y >= 210) && ($mouse.y <= 280) && ( $read(setting\config, $calc(14+ %confread)) ) { drawrect @config 14 1 260 210 70 70 | if ( : isin $read(setting\config, $calc(14+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(14+ %confread)),$calc($pos($read(setting\config, $calc(14+ %confread)),:)+2),999999) } }
- elseif ($mouse.x >= 340) && ($mouse.x <= 410) && ($mouse.y >= 210) && ($mouse.y <= 280) && ( $read(setting\config, $calc(15+ %confread)) ) { drawrect @config 14 1 340 210 70 70 | if ( : isin $read(setting\config, $calc(15+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(15+ %confread)),$calc($pos($read(setting\config, $calc(15+ %confread)),:)+2),999999) } }
- else {
- drawrect @config 3 1 425 42 10 10
- drawrect @config 3 1 425 270 10 10
- drawrect @config 1 1 20 40 70 70
- drawrect @config 1 1 100 40 70 70
- drawrect @config 1 1 180 40 70 70
- drawrect @config 1 1 260 40 70 70
- drawrect @config 1 1 340 40 70 70
- drawrect @config 1 1 20 125 70 70
- drawrect @config 1 1 100 125 70 70
- drawrect @config 1 1 180 125 70 70
- drawrect @config 1 1 260 125 70 70
- drawrect @config 1 1 340 125 70 70
- drawrect @config 1 1 20 210 70 70
- drawrect @config 1 1 100 210 70 70
- drawrect @config 1 1 180 210 70 70
- drawrect @config 1 1 260 210 70 70
- drawrect @config 1 1 340 210 70 70
- drawrect -f @config 1 1 3 3 430 17
- drawtext @config 3 435 3 x
- }
- }
- sclick {
- if ($mouse.x >= 425) && ($mouse.x <= 435) && ($mouse.y >= 42) && ($mouse.y <= 52) && ( %confread > 0 ) { set %confread $calc(%confread -5) | configuration1 }
- elseif ($mouse.x >= 425) && ($mouse.x <= 435) && ($mouse.y >= 270) && ($mouse.y <= 280) && ( %confread < $calc($lines(setting\config)/5+5) ) { set %confread $calc(%confread +5) | configuration1 }
- elseif ($mouse.x >= 20) && ($mouse.x <= 90) && ($mouse.y >= 40) && ($mouse.y <= 110) && ( $read(setting\config, $calc(1+ %confread)) ) { $cmdconfig(1) }
- elseif ($mouse.x >= 100) && ($mouse.x <= 170) && ($mouse.y >= 40) && ($mouse.y <= 110) && ( $read(setting\config, $calc(2+ %confread)) ) { $cmdconfig(2) }
- elseif ($mouse.x >= 180) && ($mouse.x <= 250) && ($mouse.y >= 40) && ($mouse.y <= 110) && ( $read(setting\config, $calc(3+ %confread)) ) { $cmdconfig(3) }
- elseif ($mouse.x >= 260) && ($mouse.x <= 330) && ($mouse.y >= 40) && ($mouse.y <= 110) && ( $read(setting\config, $calc(4+ %confread)) ) { $cmdconfig(4) }
- elseif ($mouse.x >= 340) && ($mouse.x <= 410) && ($mouse.y >= 40) && ($mouse.y <= 110) && ( $read(setting\config, $calc(5+ %confread)) ) { $cmdconfig(5) }
- elseif ($mouse.x >= 20) && ($mouse.x <= 90) && ($mouse.y >= 125) && ($mouse.y <= 195) && ( $read(setting\config, $calc(6+ %confread)) ) { $cmdconfig(6) }
- elseif ($mouse.x >= 100) && ($mouse.x <= 170) && ($mouse.y >= 125) && ($mouse.y <= 195) && ( $read(setting\config, $calc(7+ %confread)) ) { $cmdconfig(7) }
- elseif ($mouse.x >= 180) && ($mouse.x <= 250) && ($mouse.y >= 125) && ($mouse.y <= 195) && ( $read(setting\config, $calc(8+ %confread)) ) { $cmdconfig(8) }
- elseif ($mouse.x >= 260) && ($mouse.x <= 330) && ($mouse.y >= 125) && ($mouse.y <= 195) && ( $read(setting\config, $calc(9+ %confread)) ) { $cmdconfig(9) }
- elseif ($mouse.x >= 340) && ($mouse.x <= 410) && ($mouse.y >= 125) && ($mouse.y <= 195) && ( $read(setting\config, $calc(10+ %confread)) ) { $cmdconfig(10) }
- elseif ($mouse.x >= 20) && ($mouse.x <= 90) && ($mouse.y >= 210) && ($mouse.y <= 280) && ( $read(setting\config, $calc(11+ %confread)) ) { $cmdconfig(11) }
- elseif ($mouse.x >= 100) && ($mouse.x <= 170) && ($mouse.y >= 210) && ($mouse.y <= 280) && ( $read(setting\config, $calc(12+ %confread)) ) { $cmdconfig(12) }
- elseif ($mouse.x >= 180) && ($mouse.x <= 250) && ($mouse.y >= 210) && ($mouse.y <= 280) && ( $read(setting\config, $calc(13+ %confread)) ) { $cmdconfig(13) }
- elseif ($mouse.x >= 260) && ($mouse.x <= 330) && ($mouse.y >= 210) && ($mouse.y <= 280) && ( $read(setting\config, $calc(14+ %confread)) ) { $cmdconfig(14) }
- elseif ($mouse.x >= 340) && ($mouse.x <= 410) && ($mouse.y >= 210) && ($mouse.y <= 280) && ( $read(setting\config, $calc(15+ %confread)) ) { $cmdconfig(15) }
- elseif ($mouse.x >= 435) && ($mouse.x <= 445) && ($mouse.y >= 3) && ($mouse.y <= 13) { window -c @config }
- else { placeconfig $calc($mouse.dx - $window($active).x) $calc($mouse.dy - $window($active).y) }
- }
- close :/window -c @config
- }
-
- alias cmdconfig {
- if ( : isin $read(setting\config, $calc($1 + %confread)) ) { return $mid($read(setting\config, $calc($1 + %confread)),$pos($read(setting\config, $calc($1 + %confread)),$chr(32)),$calc($pos($read(setting\config, $calc( $1 + %confread)),:)-1-$pos($read(setting\config, $calc( $1 + %confread)),$chr(32)))) }
- else { return $mid($read(setting\config, $calc($1 + %confread)),$pos($read(setting\config, $calc($1 + %confread)),$chr(32)),9999999) }
- }
- alias placeconfig { window @config $calc($mouse.dx - $1) $calc($mouse.dy - $2) | if ($mouse.key & 1) .timer $+ $ticks -m 1 0 placeconfig $1- }
;/!\ prenner le zip /!\
;#########################
;#########################
;### ###
;### configuration ###
;### ###
;#########################
;### ###
;### by aBd0ulaX ###
;### ###
;#########################
;#########################
alias configuration {
window -dapBkzC +dL @config 1 1 450 300
set %confread 0
configuration1
}
alias configuration1 {
drawrect -f @config 1 1 0 0 450 300
if ( $read(setting\config, $calc(15+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -340 -210 420 280 $read(setting\config,$calc(15+ %confread)) }
if ( $read(setting\config, $calc(14+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -260 -210 340 280 $read(setting\config,$calc(14+ %confread)) }
if ( $read(setting\config, $calc(13+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -180 -210 260 280 $read(setting\config,$calc(13+ %confread)) }
if ( $read(setting\config, $calc(12+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -100 -210 180 280 $read(setting\config,$calc(12+ %confread)) }
if ( $read(setting\config, $calc(11+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -20 -210 100 280 $read(setting\config,$calc(11+ %confread)) }
if ( $read(setting\config, $calc(10+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -340 -125 420 195 $read(setting\config,$calc(10+ %confread)) }
if ( $read(setting\config, $calc(9+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -260 -125 340 195 $read(setting\config,$calc(9+ %confread)) }
if ( $read(setting\config, $calc(8+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -180 -125 260 195 $read(setting\config,$calc(8+ %confread)) }
if ( $read(setting\config, $calc(7+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -100 -125 180 195 $read(setting\config,$calc(7+ %confread)) }
if ( $read(setting\config, $calc(6+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -20 -125 100 195 $read(setting\config,$calc(6+ %confread)) }
if ( $read(setting\config, $calc(5+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -340 -40 420 110 $read(setting\config,$calc(5+ %confread)) }
if ( $read(setting\config, $calc(4+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -260 -40 340 110 $read(setting\config,$calc(4+ %confread)) }
if ( $read(setting\config, $calc(3+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -180 -40 260 110 $read(setting\config,$calc(3+ %confread)) }
if ( $read(setting\config, $calc(2+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -100 -40 180 110 $read(setting\config,$calc(2+ %confread)) }
if ( $read(setting\config, $calc(1+ %confread)) ) { drawpic -t @config $rgb(255,0,255) 0 0 -20 -40 100 110 $read(setting\config,$calc(1+ %confread)) }
drawrect @config 15 3 0 0 450 300
drawrect @config 15 2 0 0 450 24
drawrect @config 14 1 0 0 450 300
drawtext @config 3 435 3 x
drawrect -f @config 3 2 425 42 10 10
drawrect -f @config 3 2 425 270 10 10
drawtext @config 9 429 40 -
drawtext @config 9 427 267 +
}
menu @config {
mouse {
if ($mouse.x >= 425) && ($mouse.x <= 435) && ($mouse.y >= 42) && ($mouse.y <= 52) { drawrect @config 9 1 425 42 10 10 }
elseif ($mouse.x >= 425) && ($mouse.x <= 435) && ($mouse.y >= 270) && ($mouse.y <= 280) { drawrect @config 9 1 425 270 10 10 }
elseif ($mouse.x >= 435) && ($mouse.x <= 445) && ($mouse.y >= 3) && ($mouse.y <= 13) { drawtext @config 9 435 3 x }
elseif ($mouse.x >= 20) && ($mouse.x <= 90) && ($mouse.y >= 40) && ($mouse.y <= 110) && ( $read(setting\config, $calc(1+ %confread)) ) { drawrect @config 14 1 20 40 70 70 | if ( : isin $read(setting\config, $calc(1+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(1+ %confread)),$calc($pos($read(setting\config, $calc(1+ %confread)),:)+2),999999) } }
elseif ($mouse.x >= 100) && ($mouse.x <= 170) && ($mouse.y >= 40) && ($mouse.y <= 110) && ( $read(setting\config, $calc(2+ %confread)) ) { drawrect @config 14 1 100 40 70 70 | if ( : isin $read(setting\config, $calc(2+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(2+ %confread)),$calc($pos($read(setting\config, $calc(2+ %confread)),:)+2),999999) } }
elseif ($mouse.x >= 180) && ($mouse.x <= 250) && ($mouse.y >= 40) && ($mouse.y <= 110) && ( $read(setting\config, $calc(3+ %confread)) ) { drawrect @config 14 1 180 40 70 70 | if ( : isin $read(setting\config, $calc(3+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(3+ %confread)),$calc($pos($read(setting\config, $calc(3+ %confread)),:)+2),999999) } }
elseif ($mouse.x >= 260) && ($mouse.x <= 330) && ($mouse.y >= 40) && ($mouse.y <= 110) && ( $read(setting\config, $calc(4+ %confread)) ) { drawrect @config 14 1 260 40 70 70 | if ( : isin $read(setting\config, $calc(4+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(4+ %confread)),$calc($pos($read(setting\config, $calc(4+ %confread)),:)+2),999999) } }
elseif ($mouse.x >= 340) && ($mouse.x <= 410) && ($mouse.y >= 40) && ($mouse.y <= 110) && ( $read(setting\config, $calc(5+ %confread)) ) { drawrect @config 14 1 340 40 70 70 | if ( : isin $read(setting\config, $calc(5+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(5+ %confread)),$calc($pos($read(setting\config, $calc(5+ %confread)),:)+2),999999) } }
elseif ($mouse.x >= 20) && ($mouse.x <= 90) && ($mouse.y >= 125) && ($mouse.y <= 195) && ( $read(setting\config, $calc(6+ %confread)) ) { drawrect @config 14 1 20 125 70 70 | if ( : isin $read(setting\config, $calc(6+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(6+ %confread)),$calc($pos($read(setting\config, $calc(6+ %confread)),:)+2),999999) } }
elseif ($mouse.x >= 100) && ($mouse.x <= 170) && ($mouse.y >= 125) && ($mouse.y <= 195) && ( $read(setting\config, $calc(7+ %confread)) ) { drawrect @config 14 1 100 125 70 70 | if ( : isin $read(setting\config, $calc(7+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(7+ %confread)),$calc($pos($read(setting\config, $calc(7+ %confread)),:)+2),999999) } }
elseif ($mouse.x >= 180) && ($mouse.x <= 250) && ($mouse.y >= 125) && ($mouse.y <= 195) && ( $read(setting\config, $calc(8+ %confread)) ) { drawrect @config 14 1 180 125 70 70 | if ( : isin $read(setting\config, $calc(8+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(8+ %confread)),$calc($pos($read(setting\config, $calc(8+ %confread)),:)+2),999999) } }
elseif ($mouse.x >= 260) && ($mouse.x <= 330) && ($mouse.y >= 125) && ($mouse.y <= 195) && ( $read(setting\config, $calc(9+ %confread)) ) { drawrect @config 14 1 260 125 70 70 | if ( : isin $read(setting\config, $calc(9+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(9+ %confread)),$calc($pos($read(setting\config, $calc(9+ %confread)),:)+2),999999) } }
elseif ($mouse.x >= 340) && ($mouse.x <= 410) && ($mouse.y >= 125) && ($mouse.y <= 195) && ( $read(setting\config, $calc(10+ %confread)) ) { drawrect @config 14 1 340 125 70 70 | if ( : isin $read(setting\config, $calc(10+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(10+ %confread)),$calc($pos($read(setting\config, $calc(10+ %confread)),:)+2),999999) } }
elseif ($mouse.x >= 20) && ($mouse.x <= 90) && ($mouse.y >= 210) && ($mouse.y <= 280) && ( $read(setting\config, $calc(11+ %confread)) ) { drawrect @config 14 1 20 210 70 70 | if ( : isin $read(setting\config, $calc(11+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(11+ %confread)),$calc($pos($read(setting\config, $calc(11+ %confread)),:)+2),999999) } }
elseif ($mouse.x >= 100) && ($mouse.x <= 170) && ($mouse.y >= 210) && ($mouse.y <= 280) && ( $read(setting\config, $calc(12+ %confread)) ) { drawrect @config 14 1 100 210 70 70 | if ( : isin $read(setting\config, $calc(12+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(12+ %confread)),$calc($pos($read(setting\config, $calc(12+ %confread)),:)+2),999999) } }
elseif ($mouse.x >= 180) && ($mouse.x <= 250) && ($mouse.y >= 210) && ($mouse.y <= 280) && ( $read(setting\config, $calc(13+ %confread)) ) { drawrect @config 14 1 180 210 70 70 | if ( : isin $read(setting\config, $calc(13+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(13+ %confread)),$calc($pos($read(setting\config, $calc(13+ %confread)),:)+2),999999) } }
elseif ($mouse.x >= 260) && ($mouse.x <= 330) && ($mouse.y >= 210) && ($mouse.y <= 280) && ( $read(setting\config, $calc(14+ %confread)) ) { drawrect @config 14 1 260 210 70 70 | if ( : isin $read(setting\config, $calc(14+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(14+ %confread)),$calc($pos($read(setting\config, $calc(14+ %confread)),:)+2),999999) } }
elseif ($mouse.x >= 340) && ($mouse.x <= 410) && ($mouse.y >= 210) && ($mouse.y <= 280) && ( $read(setting\config, $calc(15+ %confread)) ) { drawrect @config 14 1 340 210 70 70 | if ( : isin $read(setting\config, $calc(15+ %confread)) ) { drawrect -f @config 1 1 3 3 430 17 | drawtext @config 4 6 3 $mid($read(setting\config, $calc(15+ %confread)),$calc($pos($read(setting\config, $calc(15+ %confread)),:)+2),999999) } }
else {
drawrect @config 3 1 425 42 10 10
drawrect @config 3 1 425 270 10 10
drawrect @config 1 1 20 40 70 70
drawrect @config 1 1 100 40 70 70
drawrect @config 1 1 180 40 70 70
drawrect @config 1 1 260 40 70 70
drawrect @config 1 1 340 40 70 70
drawrect @config 1 1 20 125 70 70
drawrect @config 1 1 100 125 70 70
drawrect @config 1 1 180 125 70 70
drawrect @config 1 1 260 125 70 70
drawrect @config 1 1 340 125 70 70
drawrect @config 1 1 20 210 70 70
drawrect @config 1 1 100 210 70 70
drawrect @config 1 1 180 210 70 70
drawrect @config 1 1 260 210 70 70
drawrect @config 1 1 340 210 70 70
drawrect -f @config 1 1 3 3 430 17
drawtext @config 3 435 3 x
}
}
sclick {
if ($mouse.x >= 425) && ($mouse.x <= 435) && ($mouse.y >= 42) && ($mouse.y <= 52) && ( %confread > 0 ) { set %confread $calc(%confread -5) | configuration1 }
elseif ($mouse.x >= 425) && ($mouse.x <= 435) && ($mouse.y >= 270) && ($mouse.y <= 280) && ( %confread < $calc($lines(setting\config)/5+5) ) { set %confread $calc(%confread +5) | configuration1 }
elseif ($mouse.x >= 20) && ($mouse.x <= 90) && ($mouse.y >= 40) && ($mouse.y <= 110) && ( $read(setting\config, $calc(1+ %confread)) ) { $cmdconfig(1) }
elseif ($mouse.x >= 100) && ($mouse.x <= 170) && ($mouse.y >= 40) && ($mouse.y <= 110) && ( $read(setting\config, $calc(2+ %confread)) ) { $cmdconfig(2) }
elseif ($mouse.x >= 180) && ($mouse.x <= 250) && ($mouse.y >= 40) && ($mouse.y <= 110) && ( $read(setting\config, $calc(3+ %confread)) ) { $cmdconfig(3) }
elseif ($mouse.x >= 260) && ($mouse.x <= 330) && ($mouse.y >= 40) && ($mouse.y <= 110) && ( $read(setting\config, $calc(4+ %confread)) ) { $cmdconfig(4) }
elseif ($mouse.x >= 340) && ($mouse.x <= 410) && ($mouse.y >= 40) && ($mouse.y <= 110) && ( $read(setting\config, $calc(5+ %confread)) ) { $cmdconfig(5) }
elseif ($mouse.x >= 20) && ($mouse.x <= 90) && ($mouse.y >= 125) && ($mouse.y <= 195) && ( $read(setting\config, $calc(6+ %confread)) ) { $cmdconfig(6) }
elseif ($mouse.x >= 100) && ($mouse.x <= 170) && ($mouse.y >= 125) && ($mouse.y <= 195) && ( $read(setting\config, $calc(7+ %confread)) ) { $cmdconfig(7) }
elseif ($mouse.x >= 180) && ($mouse.x <= 250) && ($mouse.y >= 125) && ($mouse.y <= 195) && ( $read(setting\config, $calc(8+ %confread)) ) { $cmdconfig(8) }
elseif ($mouse.x >= 260) && ($mouse.x <= 330) && ($mouse.y >= 125) && ($mouse.y <= 195) && ( $read(setting\config, $calc(9+ %confread)) ) { $cmdconfig(9) }
elseif ($mouse.x >= 340) && ($mouse.x <= 410) && ($mouse.y >= 125) && ($mouse.y <= 195) && ( $read(setting\config, $calc(10+ %confread)) ) { $cmdconfig(10) }
elseif ($mouse.x >= 20) && ($mouse.x <= 90) && ($mouse.y >= 210) && ($mouse.y <= 280) && ( $read(setting\config, $calc(11+ %confread)) ) { $cmdconfig(11) }
elseif ($mouse.x >= 100) && ($mouse.x <= 170) && ($mouse.y >= 210) && ($mouse.y <= 280) && ( $read(setting\config, $calc(12+ %confread)) ) { $cmdconfig(12) }
elseif ($mouse.x >= 180) && ($mouse.x <= 250) && ($mouse.y >= 210) && ($mouse.y <= 280) && ( $read(setting\config, $calc(13+ %confread)) ) { $cmdconfig(13) }
elseif ($mouse.x >= 260) && ($mouse.x <= 330) && ($mouse.y >= 210) && ($mouse.y <= 280) && ( $read(setting\config, $calc(14+ %confread)) ) { $cmdconfig(14) }
elseif ($mouse.x >= 340) && ($mouse.x <= 410) && ($mouse.y >= 210) && ($mouse.y <= 280) && ( $read(setting\config, $calc(15+ %confread)) ) { $cmdconfig(15) }
elseif ($mouse.x >= 435) && ($mouse.x <= 445) && ($mouse.y >= 3) && ($mouse.y <= 13) { window -c @config }
else { placeconfig $calc($mouse.dx - $window($active).x) $calc($mouse.dy - $window($active).y) }
}
close :/window -c @config
}
alias cmdconfig {
if ( : isin $read(setting\config, $calc($1 + %confread)) ) { return $mid($read(setting\config, $calc($1 + %confread)),$pos($read(setting\config, $calc($1 + %confread)),$chr(32)),$calc($pos($read(setting\config, $calc( $1 + %confread)),:)-1-$pos($read(setting\config, $calc( $1 + %confread)),$chr(32)))) }
else { return $mid($read(setting\config, $calc($1 + %confread)),$pos($read(setting\config, $calc($1 + %confread)),$chr(32)),9999999) }
}
alias placeconfig { window @config $calc($mouse.dx - $1) $calc($mouse.dy - $2) | if ($mouse.key & 1) .timer $+ $ticks -m 1 0 placeconfig $1- }
Conclusion
have fun
by abdoulax
Sources du même auteur
Sources de la même categorie
Commentaires et avis
|
Derniers Blogs
TECHDAYS PARIS 2010 : ADMINISTRATION SHAREPOINT 2010TECHDAYS PARIS 2010 : ADMINISTRATION SHAREPOINT 2010 par ROMELARD Fabrice
Animé par: Patrick Guimonet et Benoit Hamet Cette session traitera des différents points exigés durant les taches d'administration : Planification (architecture, hébergement, authentification, .) Opération e...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice [TECHDAYS 2010] #03 - WEB CONTENT MANAGEMENT SOUS SHAREPOINT 2010[TECHDAYS 2010] #03 - WEB CONTENT MANAGEMENT SOUS SHAREPOINT 2010 par pierre
Stephane Cordonnier de MCNext nous présente les fonctionnalités Web Content Management (WCM) sous SharePoint 2010. Qu'est-ce que le WCM ECM, GED, RM, WCM c'est quoi Plateforme SharePoint Versions SharePoint 2010 SharePoint Fondation...
Cliquez pour lire la suite de l'article par pierre [DESIGN PATTERNS] PARTIE 2: DIP: DEPENDENCY INVERSION PRINCIPLE[DESIGN PATTERNS] PARTIE 2: DIP: DEPENDENCY INVERSION PRINCIPLE par tja
C'est le dernier principe des principes du Design Orienté Objet (The Principles of Object Oriented Design) fondés par Robert C. Martin plus connu sous le pseudonyme d'Uncle Bob.
l'image empruntée de LosTechies.
Je ne traite pas les principes dans...
Cliquez pour lire la suite de l'article par tja TECHDAYS PARIS 2010 : SHAREPOINT 2010 POUR LES DéVELOPPEURSTECHDAYS PARIS 2010 : SHAREPOINT 2010 POUR LES DéVELOPPEURS par ROMELARD Fabrice
Animé par: Laurent Cotton Le développement dans SharePoint 2010 passe par plusieurs axes qui seront évoqués dans cette session, mais plus particulièrement les développements simples lié au besoin Business Business Connectivity Services Ce BCS es...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice TECHDAYS PARIS 2010 : PLEINIèRE DERNIER JOURTECHDAYS PARIS 2010 : PLEINIèRE DERNIER JOUR par ROMELARD Fabrice
Cette session est la dernière pleinière de ces 3 jours de TechDays Paris 2010. Généralement, cette troisième journée est plus axée sur l'avenir vu par Microsoft. Après un retour sur l'avenir vu par la Science Fiction ou par ...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice
Forum
RE : ON RAWMODERE : ON RAWMODE par WorldDMT
Cliquez pour lire la suite par WorldDMT AVERTISSMENT ET KIKKAVERTISSMENT ET KIKK par mouhcine951990
Cliquez pour lire la suite par mouhcine951990
Logiciels
DB-MAIN (9.1.0)DB-MAIN (9.1.0)DB-MAIN is a data-modeling and data-architecture tool. It is designed to help developers and anal... Cliquez pour télécharger DB-MAIN Xilisoft DPG Convertisseur (5.1.37.0120)XILISOFT DPG CONVERTISSEUR (5.1.37.0120)Xilisoft DPG Convertisseur offre aux fans de Nintendo DS une bonne solution leur permettant de dé... Cliquez pour télécharger Xilisoft DPG Convertisseur GraphicsGale (2.01.01)GRAPHICSGALE (2.01.01)GraphicsGale est un logiciel de PixelArt avec de nombreuse fonctionnalités permettant de réalisé ... Cliquez pour télécharger GraphicsGale Architecte 3D (Platinum 2010)ARCHITECTE 3D (PLATINUM 2010)Architecte 3D Platinium vous permet de concevoir facilement les plans votre future maison, de l'é... Cliquez pour télécharger Architecte 3D TeamViewer 5 (TeamViewer 5)TEAMVIEWER 5 (TEAMVIEWER 5)Dépanner un ami,expliquer une manipulation devient un jeu d'enfant.
Prise en main d'un autre ord... Cliquez pour télécharger TeamViewer 5
|