Jump to content



Photo

Calculator


  • Please log in to reply
28 replies to this topic

#1 Daniel W.

Daniel W.

    I hacked 127.0.0.1 !!!

  • Active Members
  • PipPipPipPipPipPip
  • 434 posts

Posted 26 May 2006 - 04:04 PM

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.

Attached Files


Edited by Daniel W., 10 October 2006 - 04:35 PM.

--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------

Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.






#2 RazerM

RazerM

    cowinkeedenky - coincidence?

  • Active Members
  • PipPipPipPipPipPip
  • 1,246 posts

Posted 26 May 2006 - 05:16 PM

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.

#3 Daniel W.

Daniel W.

    I hacked 127.0.0.1 !!!

  • Active Members
  • PipPipPipPipPipPip
  • 434 posts

Posted 26 May 2006 - 05:18 PM

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* --------------------------------------------------------------------------------------------------------------------------------

Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.


#4 RazerM

RazerM

    cowinkeedenky - coincidence?

  • Active Members
  • PipPipPipPipPipPip
  • 1,246 posts

Posted 26 May 2006 - 05:39 PM

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, 26 May 2006 - 06:25 PM.

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.

#5 jacksont123

jacksont123

    Wayfarer

  • Active Members
  • Pip
  • 92 posts

Posted 26 May 2006 - 10:05 PM

[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!', 26 May 2006 - 10:09 PM.

Posted Image

#6 Daniel W.

Daniel W.

    I hacked 127.0.0.1 !!!

  • Active Members
  • PipPipPipPipPipPip
  • 434 posts

Posted 26 May 2006 - 10:21 PM

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* --------------------------------------------------------------------------------------------------------------------------------

Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.


#7 jacksont123

jacksont123

    Wayfarer

  • Active Members
  • Pip
  • 92 posts

Posted 26 May 2006 - 10:41 PM

hehe. sorry.
Posted Image

#8 Daniel W.

Daniel W.

    I hacked 127.0.0.1 !!!

  • Active Members
  • PipPipPipPipPipPip
  • 434 posts

Posted 26 May 2006 - 11:06 PM

oh no problem
thanks again for the advise
--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------

Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.


#9 Daniel W.

Daniel W.

    I hacked 127.0.0.1 !!!

  • Active Members
  • PipPipPipPipPipPip
  • 434 posts

Posted 27 May 2006 - 12:53 AM

Updated it :)
--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------

Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.


#10 Daniel W.

Daniel W.

    I hacked 127.0.0.1 !!!

  • Active Members
  • PipPipPipPipPipPip
  • 434 posts

Posted 27 May 2006 - 06:44 PM

ANd just another Update :)
--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------

Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.


#11 Xenobiologist

Xenobiologist

    Xx Code~Mega xX

  • MVPs
  • 4,729 posts

Posted 27 May 2006 - 11:07 PM

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 *newYahtzee 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

#12 Daniel W.

Daniel W.

    I hacked 127.0.0.1 !!!

  • Active Members
  • PipPipPipPipPipPip
  • 434 posts

Posted 27 May 2006 - 11:44 PM

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* --------------------------------------------------------------------------------------------------------------------------------

Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.


#13 Valuater

Valuater

    www.PayFreeWireless.com

  • MVPs
  • 11,078 posts

Posted 27 May 2006 - 11:49 PM

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)

Posted Image

Clic The Pic!!!


#14 Xenobiologist

Xenobiologist

    Xx Code~Mega xX

  • MVPs
  • 4,729 posts

Posted 27 May 2006 - 11:50 PM

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, 27 May 2006 - 11:51 PM.

Scripts & functions Organize Includes Let Scite organize the include files *newYahtzee 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

#15 Daniel W.

Daniel W.

    I hacked 127.0.0.1 !!!

  • Active Members
  • PipPipPipPipPipPip
  • 434 posts

Posted 27 May 2006 - 11:57 PM

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* --------------------------------------------------------------------------------------------------------------------------------

Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.


#16 Daniel W.

Daniel W.

    I hacked 127.0.0.1 !!!

  • Active Members
  • PipPipPipPipPipPip
  • 434 posts

Posted 28 May 2006 - 12:14 AM

See first post.
There it is :)

€: 2nd site :(

Edited by Daniel W., 28 May 2006 - 12:15 AM.

--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------

Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.


#17 Daniel W.

Daniel W.

    I hacked 127.0.0.1 !!!

  • Active Members
  • PipPipPipPipPipPip
  • 434 posts

Posted 28 May 2006 - 03:04 AM

So
i need your help now
This is the solve function i got already ( thanks razerM for start :) )
AutoIt         
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., 28 May 2006 - 03:10 AM.

--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------

Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.


#18 Daniel W.

Daniel W.

    I hacked 127.0.0.1 !!!

  • Active Members
  • PipPipPipPipPipPip
  • 434 posts

Posted 28 May 2006 - 04:49 PM

New version and hotkeyset is working against me ^^
--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------

Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.


#19 JoshDB

JoshDB

    Universalist

  • Active Members
  • PipPipPipPipPip
  • 251 posts

Posted 28 May 2006 - 06:12 PM

Nice, I really like the style.
Ha, I haven't been on these forums since... 2006, almost. Behold, my legacy signature:My AutoIt idol is Valuater. You know you love him, too.My Stuff: D&D AGoT Tools Suite

#20 Daniel W.

Daniel W.

    I hacked 127.0.0.1 !!!

  • Active Members
  • PipPipPipPipPipPip
  • 434 posts

Posted 28 May 2006 - 08:49 PM

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* --------------------------------------------------------------------------------------------------------------------------------

Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users