Vindicator209 Posted March 9, 2007 Share Posted March 9, 2007 heyas, I was wondering how I could get a script to continue calculating Pi, this is my ity bity script: #include <GuiConstants.au3> GuiCreate("MyGUI", 574, 415,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS)) $Edit_1 = GuiCtrlCreateEdit("Edit1", 10, 10, 550, 370) $Button_2 = GuiCtrlCreateButton("Generate some Pi!", 10, 390, 550, 20) GuiSetState() While 1 $msg = GuiGetMsg() Select Case $msg = $Button_2 GUICtrlSetData($Edit_1,22/7) Case $msg = $GUI_EVENT_CLOSE ExitLoop Case Else ;;; EndSelect WEnd Exit I tried to get it to give me a streaming Pi, but it stops at 3.14285714285714, I was wondering how I could get it to continue calculating it.... also, I realized that it would never give me Pi untill it finishes the caculation (never), so i was also wondering how I could get it to stream it to the edit box WHILE its calculationg? possible? ~Cheers MethodZero [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 9, 2007 Moderators Share Posted March 9, 2007 Do a search for your pi calculations on the forum (erifash I believe was the username that started the thread) on how to get things done. I believe Larry posted a viable solution. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Vindicator209 Posted March 9, 2007 Author Share Posted March 9, 2007 k cool, ill check it out thnks [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now