dragonheard Posted July 25, 2012 Posted July 25, 2012 ok i want to make a gui but ive never done anything like this before so please explain it in understandable english and dont post things like : "rubbish thread even a noob can do that" if ur here to post that then go away please explain the following making the gui appear (i had this but it would dissapear in an instant) making an input box (so like you have a question of how old is santaclaus.. you can type in it) these are the things i really like to know at the moment as i wanna learn this i know atleast one of you is gonna say read the help files... i did and i was like wth did i just read? thanks, dragonheurt
BigDod Posted July 25, 2012 Posted July 25, 2012 Have a look at the tutorials on Wiki Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother
somdcomputerguy Posted July 25, 2012 Posted July 25, 2012 The working example code in the Help file should help you out as well. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
Moderators Melba23 Posted July 25, 2012 Moderators Posted July 25, 2012 dragonheard,No-one minds you being new to coding (we all were at one point ) but what you are asking is extremely basic.Reading the Help file (at least the first few sections - Using AutoIt, Tutorials and the first couple of References) should help you understand how AutoIt works. The excellent tutorials that you will find here and here will also help you get a grip on the very simple script you are trying to produce. If after reading those various reference works you cannot understand how to do what you want then, to be blunt, you need to consider if coding is for you. Coding requires a certain ability for logical thought and problem solving - if you cannot find the answer to this simple problem within those tutorials then you cannot hope to advance to more complicated scripts. No-one here is pushing you away, but we are not going to provide a personalised tutorial service for you. M23P.S. You might like to look at InputBox in the Help file. Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Zedna Posted July 25, 2012 Posted July 25, 2012 Also you will get more response when you post small reproducing script. Resources UDF ResourcesEx UDF AutoIt Forum Search
Attckdog Posted July 26, 2012 Posted July 26, 2012 If after reading those various reference works you cannot understand how to do what you want then, to be blunt, you need to consider if coding is for you. Coding requires a certain ability for logical thought and problem solving - if you cannot find the answer to this simple problem within those tutorials then you cannot hope to advance to more complicated scripts. No-one here is pushing you away, but we are not going to provide a personalised tutorial service for you. Read the help files, Reread, and read again! watch a few tutorial videos on youtube even.Where as this forum is extremely helpful most of people here aren't going to help those who don't provide any effort. Always post your attempts as they make it easy to see what you want and what you're doing wrong.Straight from the Documentation. Even includes an example. http://www.autoitscript.com/autoit3/docs/functions/InputBox.htmIf you have trouble understanding the wording or terminology be specific by what confuses you.I'd much rather teach you how to read the documentation then teach you how to correctly use each function. Attck n1maS and Xandy 2 A true renaissance man
dragonheard Posted July 26, 2012 Author Posted July 26, 2012 i downloaded the how to script with autoit package thanks for the links though i have a few problems 1: english isnt my main language so yea i do speak it sort of but i dont understand every existing word... 2: in 1 script the script had to wait on a window with text (notepad) so i wrote: winwaitactive ("Naamloos - Kladblok","Wilt u de wijzigingen die zijn aangebracht in Naamloos opslaan?" and then i wrote send("!n") but it doesnt do anything...
somdcomputerguy Posted July 26, 2012 Posted July 26, 2012 Please post the whole script, so you will receive more help. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
dragonheard Posted July 26, 2012 Author Posted July 26, 2012 (edited) there go's run ("notepad.exe") WinWaitActive ("Naamloos - Kladblok") send ("this is some text") winclose ("Naamloos - Kladblok") WinWaitActive("Naamloos - Kladblok","Wilt u Wijzigingen die zijn aangebracht in Naamloos opslaan?") send("!n") Edited July 26, 2012 by dragonheard
Xandy Posted July 26, 2012 Posted July 26, 2012 (edited) run ("notepad.exe") ;WinWaitActive ("Naamloos - Kladblok") WinWaitActive ("Untitled - Notepad");the caption for your notepad in the taskbar send ("this is some text") winclose ("Untitled - Notepad");same as the above caption WinWaitActive("Notepad","");dialog window title of warning before closing notepad send("!n") This works for me, however this is an English version of the debug. Never used winclose() before now, thanks for the heads up awareness. I suspect you are not matching the name string criteria properly. So that the program just waits forever attempting to match a string that isn't going to occur. There is a window title match mode option too, let me find that for you real quick. The match mode command is here: opt("WinTitleMatchMode", $x) Alters the method that is used to match window titles during search operations. 1 = Match the title from the start (default) 2 = Match any substring in the title 3 = Exact title match 4 = Advanced mode, see Window Titles & Text (Advanced) -1 to -4 = force lower case match according to other type of match. where $x is -4 to 4 depending on your choice of match mode. So if you are have trouble with the character specification something like: opt("WinTitleMatchMode", -1); could help by ignoring case of your specification. Edited July 26, 2012 by Xandy Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker)
guinness Posted July 26, 2012 Posted July 26, 2012 Try to use info which is consistent throughout different variations of Windows. From the beta version of the help file, notice how I use 'CLASS' description instead of the title of the window. Example() Func Example() ; Run Notepad Run("notepad.exe") ; Wait 10 seconds for the Notepad window to appear. WinWait("[CLASS:Notepad]", "", 10) ; Wait for 2 seconds to display the Notepad window. Sleep(2000) ; Close the Notepad window using the classname of Notepad. WinClose("[CLASS:Notepad]") EndFunc ;==>Example UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018
dragonheard Posted July 27, 2012 Author Posted July 27, 2012 hmmm i am gonna try that looks promising. thanks, dragonheurt
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