Jump to content

problems...


Kickassjoe
 Share

Recommended Posts

#include <GuiConstants.au3>

GuiCreate("Exponents", 400, 300,-1, -1)

$seperator = GUICtrlCreateLabel("to the power of...", 130, 170, 80, 20)
$base = GuiCtrlCreateInput("Base", 60, 170, 60, 20)
$exponent = GuiCtrlCreateInput("Exponent", 220, 170, 70, 20)
$OKButton = GUICtrlCreateButton("OK", 350,250,25,25)
GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case $msg = $OKButton
        GUICtrlRead($base)
        GUICtrlRead($exponent)
DoTheMath($base, $exponent)
    EndSelect
WEnd
Exit






















Func DoTheMath($base, $exponent)
    
    
    
    
    
;1
$line1 = $base
$i = 1
If $i <= $exponent Then
    $line1 = $line1 & " x " & $base
    $i = $i + 1
EndIf

;1
If $i <= $exponent Then
    $line1 = $line1 & " x " & $base
    $i = $i + 1
EndIf

;1
If $i <= $exponent Then
    $line1 = $line1 & " x " & $base
    $i = $i + 1
EndIf

;1
If $i <= $exponent Then
    $line1 = $line1 & " x " & $base
    $i = $i + 1
EndIf

;1
If $i <= $exponent Then
    $line1 = $line1 & " x " & $base
    $i = $i + 1
EndIf

;1
If $i <= $exponent Then
    $line1 = $line1 & " x " & $base
    $i = $i + 1
EndIf

;1
If $i <= $exponent Then
    $line1 = $line1 & " x " & $base
    $i = $i + 1
EndIf

;1
If $i <= $exponent Then
    $line1 = $line1 & " x " & $base
    $i = $i + 1
EndIf

;1
If $i <= $exponent Then
    $line1 = $line1 & " x " & $base
    $i = $i + 1
EndIf

;1
If $i <= $exponent Then
    $line1 = $line1 & " x " & $base
    $i = $i + 1
EndIf



;answer to line 1
$i = 1
If $i <= $exponent Then
$answer = $base * $base
EndIf




;2
$line2 = $answer
$i = 2
If $i <= $exponent Then
    $line2 = $line2 & " x " & $base
    $i = $i + 1
EndIf

;2
If $i <= $exponent Then
    $line2 = $line2 & " x " & $base
    $i = $i + 1
EndIf

;2
If $i <= $exponent Then
    $line2 = $line2 & " x " & $base
    $i = $i + 1
EndIf

;2
If $i <= $exponent Then
    $line2 = $line2 & " x " & $base
    $i = $i + 1
EndIf

;2
If $i <= $exponent Then
    $line2 = $line2 & " x " & $base
    $i = $i + 1
EndIf

;2
If $i <= $exponent Then
    $line2 = $line2 & " x " & $base
    $i = $i + 1
EndIf

;2
If $i <= $exponent Then
    $line2 = $line2 & " x " & $base
    $i = $i + 1
EndIf

;2
If $i <= $exponent Then
    $line2 = $line2 & " x " & $base
    $i = $i + 1
EndIf

;2
If $i <= $exponent Then
    $line2 = $line2 & " x " & $base
    $i = $i + 1
EndIf

;2
If $i <= $exponent Then
    $line2 = $line2 & " x " & $base
    $i = $i + 1
EndIf


;answer to line 2
$i = 2
If $i <= $exponent Then
$answer = $answer * $base
EndIf



;3
$line3 = $answer
$i = 3
If $i <= $exponent Then
    $line3 = $line3 & " x " & $base
    $i = $i + 1
EndIf


;3
If $i <= $exponent Then
    $line3 = $line3 & " x " & $base
    $i = $i + 1
EndIf


;3
If $i <= $exponent Then
    $line3 = $line3 & " x " & $base
    $i = $i + 1
EndIf


;3
If $i <= $exponent Then
    $line3 = $line3 & " x " & $base
    $i = $i + 1
EndIf


;3
If $i <= $exponent Then
    $line3 = $line3 & " x " & $base
    $i = $i + 1
EndIf


;3
If $i <= $exponent Then
    $line3 = $line3 & " x " & $base
    $i = $i + 1
EndIf


;3
If $i <= $exponent Then
    $line3 = $line3 & " x " & $base
    $i = $i + 1
EndIf


;3
If $i <= $exponent Then
    $line3 = $line3 & " x " & $base
    $i = $i + 1
EndIf


;3
If $i <= $exponent Then
    $line3 = $line3 & " x " & $base
    $i = $i + 1
EndIf


;3
If $i <= $exponent Then
    $line3 = $line3 & " x " & $base
    $i = $i + 1
EndIf

;answer to line 3
$i = 3
If $i <= $exponent Then
$answer = $answer * $base
EndIf


;4
$line4 = $answer
$i = 4
If $i <= $exponent Then
    $line4 = $line4 & " x " & $base
    $i = $i + 1
EndIf


;4
If $i <= $exponent Then
    $line4 = $line4 & " x " & $base
    $i = $i + 1
EndIf


;4
If $i <= $exponent Then
    $line4 = $line4 & " x " & $base
    $i = $i + 1
EndIf


;4
If $i <= $exponent Then
    $line4 = $line4 & " x " & $base
    $i = $i + 1
EndIf


;4
If $i <= $exponent Then
    $line4 = $line4 & " x " & $base
    $i = $i + 1
EndIf


;4
If $i <= $exponent Then
    $line4 = $line4 & " x " & $base
    $i = $i + 1
EndIf


;4
If $i <= $exponent Then
    $line4 = $line4 & " x " & $base
    $i = $i + 1
EndIf


;4
If $i <= $exponent Then
    $line4 = $line4 & " x " & $base
    $i = $i + 1
EndIf


;4
If $i <= $exponent Then
    $line4 = $line4 & " x " & $base
    $i = $i + 1
EndIf


;4
If $i <= $exponent Then
    $line4 = $line4 & " x " & $base
    $i = $i + 1
EndIf


;4
If $i <= $exponent Then
    $line4 = $line4 & " x " & $base
    $i = $i + 1
EndIf


;answer to line 4
$i = 4
If $i <= $exponent Then
$answer = $answer * $base
EndIf









MsgBox(0, "Your answer is...", $line1 & @CRLF & $line2 & @CRLF & $line3 & @CRLF &$line4 & @CRLF & $answer)
EndFunc

ok, for $exponent, I type in 3, for exponent I type in 9 (i know it cant fully do that yet), and then it does like 4 to the power of 7... and I don't know why. I know its not the greatest script, just put it together a few mins ago. Anyone know what's wrong with it?

It's probably so simple that I'm just confusing myself.

What goes around comes around... Payback's a bitch.

Link to comment
Share on other sites

CODE
#include <GuiConstants.au3>

GuiCreate("Exponents", 400, 300,-1, -1)

$seperator = GUICtrlCreateLabel("to the power of...", 130, 170, 80, 20)

$base = GuiCtrlCreateInput("Base", 60, 170, 60, 20)

$exponent = GuiCtrlCreateInput("Exponent", 220, 170, 70, 20)

$OKButton = GUICtrlCreateButton("OK", 350,250,25,25)

GuiSetState()

While 1

$msg = GuiGetMsg()

Select

Case $msg = $GUI_EVENT_CLOSE

ExitLoop

Case $msg = $OKButton

GUICtrlRead($base)

GUICtrlRead($exponent)

DoTheMath($base, $exponent)

EndSelect

WEnd

Exit

Func DoTheMath($base, $exponent)

;1

$line1 = $base

$i = 1

If $i <= $exponent Then

$line1 = $line1 & " x " & $base

$i = $i + 1

EndIf

;1

If $i <= $exponent Then

$line1 = $line1 & " x " & $base

$i = $i + 1

EndIf

;1

If $i <= $exponent Then

$line1 = $line1 & " x " & $base

$i = $i + 1

EndIf

;1

If $i <= $exponent Then

$line1 = $line1 & " x " & $base

$i = $i + 1

EndIf

;1

If $i <= $exponent Then

$line1 = $line1 & " x " & $base

$i = $i + 1

EndIf

;1

If $i <= $exponent Then

$line1 = $line1 & " x " & $base

$i = $i + 1

EndIf

;1

If $i <= $exponent Then

$line1 = $line1 & " x " & $base

$i = $i + 1

EndIf

;1

If $i <= $exponent Then

$line1 = $line1 & " x " & $base

$i = $i + 1

EndIf

;1

If $i <= $exponent Then

$line1 = $line1 & " x " & $base

$i = $i + 1

EndIf

;1

If $i <= $exponent Then

$line1 = $line1 & " x " & $base

$i = $i + 1

EndIf

;answer to line 1

$i = 1

If $i <= $exponent Then

$answer = $base * $base

EndIf

;2

$line2 = $answer

$i = 2

If $i <= $exponent Then

$line2 = $line2 & " x " & $base

$i = $i + 1

EndIf

;2

If $i <= $exponent Then

$line2 = $line2 & " x " & $base

$i = $i + 1

EndIf

;2

If $i <= $exponent Then

$line2 = $line2 & " x " & $base

$i = $i + 1

EndIf

;2

If $i <= $exponent Then

$line2 = $line2 & " x " & $base

$i = $i + 1

EndIf

;2

If $i <= $exponent Then

$line2 = $line2 & " x " & $base

$i = $i + 1

EndIf

;2

If $i <= $exponent Then

$line2 = $line2 & " x " & $base

$i = $i + 1

EndIf

;2

If $i <= $exponent Then

$line2 = $line2 & " x " & $base

$i = $i + 1

EndIf

;2

If $i <= $exponent Then

$line2 = $line2 & " x " & $base

$i = $i + 1

EndIf

;2

If $i <= $exponent Then

$line2 = $line2 & " x " & $base

$i = $i + 1

EndIf

;2

If $i <= $exponent Then

$line2 = $line2 & " x " & $base

$i = $i + 1

EndIf

;answer to line 2

$i = 2

If $i <= $exponent Then

$answer = $answer * $base

EndIf

;3

$line3 = $answer

$i = 3

If $i <= $exponent Then

$line3 = $line3 & " x " & $base

$i = $i + 1

EndIf

;3

If $i <= $exponent Then

$line3 = $line3 & " x " & $base

$i = $i + 1

EndIf

;3

If $i <= $exponent Then

$line3 = $line3 & " x " & $base

$i = $i + 1

EndIf

;3

If $i <= $exponent Then

$line3 = $line3 & " x " & $base

$i = $i + 1

EndIf

;3

If $i <= $exponent Then

$line3 = $line3 & " x " & $base

$i = $i + 1

EndIf

;3

If $i <= $exponent Then

$line3 = $line3 & " x " & $base

$i = $i + 1

EndIf

;3

If $i <= $exponent Then

$line3 = $line3 & " x " & $base

$i = $i + 1

EndIf

;3

If $i <= $exponent Then

$line3 = $line3 & " x " & $base

$i = $i + 1

EndIf

;3

If $i <= $exponent Then

$line3 = $line3 & " x " & $base

$i = $i + 1

EndIf

;3

If $i <= $exponent Then

$line3 = $line3 & " x " & $base

$i = $i + 1

EndIf

;answer to line 3

$i = 3

If $i <= $exponent Then

$answer = $answer * $base

EndIf

;4

$line4 = $answer

$i = 4

If $i <= $exponent Then

$line4 = $line4 & " x " & $base

$i = $i + 1

EndIf

;4

If $i <= $exponent Then

$line4 = $line4 & " x " & $base

$i = $i + 1

EndIf

;4

If $i <= $exponent Then

$line4 = $line4 & " x " & $base

$i = $i + 1

EndIf

;4

If $i <= $exponent Then

$line4 = $line4 & " x " & $base

$i = $i + 1

EndIf

;4

If $i <= $exponent Then

$line4 = $line4 & " x " & $base

$i = $i + 1

EndIf

;4

If $i <= $exponent Then

$line4 = $line4 & " x " & $base

$i = $i + 1

EndIf

;4

If $i <= $exponent Then

$line4 = $line4 & " x " & $base

$i = $i + 1

EndIf

;4

If $i <= $exponent Then

$line4 = $line4 & " x " & $base

$i = $i + 1

EndIf

;4

If $i <= $exponent Then

$line4 = $line4 & " x " & $base

$i = $i + 1

EndIf

;4

If $i <= $exponent Then

$line4 = $line4 & " x " & $base

$i = $i + 1

EndIf

;4

If $i <= $exponent Then

$line4 = $line4 & " x " & $base

$i = $i + 1

EndIf

;answer to line 4

$i = 4

If $i <= $exponent Then

$answer = $answer * $base

EndIf

MsgBox(0, "Your answer is...", $line1 & @CRLF & $line2 & @CRLF & $line3 & @CRLF &$line4 & @CRLF & $answer)

EndFunc

ok, for $exponent, I type in 3, for exponent I type in 9 (i know it cant fully do that yet), and then it does like 4 to the power of 7... and I don't know why. I know its not the greatest script, just put it together a few mins ago. Anyone know what's wrong with it?

It's probably so simple that I'm just confusing myself.

Ermm... :)

For the math, the 'caret' operator provides exponents directly (shift of 6 on US-EN keyboard):

$x = 2
$y = 4
$Answer = $x ^ $y
MsgBox(64, "Result", "Answer = " & $Answer)oÝ÷ Ø¢¼¨º±"ènW¦Ê­ë¬x-ç(Úèì{-y§h~Ø^u«Z{ayÊ'¶º%±ú+Ê«¢«jب«­¢+ØÀÌØíÍôÕ¥
Ñɱ
ÉÑ%¹ÁÕÐ ÅÕ½Ðí    ÍÅÕ½Ðì°ØÀ°ÄÜÀ°ØÀ°ÈÀ¤(ÀÌØíáÁ½¹¹ÐôÕ¥
Ñɱ
ÉÑ%¹ÁÕÐ ÅÕ½ÐíáÁ½¹¹ÐÅÕ½Ðì°ÈÈÀ°ÄÜÀ°ÜÀ°ÈÀ¤(ÀÌØí=- ÕÑѽ¸ôU%
Ñɱ
ÉÑ    ÕÑѽ¸ ÅÕ½Ðí=,ÅÕ½Ðì°ÌÔÀ°ÈÔÀ°ÈÔ°ÈÔoÝ÷ Ù8^½ªâi¹^³Múm«Ó~Æ'z{ZÝ7èâºÛhªÞ±ëm¢Ø^rí®Hʶ¬yÊ'¶º%²z-¶jÖ¢­¶jÖ«y§m触ë¢{k¢[ºÚ"µÍÌÍÒ[]ÐÙHHÝZPÝXY
    ÌÍØÙJBÌÍÒ[]Ñ^HÝZPÝXY
    ÌÍÙ^Û[
BÌÍÐ[ÝÙH   ÌÍÒ[]ÐÙH   ÌÍÒ[]Ñ^ÙÐÞ
    ][ÝÔÝ[   ][ÝË  ÌÍÒ[]ÐÙH   [È ][ÝÈÈH   ][ÝÈ  [È ÌÍÒ[]Ñ^ [È ][ÝÈÝÙÈ    ][ÝÈ  [È ÌÍÐ[ÝÙ [È ][ÝË][ÝÊB

:P

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

wow, I was retarded yesterday, I forgot to set the ctrlread to a variable ^.^

WOW. how dumb am I? (retorical Q.)

EDIT: o yea thanks Psalty for the ^ tip

I still have to put all the if's into do, until loops... and add some more... but otherwise it works great

Edited by Kickassjoe

What goes around comes around... Payback's a bitch.

Link to comment
Share on other sites

wow, I was retarded yesterday, I forgot to set the ctrlread to a variable ^.^

WOW. how dumb am I? (retorical Q.)

EDIT: o yea thanks Psalty for the ^ tip

I still have to put all the if's into do, until loops... and add some more... but otherwise it works great

I think you should look at "Switch" and/or "Select" in the helpfile

they will Drastically shorten all those ifs

Link to comment
Share on other sites

or do,until

or while,wend

or for, next

or select and switch (like you said :D)

:P

I just havent been working on it for that long, when my bro was on the comp. I just wrote it down in a blank journal. :)

What goes around comes around... Payback's a bitch.

Link to comment
Share on other sites

#include <GuiConstants.au3>

GuiCreate("Exponents", 400, 300,-1, -1)

$seperator = GUICtrlCreateLabel("to the power of...", 130, 170, 80, 20)
$base = GuiCtrlCreateInput("Base", 60, 170, 60, 20)
$exponent = GuiCtrlCreateInput("Exponent", 220, 170, 70, 20)
$OKButton = GUICtrlCreateButton("OK", 350,250,25,25)
GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case $msg = $OKButton
        $base = GUICtrlRead($base)
        $exponent = GUICtrlRead($exponent)
DoTheMath($base, $exponent)
    EndSelect
WEnd
Exit

















;function
Func DoTheMath($base, $exponent)
    
;first thing to line 1
$line1 = $base
$i = 1
If $i < $exponent Then
    $line1 = $line1 & " x " & $base
    $i = $i + 1
EndIf

;1
If $i < $exponent Then
While $i < $exponent
    $line1 = $line1 & " x " & $base
    $i = $i + 1
WEnd
EndIf

;answer to line 1
$i = 1
If $i < $exponent Then
$answer = $base * $base
EndIf

;first thing to line 2
$line2 = $answer
$i = 2
If $i < $exponent Then
    $line2 = $line2 & " x " & $base
    $i = $i + 1
EndIf

;2
If $i < $exponent Then
While $i < $exponent
    $line2 = $line2 & " x " & $base
    $i = $i + 1
WEnd
EndIf
;answer to line 2
$i = 2
If $i < $exponent Then
$answer = $answer * $base
EndIf

;first thing to line 3
$line3 = $answer
$i = 3
If $i < $exponent Then
    $line3 = $line3 & " x " & $base
    $i = $i + 1
EndIf

;3
If $i < $exponent Then
While $i < $exponent
    $line3 = $line3 & " x " & $base
    $i = $i + 1
WEnd
EndIf

;answer to line 3
$i = 3
If $i < $exponent Then
$answer = $answer * $base
EndIf

;first thing to line 4
$line4 = $answer
$i = 4
If $i < $exponent Then
    $line4 = $line4 & " x " & $base
    $i = $i + 1
EndIf

;4
If $i < $exponent Then
While $i < $exponent
    $line4 = $line4 & " x " & $base
    $i = $i + 1
WEnd
EndIf

;answer to line 4
$i = 4
If $i < $exponent Then
$answer = $answer * $base
EndIf

;first thing to line 5
$line5 = $answer
$i = 5
If $i < $exponent Then
    $line5 = $line5 & " x " & $base
    $i = $i + 1
EndIf

;5
If $i < $exponent Then
While $i < $exponent
    $line5 = $line5 & " x " & $base
    $i = $i + 1
WEnd
EndIf

;answer to line 5
$i = 5
If $i < $exponent Then
$answer = $answer * $base
EndIf

;first thing to line 6
$line6 = $answer
$i = 6
If $i < $exponent Then
    $line6 = $line6 & " x " & $base
    $i = $i + 1
EndIf

;6
If $i < $exponent Then
While $i < $exponent
    $line6 = $line6 & " x " & $base
    $i = $i + 1
WEnd
EndIf

;answer to line 6
$i = 6
If $i < $exponent Then
$answer = $answer * $base
EndIf

;first thing to line 7
$line7 = $answer
$i = 7
If $i < $exponent Then
    $line7 = $line7 & " x " & $base
    $i = $i + 1
EndIf

;7
If $i < $exponent Then
While $i < $exponent
    $line7 = $line7 & " x " & $base
    $i = $i + 1
WEnd
EndIf

;answer to line 7
$i = 7
If $i < $exponent Then
$answer = $answer * $base
EndIf


MsgBox(0, "Your answer is...", $line1 & @CRLF & $line2 & @CRLF & $line3 & @CRLF & $line4 & @CRLF & $line5 & @CRLF & $line6 & @CRLF & $line7 & _
@CRLF & $answer)
EndFunc

woot, while loops made that shorter, (I used while, because it is easyiest to use IMO) :) and I made it up to the power of 7,yay

EDIT: edited the script to make it work... now it works with everything to the power of 7 or less!!!!! :P

Edited by Kickassjoe

What goes around comes around... Payback's a bitch.

Link to comment
Share on other sites

CODE
#include <GuiConstants.au3>

GuiCreate("Exponents", 400, 300,-1, -1)

$seperator = GUICtrlCreateLabel("to the power of...", 130, 170, 80, 20)

$base = GuiCtrlCreateInput("Base", 60, 170, 60, 20)

$exponent = GuiCtrlCreateInput("Exponent", 220, 170, 70, 20)

$OKButton = GUICtrlCreateButton("OK", 350,250,25,25)

GuiSetState()

While 1

$msg = GuiGetMsg()

Select

Case $msg = $GUI_EVENT_CLOSE

ExitLoop

Case $msg = $OKButton

$base = GUICtrlRead($base)

$exponent = GUICtrlRead($exponent)

DoTheMath($base, $exponent)

EndSelect

WEnd

Exit

;function

Func DoTheMath($base, $exponent)

;first thing to line 1

$line1 = $base

$i = 1

If $i <= $exponent Then

$line1 = $line1 & " x " & $base

$i = $i + 1

EndIf

;1

While $i < $exponent

$line1 = $line1 & " x " & $base

$i = $i + 1

WEnd

;answer to line 1

$i = 1

If $i <= $exponent Then

$answer = $base * $base

EndIf

;first thing to line 2

$line2 = $answer

$i = 2

If $i <= $exponent Then

$line2 = $line2 & " x " & $base

$i = $i + 1

EndIf

;2

While $i < $exponent

$line2 = $line2 & " x " & $base

$i = $i + 1

WEnd

;answer to line 2

$i = 2

If $i <= $exponent Then

$answer = $answer * $base

EndIf

;first thing to line 3

$line3 = $answer

$i = 3

If $i <= $exponent Then

$line3 = $line3 & " x " & $base

$i = $i + 1

EndIf

;3

While $i < $exponent

$line3 = $line3 & " x " & $base

$i = $i + 1

WEnd

;answer to line 3

$i = 3

If $i <= $exponent Then

$answer = $answer * $base

EndIf

;first thing to line 4

$line4 = $answer

$i = 4

If $i <= $exponent Then

$line4 = $line4 & " x " & $base

$i = $i + 1

EndIf

;4

While $i < $exponent

$line4 = $line4 & " x " & $base

$i = $i + 1

WEnd

;answer to line 4

$i = 4

If $i <= $exponent Then

$answer = $answer * $base

EndIf

;first thing to line 5

$line5 = $answer

$i = 5

If $i <= $exponent Then

$line5 = $line5 & " x " & $base

$i = $i + 1

EndIf

;5

While $i < $exponent

$line5 = $line5 & " x " & $base

$i = $i + 1

WEnd

;answer to line 5

$i = 5

If $i <= $exponent Then

$answer = $answer * $base

EndIf

;first thing to line 6

$line6 = $answer

$i = 6

If $i <= $exponent Then

$line6 = $line6 & " x " & $base

$i = $i + 1

EndIf

;6

While $i < $exponent

$line6 = $line6 & " x " & $base

$i = $i + 1

WEnd

;answer to line 6

$i = 6

If $i <= $exponent Then

$answer = $answer * $base

EndIf

;first thing to line 7

$line7 = $answer

$i = 7

If $i <= $exponent Then

$line7 = $line7 & " x " & $base

$i = $i + 1

EndIf

;7

While $i < $exponent

$line7 = $line7 & " x " & $base

$i = $i + 1

WEnd

;answer to line 7

$i = 7

If $i <= $exponent Then

$answer = $answer * $base

EndIf

MsgBox(0, "Your answer is...", $line1 & @CRLF & $line2 & @CRLF & $line3 & @CRLF & $line4 & @CRLF & $line5 & @CRLF & $line6 & @CRLF & $line7 & _

@CRLF & $answer)

EndFunc

woot, while loops made that shorter, (I used while, because it is easyiest to use IMO) :) and I made it up to the power of 7,yay
If this will be your last AutoIT script, congratulations if it works (haven't tested, but I don't think it does). But, if you intend to do more scripting, you really need to fix some things that will bite you in the butt later...

This code overwrites your saved control IDs for the input boxes, making it very hard to go back and read those controls again later:

$base = GUICtrlRead($base)
        $exponent = GUICtrlRead($exponent)oÝ÷ ÙvØ^u«Z{hiØ}êÞÛÚ®&ë(ʬ¶)e«Þ¶¢{k¢R~åj׫N¢YhÂ)à±ëlÓ~¥w­£Múm«jjjºqªê-jjtߦڱì!z}7éìi¢w§¶+5Â+0®à«azf­Érjëh×6;first thing to line 1
$line1 = $base
$i = 1
If $i <= $exponent Then
    $line1 = $line1 & " x " & $base
    $i = $i + 1
EndIfoÝ÷ Ù8Z·l~,^u¼©àx-ç(«Ê'¢«jÚ+~º&ßÙm

I'm not on a Windows box, so I can't test that it works that way. I think you are on the right track but not quite there yet! :P

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...