Sign in to follow this  
Followers 0
SpecialCoder

Need Help ( Simple calculator )

8 posts in this topic

I Have a Problem

i Want To Make asimple Calculator like the photo

Posted Image

i want to complet my code to do it

my code is

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>

GUICreate("Calculator", 220, 291, -1, -1)
GuiCtrlCreateButton(" The Result", 70, 180, 100, 30) 


$Input1 = GUICtrlCreateInput("This is Input Box", 16, 72, 185, 21)
$Input2 = GUICtrlCreateInput("This is Input Box", 16, 102, 185, 21)
$Input3 = GUICtrlCreateInput("This is Input Box", 16, 142, 185, 21)

GUISetState(@SW_SHOW)

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
  Case $GUI_EVENT_CLOSE
   Exit



EndSwitch
Wend

and i want to Change The Main Icon , But How???

Share this post


Link to post
Share on other sites



Try GuiSetIcon


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

For changing the icon you can try this (you need to change the location)

Global $iconfile = @ScriptDir&'\scan.ico'

$gui = GUICreate("Icon", 510, 314)
GUISetIcon($iconfile, -1, $gui)

For the other part try something at least ! Posted Image

Edited by Jayson

Share this post


Link to post
Share on other sites

thanks

also i need the code that i will write it in the program for

inputbox 1

inputbox 2

inputbox 3

button 1

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

See GUICtrlRead for read input value ! Posted Image

Edit : and for button, see example in helpfile for GUICtrlCreateButton.

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

tnanks

but can u give me An Example fOR The Code

Share this post


Link to post
Share on other sites

tnanks

but can u give me An Example fOR The Code

Code is in the GUICtrlCreateButton Example of the helpfile !


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

@SpecialCoder - Welcome the the Forum! Already most if not all of the functions you'll need for this project have been stated in this thread, so from the example codes in the Help file, put some code together and when (if?) you run into problems, ask away here and you'll get all kinds of replies! I suggest you look at as well .. Well I was gonna say Conditional and Loop statements (and Operators) in the Help file, but now I'll just say the whole Language Reference section.. Actually you know, the whole Help file is good reading..


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
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
Sign in to follow this  
Followers 0