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
[SHAREPOINT] LES SESSIONS TECHDAYS 2012.[SHAREPOINT] LES SESSIONS TECHDAYS 2012. par Patrick Guimonet
Voici donc pour ceux qui n'ont pas pu venir, ou ceux qui n'ont pas pu toutes les suivre la liste des sessions SharePoint aux TechDays 2012, que je mettrais à jour dès que les liens des vidéo seront disponibles. Ou ici : http...
Cliquez pour lire la suite de l'article par Patrick Guimonet TECHDAYS PARIS 2012 : SESSION PLEINIèRE JOUR 3TECHDAYS PARIS 2012 : SESSION PLEINIèRE JOUR 3 par ROMELARD Fabrice
Speaker: Bernard Ourghanlian Cette session est comme chaque jour transmise en live par BrainSonic, et j'ai donc suivi cette troisième pleinière par ce moyen sur mon iPad . Elle est dédiée comme chaque année à la mise en perspective de l'é...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice MISHRA READER : UN LECTEUR RSS TRèS ZUNE STYLE EN OPEN SOURCE !MISHRA READER : UN LECTEUR RSS TRèS ZUNE STYLE EN OPEN SOURCE ! par Vko
Hier durant une session dédiée aux Techdays 2012, j'ai eu le plaisir d'annoncer la sortie de la Béta 2 de Mishra Reader. C'est quoi ? Pour les utilisateurs, c'est une vraie expérience de lecture de flux RSS sur Windows. Rien à voir avec les produit...
Cliquez pour lire la suite de l'article par Vko [FRAMEWORK 4] LES TASKS ET LE THREAD UI[FRAMEWORK 4] LES TASKS ET LE THREAD UI par fathi
Je viens de passer quelques temps au TechDay's et j'ai pu voir pas mal de session intéressante. Par contre une chose m'a un peu étonné lors de certaines de ces sessions qui abordaient les améliorations du framework .NET (donc le 4.5) : en gros, bea...
Cliquez pour lire la suite de l'article par fathi WORKFLOW FOUNDATION 3 A UN PIED DANS LA TOMBEWORKFLOW FOUNDATION 3 A UN PIED DANS LA TOMBE par JeremyJeanson
Depuis déjà un an, je conseille vivement les utilisateurs de Workflow Foundation 3 à migrer vers la version 4. L'information qui va suivre ne devrait donc pas trop prendre au dépourvu les personnes qui m'ont suivi. Je profite de ce poste, pour faire le re...
Cliquez pour lire la suite de l'article par JeremyJeanson
Forum
RE : AIDERE : AIDE par Nico26000
Cliquez pour lire la suite par Nico26000 RE : AIDERE : AIDE par WorldDMT
Cliquez pour lire la suite par WorldDMT AIDEAIDE par Nico26000
Cliquez pour lire la suite par Nico26000
Logiciels
Academy System (17.2.1.0)ACADEMY SYSTEM (17.2.1.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System Easy-Planning (1.0.0.1)EASY-PLANNING (1.0.0.1)Basé sur les mêmes principes que MyPlanning, Easy-Planning permet de créer des plannings sous la ... Cliquez pour télécharger Easy-Planning COLLECTOR PLUS (3.00B)COLLECTOR PLUS (3.00B)COLLECTOR PLUS version 3.00B est un logiciel utilisant une base de données alimentée par :
- L... Cliquez pour télécharger COLLECTOR PLUS PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V7.4)PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V7.4)PONAMEDIA TV DEVIENS HELLLOOO FLASH
LA TV SUR VOTRE ORDINATEUR.
Toute une plateforme Multi... Cliquez pour télécharger PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO LettresFaciles 2011 (8.0.0.1)LETTRESFACILES 2011 (8.0.0.1)LettresFaciles est un logiciel facilitant la création et la rédaction de lettres types.
Son inte... Cliquez pour télécharger LettresFaciles 2011
|