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
COMMENT MAPPER UNE VUE SQL SUR UNE COLLECTION DE COMPLEX TYPE?COMMENT MAPPER UNE VUE SQL SUR UNE COLLECTION DE COMPLEX TYPE? par Matthieu MEZIL
Avec EF, les vues doivent être mappées sur des entity types. Le problème c'est que les entity types doivent avoir une clé. Avec EF, nous avons les complex type qui n'ont pas de clé mais les vues ne peuvent pas être mappées dessus. Avec EF4, il est possibl...
Cliquez pour lire la suite de l'article par Matthieu MEZIL [WF4] UN BINDING ACTIVITY/ACTIVITYDESIGNER QUI PASSE MAL?[WF4] UN BINDING ACTIVITY/ACTIVITYDESIGNER QUI PASSE MAL? par JeremyJeanson
Certain d'entre vous on peut être vécu cette situation embarrassante après quelques temps passer avec WF4 : Au début avec mon " ActivityDesigner" , tout allait bien. Et puis un jour j'ai au des problèmes de " Binding" . Alors nous sommes allé sur le site ...
Cliquez pour lire la suite de l'article par JeremyJeanson MYTIC - SHAREPOINT 2010 : DéJà UN MYTHE MICROSOFT ?MYTIC - SHAREPOINT 2010 : DéJà UN MYTHE MICROSOFT ? par junarnoalg
La prochaine session de MyTIC aura lieu à Namur, le 23 mars prochain. Pendant presque une heure, nous parlerons de SharePoint 2010. Voici un aperçu du programme.
Accueil : 17h30 Début de la session : 18h00 - Les nouvelles int...
Cliquez pour lire la suite de l'article par junarnoalg
Logiciels
Academy System (10.9.4.0)ACADEMY SYSTEM (10.9.4.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System Xilisoft Convertisseur Vidéo Ultimate (5.1.39.0305)XILISOFT CONVERTISSEUR VIDéO ULTIMATE (5.1.39.0305)Xilisoft Convertisseur Vidéo Ultimate est un outil puissant de conversion vidéo, facile à utilise... Cliquez pour télécharger Xilisoft Convertisseur Vidéo Ultimate Xilisoft DVD Ripper Ultimate (5.0.64.0304)XILISOFT DVD RIPPER ULTIMATE (5.0.64.0304)Xilisoft DVD Ripper Ultimate est un logiciel excellent pour copier et convertir DVD vers presque ... Cliquez pour télécharger Xilisoft DVD Ripper Ultimate Rigs of Rods (63.3)RIGS OF RODS (63.3)c'est un jeu de multi-simulation camions,autobus voitures, avions, bateaux, hélicoptère avec défo... Cliquez pour télécharger Rigs of Rods
|