Jump to content

Recommended Posts

Posted (edited)

Hi,

i have completely rewritten the calculator so here it is :)

10.10.2006 Updates:
- _IsPrime updated for 2
- Flickering mousecursor fixed;)

Regards Daniel W.

Calculator.zip

Edited by Daniel W.

--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote]

Posted

It works very well. Well done.

My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop.
Posted

Thanks , i am working on a blockinput for a-z because if any of these chars is in the input execute returns nothing.

If i got that then i will work on an solve function.

like this:

Solve(5 = x - 3 , x)

Then i should return this

x = 8

--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote]

Posted (edited)

looks like a good idea! (Not that id use it for homework.... :) )

Edit: this should get you started

MsgBox(0,0,Solve("6 = x - 6", "x"))
Func Solve($equation, $char)
    $equation = StringStripWS($equation, 8)
    $split = StringSplit($equation, "=")
    $side = 2
    If StringInStr($split[1], $char) <> 0 Then $side = 0
    If StringInStr($split[2], $char) <> 0 Then $side = 1
    If $side = 0 Then ;left
        For $i = -1000 To 1000
            $test = StringReplace($split[1], $char, "(" & $i & ")")
            If Execute($test) = $split[2] Then Return $i
        Next
    ElseIf $side = 1 Then ;right
        For $i = -1000 To 1000
            $test = StringReplace($split[2], $char, "(" & $i & ")")
            If Execute($test) = $split[1] Then Return $i
        Next
    Else
        Return 0
    EndIf
EndFunc
Edited by RazerM
My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop.
Posted (edited)

[offtopic]wow I had no idea there were autoit tags!!![/offtopic]

nice calculator! keep up the good work.

edit: in the second menu, i think you spelt standard wrong

Edited by The Great 'Awesoma-Powa!'
Posted

Oh kk thanks its just german not english ^^

PS GERMAN ROXX!!!!

PSS: CAPS LOCK ROXX!!!

--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote]

Posted

oh no problem

thanks again for the advise

--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote]

Posted

Updated it :)

--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote]

Posted

ANd just another Update :)

--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote]

Posted

Hi,

not bad, but I don't like the RegWrite! What about an ini file instead of that?

So long,

Mega

P.S.: Warum schreibt man einen Taschenrechner, wenn er bei Windows dabei ist. :( Schulprojekt? :)

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Posted

Hi,

i could do it with ini but whats so bad with ONE registry key?

PS: Ne aber warum macht man für nen SPiel ne Mod?

Weil man findet das was fehlt :)

Ist nicht für Schule btw

--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote]

Posted

Hi,

not bad, but I don't like the RegWrite! What about an ini file instead of that?

So long,

Mega

P.S.: Warum schreibt man einen Taschenrechner, wenn er bei Windows dabei ist. :( Schulprojekt? :)

i agree, i wont test/use it because i dont like "extra" entries in my reg that needs to be read everytime i start-up... or for any non-necessary reason

8)

NEWHeader1.png

Posted (edited)

Hi,

i could do it with ini but whats so bad with ONE registry key?

PS: Ne aber warum macht man für nen SPiel ne Mod?

Weil man findet das was fehlt :)

Ist nicht für Schule btw

HI,

the problem is that the registry grows up and by the way, I don't want anything to write to my registry if I can avoid it. Nobodys cleans all the keys (deletes them) - that is why I don't like it.

Just my 2 Cents!

PS: Na dann viel Spaß weiterhin und man sieht sich sicher noch öfter. :(

Edit: Wie hast du denn die Skins gemacht?

Edited by th.meger

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Posted

KK in 20 mins i make a version with ini file :)

Meinste die Buttons?

Hab auf meinem pc nach .ico files gesucht und die gefunden ich kann die ja mit hochladen :(

--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote]

Posted (edited)

See first post.

There it is :)

€: 2nd site :(

Edited by Daniel W.

--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote]

Posted (edited)

So

i need your help now

This is the solve function i got already ( thanks razerM for start :) )

Func _solve($gleichung, $char)
    $gleichung = StringStripWS($gleichung, 8)
    $split = StringSplit($gleichung, "=")
    $side = 3
    If StringInStr($split[1], $char) = 1 and StringInStr($split[2], $char) = 1 Then $side = 2
    If StringInStr($split[1], $char) <> 0 Then $side = 0
    If StringInStr($split[2], $char) <> 0 Then $side = 1
    If $side = 0 Then ;left
        For $i = -1000 To 1000
            $test = StringReplace($split[1], $char, "(" & $i & ")")
            If Execute($test) = $split[2] Then Return $i
        Next
    ElseIf $side = 1 Then ;right
        For $i = -1000 To 1000
            $test = StringReplace($split[2], $char, "(" & $i & ")")
            If Execute($test) = $split[1] Then Return $i
        Next
        Return 1    
    ElseIf $side = 2 Then ;both
        For $i = -1000 to 1000
            $test1 = StringReplace($split[1], $char, "(" & $i & ")")
            $test2 = StringReplace($split[2], $char, "(" & $i & ")")
            If $test1 = $test2 Then Return $i
        Next
            Return 1
    Else
        Return 0
    EndIf
EndFunc

Works not nice because with "/" it returns wrong numbers and with "*" it always returns "0"

Edited by Daniel W.

--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote]

Posted

New version and hotkeyset is working against me ^^

--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote]

Posted

Thanks maybe you can tell me some background colors in Hex you would like to have :)

--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote]

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
  • Recently Browsing   0 members

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