SpecialCoder Posted May 1, 2011 Share Posted May 1, 2011 I Have a Problem i Want To Make asimple Calculator like the photoi want to complet my code to do itmy 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 Wendand i want to Change The Main Icon , But How??? Link to comment Share on other sites More sharing options...
wakillon Posted May 1, 2011 Share Posted May 1, 2011 Try GuiSetIcon AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
Jayson Posted May 1, 2011 Share Posted May 1, 2011 (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 ! Edited May 1, 2011 by Jayson Link to comment Share on other sites More sharing options...
SpecialCoder Posted May 1, 2011 Author Share Posted May 1, 2011 thanks also i need the code that i will write it in the program for inputbox 1 inputbox 2 inputbox 3 button 1 Link to comment Share on other sites More sharing options...
wakillon Posted May 1, 2011 Share Posted May 1, 2011 (edited) See GUICtrlRead for read input value ! Edit : and for button, see example in helpfile for GUICtrlCreateButton. Edited May 1, 2011 by wakillon AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
SpecialCoder Posted May 1, 2011 Author Share Posted May 1, 2011 tnanks but can u give me An Example fOR The Code Link to comment Share on other sites More sharing options...
wakillon Posted May 1, 2011 Share Posted May 1, 2011 tnanks but can u give me An Example fOR The CodeCode is in the GUICtrlCreateButton Example of the helpfile ! AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
somdcomputerguy Posted May 1, 2011 Share Posted May 1, 2011 @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. 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