Accueil > > > CALCULATRICE EN PICWIN
CALCULATRICE EN PICWIN
Information sur la source
Description
Une calculatice en PicWin pour changer :) Pour l'ouvrir tapez : /calc
Source
- alias calc {
- unset %calc
- unset %calc2
- window -BCdg0k0pRz +dl @Calc 0 0 327 134
- drawfill -r @calc $rgb(218,240,252) 1 10 10
- drawrect -f @calc 2 2 0 0 327 15
- drawtext -roc @calc $rgb(250,250,250) Tahoma 10 5 3 200 20 Calculatrice par atlantisfr
- drawrect @calc 2 2 0 15 327 119
- drawrect @calc 2 2 0 15 337 129
- drawrect -f @calc 4 2 314 3 11 11
- drawrect @calc 0 1 314 3 11 11
- drawrect -f @calc 3 2 301 3 11 11
- drawrect @calc 0 1 301 3 11 11
- drawrect -f @calc 15 2 5 20 156 17
- drawrect @calc 2 2 5 20 156 17
- drawrect -f @calc 15 2 5 40 156 17
- drawrect @calc 2 2 5 40 156 17
- drawrect -f @calc 15 2 5 60 50 15
- drawrect @calc 2 2 5 60 50 15
- drawtext -oc @calc 2 Tahoma 10 27 61 60 20 9
- drawrect -f @calc 15 2 58 60 50 15
- drawrect @calc 2 2 58 60 50 15
- drawtext -oc @calc 2 Tahoma 10 80 61 60 20 8
- drawrect -f @calc 15 2 111 60 50 15
- drawrect @calc 2 2 111 60 50 15
- drawtext -oc @calc 2 Tahoma 10 133 61 60 20 7
- drawrect -f @calc 15 2 5 78 50 15
- drawrect @calc 2 2 5 78 50 15
- drawtext -oc @calc 2 Tahoma 10 27 79 60 20 6
- drawrect -f @calc 15 2 58 78 50 15
- drawrect @calc 2 2 58 78 50 15
- drawtext -oc @calc 2 Tahoma 10 80 79 60 20 5
- drawrect -f @calc 15 2 111 78 50 15
- drawrect @calc 2 2 111 78 50 15
- drawtext -oc @calc 2 Tahoma 10 133 79 60 20 4
- drawrect -f @calc 15 2 5 96 50 15
- drawrect @calc 2 2 5 96 50 15
- drawtext -oc @calc 2 Tahoma 10 27 97 60 20 3
- drawrect -f @calc 15 2 58 96 50 15
- drawrect @calc 2 2 58 96 50 15
- drawtext -oc @calc 2 Tahoma 10 80 97 60 20 2
- drawrect -f @calc 15 2 111 96 50 15
- drawrect @calc 2 2 111 96 50 15
- drawtext -oc @calc 2 Tahoma 10 133 97 60 20 1
- drawrect -f @calc 15 2 5 114 50 15
- drawrect @calc 2 2 5 114 50 15
- drawtext -oc @calc 2 Tahoma 10 27 115 60 20 0
- drawrect -f @calc 15 2 58 114 50 15
- drawrect @calc 2 2 58 114 50 15
- drawtext -oc @calc 2 Tahoma 10 77 115 60 20 00
- drawrect -f @calc 15 2 111 114 50 15
- drawrect @calc 2 2 111 114 50 15
- drawtext -oc @calc 2 Tahoma 10 135 112 60 20 ,
- drawline @calc 2 2 165 20 165 128
- drawrect -f @calc 15 2 169 20 75 15
- drawrect @calc 2 2 169 20 75 15
- drawtext -oc @calc 2 Tahoma 10 203 21 60 20 +
- drawrect -f @calc 15 2 247 20 75 15
- drawrect @calc 2 2 247 20 75 15
- drawtext -oc @calc 2 Tahoma 10 282 21 60 20 -
- drawrect -f @calc 15 2 169 38 75 15
- drawrect @calc 2 2 169 38 75 15
- drawtext -oc @calc 2 Tahoma 10 204 39 60 20 x
- drawrect -f @calc 15 2 247 38 75 15
- drawrect @calc 2 2 247 38 75 15
- drawtext -oc @calc 2 Tahoma 10 280 39 60 20 ÷
- drawrect -f @calc 15 2 169 56 36 15
- drawrect @calc 2 2 169 56 36 15
- drawtext -oc @calc 2 Tahoma 9 185 58 60 20 (
- drawrect -f @calc 15 2 208 56 36 15
- drawrect @calc 2 2 208 56 36 15
- drawtext -oc @calc 2 Tahoma 9 224 58 60 20 )
- drawrect -f @calc 15 2 247 56 75 15
- drawrect @calc 2 2 247 56 75 15
- drawtext -oc @calc 2 Tahoma 10 280 57 60 20 %
- drawrect -f @calc 15 2 169 74 75 15
- drawrect @calc 2 2 169 74 75 15
- drawtext -oc @calc 2 Tahoma 10 185 75 60 20 Au carré
- drawrect -f @calc 15 2 247 74 76 15
- drawrect @calc 2 2 247 74 75 15
- drawtext -oc @calc 2 Tahoma 10 280 75 60 20 Pi
- drawrect -f @calc 15 2 169 92 76 15
- drawrect @calc 2 2 169 92 76 15
- drawtext -oc @calc 2 Tahoma 10 202 93 60 20 =
- drawrect -f @calc 15 2 247 92 76 15
- drawrect @calc 2 2 247 92 75 15
- drawtext -oc @calc 2 Tahoma 10 267 93 60 20 Effacer
- drawline @calc 2 2 169 111 321 111
- drawrect -f @calc 15 2 169 114 153 15
- drawrect @calc 2 2 169 114 153 15
- drawtext -oc @calc 2 Tahoma 10 228 115 60 20 Fermer
- }
-
- alias -l calc.move {
- if ($window(@calc)) window @calc $calc($mouse.dx - $1) $calc($mouse.dy - $2)
- if ($mouse.key & 1) .timer $+ $ticks -m 1 0 calc.move $1-
- }
-
- menu @calc {
- sclick {
- if ($mouse.y < 15) { calc.move $calc($mouse.dx - $window($active).x) $calc($mouse.dy - $window($active).y) }
- if $inrect($mouse.x,$mouse.y,314,3,11,11) { window -c @calc }
- if $inrect($mouse.x,$mouse.y,301,3,11,11) { window -n @calc }
- if ($inrect($mouse.x,$mouse.y,5,60,50,15)) { set %calc %calc $+ 9 | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
- if ($inrect($mouse.x,$mouse.y,58,60,50,15)) { set %calc %calc $+ 8 | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
- if ($inrect($mouse.x,$mouse.y,111,60,50,15)) { set %calc %calc $+ 7 | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
- if ($inrect($mouse.x,$mouse.y,5,78,50,15)) { set %calc %calc $+ 6 | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
- if ($inrect($mouse.x,$mouse.y,58,78,50,15)) { set %calc %calc $+ 5 | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
- if ($inrect($mouse.x,$mouse.y,111,78,50,15)) { set %calc %calc $+ 4 | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
- if ($inrect($mouse.x,$mouse.y,5,96,50,15)) { set %calc %calc $+ 3 | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
- if ($inrect($mouse.x,$mouse.y,58,96,50,15)) { set %calc %calc $+ 2 | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
- if ($inrect($mouse.x,$mouse.y,111,96,50,15)) { set %calc %calc $+ 1 | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
- if ($inrect($mouse.x,$mouse.y,5,114,50,15)) { set %calc %calc $+ 0 | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
- if ($inrect($mouse.x,$mouse.y,58,114,50,15)) { set %calc %calc $+ 00 | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
- if ($inrect($mouse.x,$mouse.y,111,114,50,15)) { set %calc %calc $+ . | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
- if ($inrect($mouse.x,$mouse.y,169,20,75,15)) { set %calc %calc $+ + | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
- if ($inrect($mouse.x,$mouse.y,247,20,75,15)) { set %calc %calc $+ - | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
- if ($inrect($mouse.x,$mouse.y,169,38,75,15)) { set %calc %calc $+ * | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
- if ($inrect($mouse.x,$mouse.y,247,38,75,15)) { set %calc %calc $+ / | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
- if ($inrect($mouse.x,$mouse.y,169,56,36,15)) { set %calc %calc $+ ( | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
- if ($inrect($mouse.x,$mouse.y,208,56,36,15)) { set %calc %calc $+ ) | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
- if ($inrect($mouse.x,$mouse.y,247,56,75,15)) { set %calc %calc $+ *10/100 | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
- if ($inrect($mouse.x,$mouse.y,169,74,75,15)) { set %calc2 %calc | set %calc2 $sqrt(%calc2) | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 %calc | drawrect -f @calc 15 2 5 40 156 17 | drawrect @calc 2 2 5 40 156 17 | drawtext -oc @calc 2 Tahoma 10 10 42 60 20 %calc2 }
- if ($inrect($mouse.x,$mouse.y,169,92,76,15)) { set %calc2 %calc | set %calc2 $calc(%calc2) | drawrect -f @calc 15 2 5 40 156 17 | drawrect @calc 2 2 5 40 156 17 | drawtext -oc @calc 2 Tahoma 10 10 42 60 20 %calc2 }
- if ($inrect($mouse.x,$mouse.y,247,92,76,15)) { drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawrect -f @calc 15 2 5 40 156 17 | drawrect @calc 2 2 5 40 156 17 | unset %calc | unset %calc2 }
- if ($inrect($mouse.x,$mouse.y,169,114,153,15)) { window -c @calc }
- }
- mouse {
- if $inrect($mouse.x,$mouse.y,301,3,11,11) { drawdot -f @calc 0 4 308 10 | drawrect @calc 0 1 301 3 11 11 }
- else { drawrect -f @calc 3 2 301 3 11 11 | drawrect @calc 0 1 301 3 11 11 }
- if $inrect($mouse.x,$mouse.y,314,3,11,11) { drawdot -f @calc 0 4 321 10 | drawrect @calc 0 1 314 3 11 11 }
- else { drawrect -f @calc 4 2 314 3 11 11 | drawrect @calc 0 1 314 3 11 11 }
- if ($inrect($mouse.x,$mouse.y,5,60,50,15)) { drawtext -oc @calc 14 Tahoma 10 27 61 60 20 9 }
- else { drawtext -oc @calc 2 Tahoma 10 27 61 60 20 9 }
- if ($inrect($mouse.x,$mouse.y,58,60,50,15)) { drawtext -oc @calc 14 Tahoma 10 80 61 60 20 8 }
- else { drawtext -oc @calc 2 Tahoma 10 80 61 60 20 8 }
- if ($inrect($mouse.x,$mouse.y,111,60,50,15)) { drawtext -oc @calc 14 Tahoma 10 133 61 60 20 7 }
- else { drawtext -oc @calc 2 Tahoma 10 133 61 60 20 7 }
- if ($inrect($mouse.x,$mouse.y,5,78,50,15)) { drawtext -oc @calc 14 Tahoma 10 27 79 60 20 6 }
- else { drawtext -oc @calc 2 Tahoma 10 27 79 60 20 6 }
- if ($inrect($mouse.x,$mouse.y,58,78,50,15)) { drawtext -oc @calc 14 Tahoma 10 80 79 60 20 5 }
- else { drawtext -oc @calc 2 Tahoma 10 80 79 60 20 5 }
- if ($inrect($mouse.x,$mouse.y,111,78,50,15)) { drawtext -oc @calc 14 Tahoma 10 133 79 60 20 4 }
- else { drawtext -oc @calc 2 Tahoma 10 133 79 60 20 4 }
- if ($inrect($mouse.x,$mouse.y,5,96,50,15)) { drawtext -oc @calc 14 Tahoma 10 27 97 60 20 3 }
- else { drawtext -oc @calc 2 Tahoma 10 27 97 60 20 3 }
- if ($inrect($mouse.x,$mouse.y,58,96,50,15)) { drawtext -oc @calc 14 Tahoma 10 80 97 60 20 2 }
- else { drawtext -oc @calc 2 Tahoma 10 80 97 60 20 2 }
- if ($inrect($mouse.x,$mouse.y,111,96,50,15)) { drawtext -oc @calc 14 Tahoma 10 133 97 60 20 1 }
- else { drawtext -oc @calc 2 Tahoma 10 133 97 60 20 1 }
- if ($inrect($mouse.x,$mouse.y,5,114,50,15)) { drawtext -oc @calc 14 Tahoma 10 27 115 60 20 0 }
- else { drawtext -oc @calc 2 Tahoma 10 27 115 60 20 0 }
- if ($inrect($mouse.x,$mouse.y,58,114,50,15)) { drawtext -oc @calc 14 Tahoma 10 77 115 60 20 00 }
- else { drawtext -oc @calc 2 Tahoma 10 77 115 60 20 00 }
- if ($inrect($mouse.x,$mouse.y,111,114,50,15)) { drawtext -oc @calc 14 Tahoma 10 135 112 60 20 , }
- else { drawtext -oc @calc 2 Tahoma 10 135 112 60 20 , }
- if ($inrect($mouse.x,$mouse.y,169,20,75,15)) { drawtext -oc @calc 14 Tahoma 10 203 21 60 20 + }
- else { drawtext -oc @calc 2 Tahoma 10 203 21 60 20 + }
- if ($inrect($mouse.x,$mouse.y,247,20,75,15)) { drawtext -oc @calc 14 Tahoma 10 282 21 60 20 - }
- else { drawtext -oc @calc 2 Tahoma 10 282 21 60 20 - }
- if ($inrect($mouse.x,$mouse.y,169,38,75,15)) { drawtext -oc @calc 14 Tahoma 10 204 39 60 20 x }
- else { drawtext -oc @calc 2 Tahoma 10 204 39 60 20 x }
- if ($inrect($mouse.x,$mouse.y,247,38,75,15)) { drawtext -oc @calc 14 Tahoma 10 280 39 60 20 ÷ }
- else { drawtext -oc @calc 2 Tahoma 10 280 39 60 20 ÷ }
- if ($inrect($mouse.x,$mouse.y,169,56,36,15)) { drawtext -oc @calc 14 Tahoma 9 185 58 60 20 ( }
- else { drawtext -oc @calc 2 Tahoma 9 185 58 60 20 ( }
- if ($inrect($mouse.x,$mouse.y,208,56,36,15)) { drawtext -oc @calc 14 Tahoma 9 224 58 60 20 ) }
- else { drawtext -oc @calc 2 Tahoma 9 224 58 60 20 ) }
- if ($inrect($mouse.x,$mouse.y,247,56,75,15)) { drawtext -oc @calc 14 Tahoma 10 280 57 60 20 % }
- else { drawtext -oc @calc 2 Tahoma 10 280 57 60 20 % }
- if ($inrect($mouse.x,$mouse.y,169,74,75,15)) { drawtext -oc @calc 14 Tahoma 10 185 75 60 20 Au carré }
- else { drawtext -oc @calc 2 Tahoma 10 185 75 60 20 Au carré }
- if ($inrect($mouse.x,$mouse.y,247,74,76,15)) { drawtext -oc @calc 14 Tahoma 10 280 75 60 20 Pi }
- else { drawtext -oc @calc 2 Tahoma 10 280 75 60 20 Pi }
- if ($inrect($mouse.x,$mouse.y,169,92,76,15)) { drawtext -oc @calc 14 Tahoma 10 202 93 60 20 = }
- else { drawtext -oc @calc 2 Tahoma 10 202 93 60 20 = }
- if ($inrect($mouse.x,$mouse.y,247,92,76,15)) { drawtext -oc @calc 14 Tahoma 10 267 93 60 20 Effacer }
- else { drawtext -oc @calc 2 Tahoma 10 267 93 60 20 Effacer }
- if ($inrect($mouse.x,$mouse.y,169,114,153,15)) { drawtext -oc @calc 14 Tahoma 10 228 115 60 20 Fermer }
- else { drawtext -oc @calc 2 Tahoma 10 228 115 60 20 Fermer }
- }
- Fermer la fenêtre:window -c @calc
- Minimiser la fenêtre:window -n @calc
- }
alias calc {
unset %calc
unset %calc2
window -BCdg0k0pRz +dl @Calc 0 0 327 134
drawfill -r @calc $rgb(218,240,252) 1 10 10
drawrect -f @calc 2 2 0 0 327 15
drawtext -roc @calc $rgb(250,250,250) Tahoma 10 5 3 200 20 Calculatrice par atlantisfr
drawrect @calc 2 2 0 15 327 119
drawrect @calc 2 2 0 15 337 129
drawrect -f @calc 4 2 314 3 11 11
drawrect @calc 0 1 314 3 11 11
drawrect -f @calc 3 2 301 3 11 11
drawrect @calc 0 1 301 3 11 11
drawrect -f @calc 15 2 5 20 156 17
drawrect @calc 2 2 5 20 156 17
drawrect -f @calc 15 2 5 40 156 17
drawrect @calc 2 2 5 40 156 17
drawrect -f @calc 15 2 5 60 50 15
drawrect @calc 2 2 5 60 50 15
drawtext -oc @calc 2 Tahoma 10 27 61 60 20 9
drawrect -f @calc 15 2 58 60 50 15
drawrect @calc 2 2 58 60 50 15
drawtext -oc @calc 2 Tahoma 10 80 61 60 20 8
drawrect -f @calc 15 2 111 60 50 15
drawrect @calc 2 2 111 60 50 15
drawtext -oc @calc 2 Tahoma 10 133 61 60 20 7
drawrect -f @calc 15 2 5 78 50 15
drawrect @calc 2 2 5 78 50 15
drawtext -oc @calc 2 Tahoma 10 27 79 60 20 6
drawrect -f @calc 15 2 58 78 50 15
drawrect @calc 2 2 58 78 50 15
drawtext -oc @calc 2 Tahoma 10 80 79 60 20 5
drawrect -f @calc 15 2 111 78 50 15
drawrect @calc 2 2 111 78 50 15
drawtext -oc @calc 2 Tahoma 10 133 79 60 20 4
drawrect -f @calc 15 2 5 96 50 15
drawrect @calc 2 2 5 96 50 15
drawtext -oc @calc 2 Tahoma 10 27 97 60 20 3
drawrect -f @calc 15 2 58 96 50 15
drawrect @calc 2 2 58 96 50 15
drawtext -oc @calc 2 Tahoma 10 80 97 60 20 2
drawrect -f @calc 15 2 111 96 50 15
drawrect @calc 2 2 111 96 50 15
drawtext -oc @calc 2 Tahoma 10 133 97 60 20 1
drawrect -f @calc 15 2 5 114 50 15
drawrect @calc 2 2 5 114 50 15
drawtext -oc @calc 2 Tahoma 10 27 115 60 20 0
drawrect -f @calc 15 2 58 114 50 15
drawrect @calc 2 2 58 114 50 15
drawtext -oc @calc 2 Tahoma 10 77 115 60 20 00
drawrect -f @calc 15 2 111 114 50 15
drawrect @calc 2 2 111 114 50 15
drawtext -oc @calc 2 Tahoma 10 135 112 60 20 ,
drawline @calc 2 2 165 20 165 128
drawrect -f @calc 15 2 169 20 75 15
drawrect @calc 2 2 169 20 75 15
drawtext -oc @calc 2 Tahoma 10 203 21 60 20 +
drawrect -f @calc 15 2 247 20 75 15
drawrect @calc 2 2 247 20 75 15
drawtext -oc @calc 2 Tahoma 10 282 21 60 20 -
drawrect -f @calc 15 2 169 38 75 15
drawrect @calc 2 2 169 38 75 15
drawtext -oc @calc 2 Tahoma 10 204 39 60 20 x
drawrect -f @calc 15 2 247 38 75 15
drawrect @calc 2 2 247 38 75 15
drawtext -oc @calc 2 Tahoma 10 280 39 60 20 ÷
drawrect -f @calc 15 2 169 56 36 15
drawrect @calc 2 2 169 56 36 15
drawtext -oc @calc 2 Tahoma 9 185 58 60 20 (
drawrect -f @calc 15 2 208 56 36 15
drawrect @calc 2 2 208 56 36 15
drawtext -oc @calc 2 Tahoma 9 224 58 60 20 )
drawrect -f @calc 15 2 247 56 75 15
drawrect @calc 2 2 247 56 75 15
drawtext -oc @calc 2 Tahoma 10 280 57 60 20 %
drawrect -f @calc 15 2 169 74 75 15
drawrect @calc 2 2 169 74 75 15
drawtext -oc @calc 2 Tahoma 10 185 75 60 20 Au carré
drawrect -f @calc 15 2 247 74 76 15
drawrect @calc 2 2 247 74 75 15
drawtext -oc @calc 2 Tahoma 10 280 75 60 20 Pi
drawrect -f @calc 15 2 169 92 76 15
drawrect @calc 2 2 169 92 76 15
drawtext -oc @calc 2 Tahoma 10 202 93 60 20 =
drawrect -f @calc 15 2 247 92 76 15
drawrect @calc 2 2 247 92 75 15
drawtext -oc @calc 2 Tahoma 10 267 93 60 20 Effacer
drawline @calc 2 2 169 111 321 111
drawrect -f @calc 15 2 169 114 153 15
drawrect @calc 2 2 169 114 153 15
drawtext -oc @calc 2 Tahoma 10 228 115 60 20 Fermer
}
alias -l calc.move {
if ($window(@calc)) window @calc $calc($mouse.dx - $1) $calc($mouse.dy - $2)
if ($mouse.key & 1) .timer $+ $ticks -m 1 0 calc.move $1-
}
menu @calc {
sclick {
if ($mouse.y < 15) { calc.move $calc($mouse.dx - $window($active).x) $calc($mouse.dy - $window($active).y) }
if $inrect($mouse.x,$mouse.y,314,3,11,11) { window -c @calc }
if $inrect($mouse.x,$mouse.y,301,3,11,11) { window -n @calc }
if ($inrect($mouse.x,$mouse.y,5,60,50,15)) { set %calc %calc $+ 9 | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
if ($inrect($mouse.x,$mouse.y,58,60,50,15)) { set %calc %calc $+ 8 | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
if ($inrect($mouse.x,$mouse.y,111,60,50,15)) { set %calc %calc $+ 7 | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
if ($inrect($mouse.x,$mouse.y,5,78,50,15)) { set %calc %calc $+ 6 | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
if ($inrect($mouse.x,$mouse.y,58,78,50,15)) { set %calc %calc $+ 5 | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
if ($inrect($mouse.x,$mouse.y,111,78,50,15)) { set %calc %calc $+ 4 | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
if ($inrect($mouse.x,$mouse.y,5,96,50,15)) { set %calc %calc $+ 3 | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
if ($inrect($mouse.x,$mouse.y,58,96,50,15)) { set %calc %calc $+ 2 | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
if ($inrect($mouse.x,$mouse.y,111,96,50,15)) { set %calc %calc $+ 1 | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
if ($inrect($mouse.x,$mouse.y,5,114,50,15)) { set %calc %calc $+ 0 | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
if ($inrect($mouse.x,$mouse.y,58,114,50,15)) { set %calc %calc $+ 00 | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
if ($inrect($mouse.x,$mouse.y,111,114,50,15)) { set %calc %calc $+ . | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
if ($inrect($mouse.x,$mouse.y,169,20,75,15)) { set %calc %calc $+ + | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
if ($inrect($mouse.x,$mouse.y,247,20,75,15)) { set %calc %calc $+ - | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
if ($inrect($mouse.x,$mouse.y,169,38,75,15)) { set %calc %calc $+ * | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
if ($inrect($mouse.x,$mouse.y,247,38,75,15)) { set %calc %calc $+ / | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
if ($inrect($mouse.x,$mouse.y,169,56,36,15)) { set %calc %calc $+ ( | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
if ($inrect($mouse.x,$mouse.y,208,56,36,15)) { set %calc %calc $+ ) | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
if ($inrect($mouse.x,$mouse.y,247,56,75,15)) { set %calc %calc $+ *10/100 | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 $replace(%calc,*,x,/,÷) }
if ($inrect($mouse.x,$mouse.y,169,74,75,15)) { set %calc2 %calc | set %calc2 $sqrt(%calc2) | drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawtext -oc @calc 2 Tahoma 10 10 22 150 20 %calc | drawrect -f @calc 15 2 5 40 156 17 | drawrect @calc 2 2 5 40 156 17 | drawtext -oc @calc 2 Tahoma 10 10 42 60 20 %calc2 }
if ($inrect($mouse.x,$mouse.y,169,92,76,15)) { set %calc2 %calc | set %calc2 $calc(%calc2) | drawrect -f @calc 15 2 5 40 156 17 | drawrect @calc 2 2 5 40 156 17 | drawtext -oc @calc 2 Tahoma 10 10 42 60 20 %calc2 }
if ($inrect($mouse.x,$mouse.y,247,92,76,15)) { drawrect -f @calc 15 2 5 20 156 17 | drawrect @calc 2 2 5 20 156 17 | drawrect -f @calc 15 2 5 40 156 17 | drawrect @calc 2 2 5 40 156 17 | unset %calc | unset %calc2 }
if ($inrect($mouse.x,$mouse.y,169,114,153,15)) { window -c @calc }
}
mouse {
if $inrect($mouse.x,$mouse.y,301,3,11,11) { drawdot -f @calc 0 4 308 10 | drawrect @calc 0 1 301 3 11 11 }
else { drawrect -f @calc 3 2 301 3 11 11 | drawrect @calc 0 1 301 3 11 11 }
if $inrect($mouse.x,$mouse.y,314,3,11,11) { drawdot -f @calc 0 4 321 10 | drawrect @calc 0 1 314 3 11 11 }
else { drawrect -f @calc 4 2 314 3 11 11 | drawrect @calc 0 1 314 3 11 11 }
if ($inrect($mouse.x,$mouse.y,5,60,50,15)) { drawtext -oc @calc 14 Tahoma 10 27 61 60 20 9 }
else { drawtext -oc @calc 2 Tahoma 10 27 61 60 20 9 }
if ($inrect($mouse.x,$mouse.y,58,60,50,15)) { drawtext -oc @calc 14 Tahoma 10 80 61 60 20 8 }
else { drawtext -oc @calc 2 Tahoma 10 80 61 60 20 8 }
if ($inrect($mouse.x,$mouse.y,111,60,50,15)) { drawtext -oc @calc 14 Tahoma 10 133 61 60 20 7 }
else { drawtext -oc @calc 2 Tahoma 10 133 61 60 20 7 }
if ($inrect($mouse.x,$mouse.y,5,78,50,15)) { drawtext -oc @calc 14 Tahoma 10 27 79 60 20 6 }
else { drawtext -oc @calc 2 Tahoma 10 27 79 60 20 6 }
if ($inrect($mouse.x,$mouse.y,58,78,50,15)) { drawtext -oc @calc 14 Tahoma 10 80 79 60 20 5 }
else { drawtext -oc @calc 2 Tahoma 10 80 79 60 20 5 }
if ($inrect($mouse.x,$mouse.y,111,78,50,15)) { drawtext -oc @calc 14 Tahoma 10 133 79 60 20 4 }
else { drawtext -oc @calc 2 Tahoma 10 133 79 60 20 4 }
if ($inrect($mouse.x,$mouse.y,5,96,50,15)) { drawtext -oc @calc 14 Tahoma 10 27 97 60 20 3 }
else { drawtext -oc @calc 2 Tahoma 10 27 97 60 20 3 }
if ($inrect($mouse.x,$mouse.y,58,96,50,15)) { drawtext -oc @calc 14 Tahoma 10 80 97 60 20 2 }
else { drawtext -oc @calc 2 Tahoma 10 80 97 60 20 2 }
if ($inrect($mouse.x,$mouse.y,111,96,50,15)) { drawtext -oc @calc 14 Tahoma 10 133 97 60 20 1 }
else { drawtext -oc @calc 2 Tahoma 10 133 97 60 20 1 }
if ($inrect($mouse.x,$mouse.y,5,114,50,15)) { drawtext -oc @calc 14 Tahoma 10 27 115 60 20 0 }
else { drawtext -oc @calc 2 Tahoma 10 27 115 60 20 0 }
if ($inrect($mouse.x,$mouse.y,58,114,50,15)) { drawtext -oc @calc 14 Tahoma 10 77 115 60 20 00 }
else { drawtext -oc @calc 2 Tahoma 10 77 115 60 20 00 }
if ($inrect($mouse.x,$mouse.y,111,114,50,15)) { drawtext -oc @calc 14 Tahoma 10 135 112 60 20 , }
else { drawtext -oc @calc 2 Tahoma 10 135 112 60 20 , }
if ($inrect($mouse.x,$mouse.y,169,20,75,15)) { drawtext -oc @calc 14 Tahoma 10 203 21 60 20 + }
else { drawtext -oc @calc 2 Tahoma 10 203 21 60 20 + }
if ($inrect($mouse.x,$mouse.y,247,20,75,15)) { drawtext -oc @calc 14 Tahoma 10 282 21 60 20 - }
else { drawtext -oc @calc 2 Tahoma 10 282 21 60 20 - }
if ($inrect($mouse.x,$mouse.y,169,38,75,15)) { drawtext -oc @calc 14 Tahoma 10 204 39 60 20 x }
else { drawtext -oc @calc 2 Tahoma 10 204 39 60 20 x }
if ($inrect($mouse.x,$mouse.y,247,38,75,15)) { drawtext -oc @calc 14 Tahoma 10 280 39 60 20 ÷ }
else { drawtext -oc @calc 2 Tahoma 10 280 39 60 20 ÷ }
if ($inrect($mouse.x,$mouse.y,169,56,36,15)) { drawtext -oc @calc 14 Tahoma 9 185 58 60 20 ( }
else { drawtext -oc @calc 2 Tahoma 9 185 58 60 20 ( }
if ($inrect($mouse.x,$mouse.y,208,56,36,15)) { drawtext -oc @calc 14 Tahoma 9 224 58 60 20 ) }
else { drawtext -oc @calc 2 Tahoma 9 224 58 60 20 ) }
if ($inrect($mouse.x,$mouse.y,247,56,75,15)) { drawtext -oc @calc 14 Tahoma 10 280 57 60 20 % }
else { drawtext -oc @calc 2 Tahoma 10 280 57 60 20 % }
if ($inrect($mouse.x,$mouse.y,169,74,75,15)) { drawtext -oc @calc 14 Tahoma 10 185 75 60 20 Au carré }
else { drawtext -oc @calc 2 Tahoma 10 185 75 60 20 Au carré }
if ($inrect($mouse.x,$mouse.y,247,74,76,15)) { drawtext -oc @calc 14 Tahoma 10 280 75 60 20 Pi }
else { drawtext -oc @calc 2 Tahoma 10 280 75 60 20 Pi }
if ($inrect($mouse.x,$mouse.y,169,92,76,15)) { drawtext -oc @calc 14 Tahoma 10 202 93 60 20 = }
else { drawtext -oc @calc 2 Tahoma 10 202 93 60 20 = }
if ($inrect($mouse.x,$mouse.y,247,92,76,15)) { drawtext -oc @calc 14 Tahoma 10 267 93 60 20 Effacer }
else { drawtext -oc @calc 2 Tahoma 10 267 93 60 20 Effacer }
if ($inrect($mouse.x,$mouse.y,169,114,153,15)) { drawtext -oc @calc 14 Tahoma 10 228 115 60 20 Fermer }
else { drawtext -oc @calc 2 Tahoma 10 228 115 60 20 Fermer }
}
Fermer la fenêtre:window -c @calc
Minimiser la fenêtre:window -n @calc
}
Historique
- 23 août 2006 01:03:38 :
- Correction du bug de la touche "Au carré"
Sources du même auteur
Sources de la même categorie
Commentaires et avis
Discussions en rapport avec ce code source dans le forum
Aide: Picwin et Calculatrice [ par Mc_AbBeR ]
Bonjour,Je cherche comment faire une zone de texte (disable) en picwin, et un bouton. Puis comment calculer (calculatrice).Merci d'Avance
Combo picwin ? [ par Lestat_2070 ]
Bonjour à tous, Voilà j'ai enfin décidé de me lancer dans les picwins , j'ai d'ailleurs lut attentivement les deux tutos de Kinder
Aider Moi!!!! [ par Bencall ]
Bonjour, Je programme normalement en vb, mais mon probleme est que la seule formule que j'ai trouvé pour mon prog ce trouve en IRC: >if ($prop == len
Variable Long -> int [ par S333 ]
Voilà, c'est à mon tour de poser une question ^^ Alors, je suis en train de refaire, et améliorer HLirc, mais je suis devant un probl&#
Aide: PicWin !!! (mouse.x mouse.y) [ par Mc_AbBeR ]
Voila mon code:alias -l apw.text drawtext @A-PICWIN 1 Tahoma 11 $1-alias -l apw.rect drawrect @A-PICWIN $1-alias apicwin { window -adpBCf +d @A-
PicWin: List et Réduction [ par Mc_AbBeR ]
Bon, je suis en train de faire une petite source en picwin mais j'ai besoin d'une list (comme en dialog). J'ai fait un rectangle mais euh a
PicWin: list en picwin [ par Mc_AbBeR ]
Bon j'voudrais bien faire une liste en picwin (comme sur un dialog) avec les scroll pis tout...
PicWin: supprimer un drawdot [ par Mc_AbBeR ]
Bon j'ai réussi a faire ma list, mais ya juste un petit problème: comment fait-on pour supprimer le drawdot?Quand je fait le mouse ya 100000
Pour ceux qui aiment écouter la musique en tchattant [ par Bestdoud ]
Cela fait quelque temps que je réalise un lecteur mp3 en picwin. venez le découvrir à l'adresse suivante: http://amigagaamp.free.fr voici ces caract
PicWin Multi-Fonctions : Un p'tit coup de pub [ par RCA ArKanis ]
J'osais pas créer une nouvelle source pour ça, étant donné que le remote pour lequel je pubbe a déjà été envoy
|
Derniers Blogs
IMAGINE CUP 2012, MAKE A SIGN EN FINALEIMAGINE CUP 2012, MAKE A SIGN EN FINALE par junarnoalg
Voilà qui est fait, la nouvelle est officielle ! L'équipe belge "Make a Sign" va au pays des kangourous défendre son projet dans la catégorie Software Design. http://www.imaginecup.com/CompetitionsContent/Competition/WorldwideFinalists.aspx V...
Cliquez pour lire la suite de l'article par junarnoalg KINECT 1.5 IS OUT !KINECT 1.5 IS OUT ! par Vko
La version 1.5 du Kinect For Microsoft vient tout juste de sortir ! Plein de nouveautés: Tracking de squelette en Near Mode Détection en position assise Détection faciale avec un SDK dédié Documentation et des guideline (enfin) Un out...
Cliquez pour lire la suite de l'article par Vko LES ACTUALITéS DE LA SEMAINE SUR C2I.FR (14 MAI - 20 MAI) LES ACTUALITéS DE LA SEMAINE SUR C2I.FR (14 MAI - 20 MAI) par richardc
Mise à jour des Web API du 14 Mai
Réservez dès maintenant votre journée du 20 juin pour le Windows Azure Dev Camp 2012 à Paris
Mise à jour de Team Foundation Service
MechCommander 2 sur Windows 8
Entity Framework 5 Release Candidate e...
Cliquez pour lire la suite de l'article par richardc REACTIVE EXTENSIONS : CONSOMMER DES SERVICES AVEC RX PARTIE 3, LES PIèGES à éVITERREACTIVE EXTENSIONS : CONSOMMER DES SERVICES AVEC RX PARTIE 3, LES PIèGES à éVITER par Groc
Une mauvaise utilisation de rx lors de l'écriture d'une couche d'accès à des services peut conduire à des cas embarassants avec des erreurs mal gérées, des appels qui ne partent lorsqu'ils le devraient, et même des résultats incorrects . le tout nuis...
Cliquez pour lire la suite de l'article par Groc SHAREPOINT BLOG SITE, PROBLèME D'ARCHIVESSHAREPOINT BLOG SITE, PROBLèME D'ARCHIVES par junarnoalg
Dernièrement, nous avons migré le site
myTIC
vers un nouveau serveur SharePoint 2010. Dans les contenus que nous vouloins récupérer, nous avions un certain nombre de blogs.
Nous avons utilisé les commandes Power...
Cliquez pour lire la suite de l'article par junarnoalg
Forum
REMOTE /OPALLREMOTE /OPALL par Aesculus
Cliquez pour lire la suite par Aesculus SHOUTCASTSHOUTCAST par lobas
Cliquez pour lire la suite par lobas PROBLèME CODESPROBLèME CODES par pingoleon100
Cliquez pour lire la suite par pingoleon100
Logiciels
sDEVIS-FACTURES vlPRO (8.1.0.3)SDEVIS-FACTURES VLPRO (8.1.0.3)sDEVIS-FACTURES vlPRO a été mis au point pour les particuliers, créateurs, entrepreneurs, artisa... Cliquez pour télécharger sDEVIS-FACTURES vlPRO 974 Application Server (12.2.4.6)974 APPLICATION SERVER (12.2.4.6)Développez de puissantes applications dans un environnement de 'cloud computing', clusterisé, séc... Cliquez pour télécharger 974 Application Server vPicture (1.4.2.1)VPICTURE (1.4.2.1)Avec vPicture, hébergez vos images facilement et rapidement.
vPicture est un utilitaire simple, ... Cliquez pour télécharger vPicture Easy-Planning (2.2.1.6)EASY-PLANNING (2.2.1.6)Easy-Planning permet de créer des plannings sous la représentation de diagrammes et est adapté au... Cliquez pour télécharger Easy-Planning COM-BACKUP (2.0)COM-BACKUP (2.0)
COM-BACKUP est un logiciel de sauvegarde qui permet de planifier les sauvegardes de vos dossiers ...
Cliquez pour télécharger COM-BACKUP
|