mesale0077 Posted March 9, 2009 Share Posted March 9, 2009 #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 More sharing options...
nf67 Posted March 9, 2009 Share Posted March 9, 2009 Use GUICtrlSetData($Form1, "0") to set the contents of Form1 to 0. Is this what you mean? Link to comment Share on other sites More sharing options...
PsaltyDS Posted March 9, 2009 Share Posted March 9, 2009 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) 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 More sharing options...
mesale0077 Posted March 9, 2009 Author Share Posted March 9, 2009 (edited) and with the enter key, $ınput1 to $ınput2, how passes and thank you Edited March 9, 2009 by mesale0077 Link to comment Share on other sites More sharing options...
PsaltyDS Posted March 9, 2009 Share Posted March 9, 2009 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. 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 More sharing options...
mesale0077 Posted March 9, 2009 Author Share Posted March 9, 2009 (edited) 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 March 9, 2009 by mesale0077 Link to comment Share on other sites More sharing options...
mesale0077 Posted March 9, 2009 Author Share Posted March 9, 2009 by pressing the tab key,The job of the tab key with enter key, how can we do Link to comment Share on other sites More sharing options...
mesale0077 Posted March 9, 2009 Author Share Posted March 9, 2009 by pressing the tab key,The job of the tab key with enter key, how can we do Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted March 9, 2009 Share Posted March 9, 2009 I don't understand the question, do you want to end a process? Then Use ProcessClose() .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted March 9, 2009 Share Posted March 9, 2009 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. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
mesale0077 Posted March 9, 2009 Author Share Posted March 9, 2009 run("taskkill /im winamp.exe /F") dont work why? Link to comment Share on other sites More sharing options...
mesale0077 Posted March 9, 2009 Author Share Posted March 9, 2009 run("taskkill /im winamp.exe /F") dont work why? Link to comment Share on other sites More sharing options...
Authenticity Posted March 9, 2009 Share Posted March 9, 2009 Try this: run("taskkill /F /IM winamp.exe") Link to comment Share on other sites More sharing options...
bo8ster Posted March 9, 2009 Share Posted March 9, 2009 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 More sharing options...
Authenticity Posted March 9, 2009 Share Posted March 9, 2009 It's still working with Run. Link to comment Share on other sites More sharing options...
Achilles Posted March 9, 2009 Share Posted March 9, 2009 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] 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