Jump to content
Sign in to follow this  
mesale0077

code help

Recommended Posts

mesale0077

#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

Share this post


Link to post
Share on other sites
nf67

Use

GUICtrlSetData($Form1, "0")

to set the contents of Form1 to 0.

Is this what you mean?

Share this post


Link to post
Share on other sites
PsaltyDS

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

Share this post


Link to post
Share on other sites
mesale0077

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

and thank you

Edited by mesale0077

Share this post


Link to post
Share on other sites
PsaltyDS

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

Share this post


Link to post
Share on other sites
mesale0077

how the current program ends,run(taskill.exe ??????? flashget.exe) dont run why is problem, end program and The job of the tab key with enter key, how can we do

Edited by mesale0077

Share this post


Link to post
Share on other sites
mesale0077

by pressing the tab key,The job of the tab key with enter key, how can we do

Share this post


Link to post
Share on other sites
mesale0077

by pressing the tab key,The job of the tab key with enter key, how can we do

Share this post


Link to post
Share on other sites
AdmiralAlkex

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.

Share this post


Link to post
Share on other sites
mesale0077

run("taskkill /im winamp.exe /F")

dont work

why?

Share this post


Link to post
Share on other sites
mesale0077

run("taskkill /im winamp.exe /F")

dont work

why?

Share this post


Link to post
Share on other sites
Authenticity

Try this:

run("taskkill /F /IM winamp.exe")

Share this post


Link to post
Share on other sites
bo8ster

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]

Share this post


Link to post
Share on other sites
Authenticity

It's still working with Run.

Share this post


Link to post
Share on other sites
Achilles

This just a Forum rule of some sorts: When you post a topic be descriptive. Don't just say "Code Help" Give some sort of short explanation. I've noticed you've already made two topics with just "Code Help" for the title...


My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.