Jump to content

code help


Recommended Posts

#include <ButtonConstants.au3>

#include <EditConstants.au3>

#include <GUIConstantsEx.au3>

#include <StaticConstants.au3>

#include <WindowsConstants.au3>

$Form1 = GUICreate(" Form1 ", 245, 226, 392, 199)

$Label1 = GUICtrlCreateLabel("1number 1:", 16, 32, 31, 17)

$Input1 = GUICtrlCreateInput("", 8, 56, 185, 21)

$Label2 = GUICtrlCreateLabel("2number 2:", 16, 96, 30, 17)

$Input2 = GUICtrlCreateInput("", 8, 120, 185, 21)

$Button1 = GUICtrlCreateButton("ok", 16, 176, 65, 25, $WS_GROUP)

$Button2 = GUICtrlCreateButton("exit", 136, 176, 65, 25, $WS_GROUP)

GUISetState(@SW_show)

While 1

$nMsg = GUIGetMsg()

Switch $nMsg

case $Button1

GUISetState(@SW_HIDE, $Form1)

$eee=GUICtrlRead($Input1)

$fff=GUICtrlRead($Input2)

$ggg=$eee*$fff

MSGBOX (64,"example PRO",$ggg)

GUISetState(@SW_SHOW, $Form1)

Case $GUI_EVENT_CLOSE,$Button2

Exit

EndSwitch

WEnd

this code

How do I return to zero value in forum1 again when forum1 $Input1, $Input2 value does not reset what I can do

How to reset the values, the values forum1 looks, looks should not be supplied free to be written for $Input1, $Input2

thank you already

Link to comment
Share on other sites

CODE
#include <ButtonConstants.au3>

#include <EditConstants.au3>

#include <GUIConstantsEx.au3>

#include <StaticConstants.au3>

#include <WindowsConstants.au3>

$Form1 = GUICreate(" Form1 ", 245, 226, 392, 199)

$Label1 = GUICtrlCreateLabel("1number 1:", 16, 32, 31, 17)

$Input1 = GUICtrlCreateInput("", 8, 56, 185, 21)

$Label2 = GUICtrlCreateLabel("2number 2:", 16, 96, 30, 17)

$Input2 = GUICtrlCreateInput("", 8, 120, 185, 21)

$Button1 = GUICtrlCreateButton("ok", 16, 176, 65, 25, $WS_GROUP)

$Button2 = GUICtrlCreateButton("exit", 136, 176, 65, 25, $WS_GROUP)

GUISetState(@SW_show)

While 1

$nMsg = GUIGetMsg()

Switch $nMsg

case $Button1

GUISetState(@SW_HIDE, $Form1)

$eee=GUICtrlRead($Input1)

$fff=GUICtrlRead($Input2)

$ggg=$eee*$fff

MSGBOX (64,"example PRO",$ggg)

GUISetState(@SW_SHOW, $Form1)

Case $GUI_EVENT_CLOSE,$Button2

Exit

EndSwitch

WEnd

this code

How do I return to zero value in forum1 again when forum1 $Input1, $Input2 value does not reset what I can do

How to reset the values, the values forum1 looks, looks should not be supplied free to be written for $Input1, $Input2

thank you already

Perhaps just this:
GUICtrlSetData($Input1, 0)
GUICtrlSetData($Input2, 0)

:P

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

and with the enter key, $ınput1 to $ınput2, how passes

and thank you

I'm not sure what you are asking, or even if that was a question... but perhaps you want to read the value from $Input1 and put it in $Input2?

$sValue = GuiCtrlRead($Input1)
GuiCtrlSetData($Input2, $sValue)

If that is supposed to happen when you click 'OK' or hit ENTER, then you could make the OK button the default action by setting the $BS_DEFPUSHBUTTON style when creating that button.

If this is not what you meant, perhaps you should post your native language and perhaps someone could try to help you in that language.

:P

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

That question doesn't make any sense. Please ask someone that knows english to write the question for you, or post it in your native language and maybe someone understands it.

Link to comment
Share on other sites

have a look at Run in the help file - taskkill is a dos command.

Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]

Link to comment
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
 Share

  • Recently Browsing   0 members

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