SirDarknight1200 Posted June 22, 2013 Author Posted June 22, 2013 Whatever! I just wanna know how to make this!!!
Mun Posted June 22, 2013 Posted June 22, 2013 http://www.autoitscript.com/autoit3/docs/guiref/GUIRef.htm You won't find golden spoon with silver platter.
Moderators Melba23 Posted June 22, 2013 Moderators Posted June 22, 2013 SirDarknight1200,Welcome to the AutoIt forum. Reading the Help file (at least the first few sections - Using AutoIt, Tutorials and the first couple of References) will help you enormously. You should also look at this excellent tutorial - you will find other tutorials in the Wiki (the link is at the top of the page). There are even video tutorials on YouTube if you prefer watching to reading. I know you want to start coding NOW, but a little study will save you a lot of trouble later on, believe me. Good luck - and you know where we are if you run into problems. But do please search the Help file first - it has most of the answers in there somewhere! M23 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
TheSaint Posted June 22, 2013 Posted June 22, 2013 What Melba23 said, plus, if you have trouble coding, then most volunteers/regulars here are only too happy to help, if you provide what you have coded so far. We help those, who help themselves. Call that our motto or mantra if you like, as it is often a pre-requisite to getting any help ... that and diligently searching both Help file and Forum. Make sure brain is in gear before opening mouth! Remember, what is not said, can be just as important as what is said. Spoiler What is the Secret Key? Life is like a Donut If I put effort into communication, I expect you to read properly & fully, or just not comment. Ignoring those who try to divert conversation with irrelevancies. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)
guinness Posted June 22, 2013 Posted June 22, 2013 You might want to look in Melba's signature as well for the GUIExtender UDF, though prior knowledge of AutoIt is required. 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
UEZ Posted June 22, 2013 Posted June 22, 2013 (edited) Here something you can start with:expandcollapse popup#include <GuiRichEdit.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> Opt("GUIResizeMode", 0) $hGUI = GUICreate("Test", 440, 306) $Icon1 = GUICtrlCreateIcon("shell32.dll", -98, 14, 12, 32, 32) GUICtrlSetResizing (-1, $GUI_DOCKALL) $Label1 = GUICtrlCreateLabel("Windows has recovered from an unexpected shutdown", 64, 20, 314, 17) GUICtrlSetResizing (-1, $GUI_DOCKALL) GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif") $Button1 = GUICtrlCreateButton(ChrW(9650), 14, 89, 22, 20) GUICtrlSetResizing (-1, $GUI_DOCKALL) GUICtrlSetFont(-1, 9.5, 400, 0, "MS Sans Serif", 4) $Label2 = GUICtrlCreateLabel("Windows can check online for a solution to the problem.", 64, 48, 269, 17) GUICtrlSetResizing (-1, $GUI_DOCKALL) GUICtrlSetFont(-1, 8, 400, 0, "MS Sans Serif") $Label3 = GUICtrlCreateLabel("Hide problem details", 40, 92, 129, 17) GUICtrlSetResizing (-1, $GUI_DOCKALL) $Button2 = GUICtrlCreateButton("Check for solution", 223, 89, 120, 25) GUICtrlSetResizing (-1, $GUI_DOCKALL) $Button3 = GUICtrlCreateButton("Cancel", 353, 89, 75, 25) GUICtrlSetResizing (-1, $GUI_DOCKALL) $Label4 = GUICtrlCreateLabel("Label4", 0, 130, 446, 2, $SS_ETCHEDHORZ) GUICtrlSetResizing (-1, $GUI_DOCKALL) $hRichEdit = _GUICtrlRichEdit_Create($hGUI, "", 16, 144, 409, 153) _GUICtrlRichEdit_AppendText($hRichEdit, "{\rtf1\utf8\cf1 {\fs18 {\b Problem signature:}\b0}\cf0 \line}") _GUICtrlRichEdit_InsertText($hRichEdit, " Problem event name:" & @TAB & @TAB & @TAB & "Bluescreen" & @CRLF) _GUICtrlRichEdit_InsertText($hRichEdit, " OS version:" & @TAB & @TAB & @TAB & @TAB & "6.1.71600.2.0.0.2256.1" & @CRLF) _GUICtrlRichEdit_InsertText($hRichEdit, " Locale ID:" & @TAB & @TAB & @TAB & @TAB & "1033") GUISetState(@SW_SHOW) $bDir = 1 While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $Button1 $aPos = WinGetPos($hGUI) If $bDir = 1 Then WinMove($hGUI, "", $aPos[0], $aPos[1], 446, 155) $bDir *= -1 GUICtrlSetData($Button1, ChrW(9660)) GUICtrlSetData($Label3, "Show problem details") Else WinMove($hGUI, "", $aPos[0], $aPos[1], 446, 306) $bDir *= -1 GUICtrlSetData($Button1, ChrW(9650)) GUICtrlSetData($Label3, "Hide problem details") EndIf EndSwitch WEndBr,UEZ Edited June 22, 2013 by UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
SirDarknight1200 Posted June 23, 2013 Author Posted June 23, 2013 Thankx a lot guys!! Really helpful and specially thanks to UEZ
SirDarknight1200 Posted June 23, 2013 Author Posted June 23, 2013 (edited) Sorry, but what I want to know is how to make the form read-only and make the buttons workable. Check for Solution will go to a website and Cancel will close the gui Edited June 23, 2013 by SirDarknight1200
NewPlaza Posted June 23, 2013 Posted June 23, 2013 This would make it read only. $hRichEdit = _GUICtrlRichEdit_Create($hGUI, "", 16, 144, 409, 153, BitOR($ES_MULTILINE, $ES_READONLY))
SirDarknight1200 Posted June 23, 2013 Author Posted June 23, 2013 Thanks and how to make the cursor invisible inside the box?
NewPlaza Posted June 23, 2013 Posted June 23, 2013 The example UEZ provided it more then enough. Simply assign the buttons to do something. To cancel; Case $Button3 Exit
NewPlaza Posted June 23, 2013 Posted June 23, 2013 Thanks and how to make the cursor invisible inside the box? Not sure..Sorry. Beyond my limited scope.
SirDarknight1200 Posted June 23, 2013 Author Posted June 23, 2013 How to add a scroll bar?(Vertically)
DW1 Posted June 23, 2013 Posted June 23, 2013 How to add a scroll bar?(Vertically) $hRichEdit = _GUICtrlRichEdit_Create($hGUI, "", 16, 144, 409, 153, BitOR($ES_MULTILINE, $ES_READONLY, $WS_VSCROLL)) AutoIt3 Online Help
SirDarknight1200 Posted June 23, 2013 Author Posted June 23, 2013 I'm really grateful to you guys. You're so helpful and good.Thanks
SirDarknight1200 Posted June 23, 2013 Author Posted June 23, 2013 Sorry but it doesn't work >"H:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Tonmoy\GUI_err.au3" C:\Tonmoy\GUI_err.au3 (27) : ==> Variable used without being declared.: $hRichEdit = _GUICtrlRichEdit_Create($hGUI, "", 16, 144, 409, 153, BitOR($ES_MULTILINE, $ES_READONLY, $WS_VSCROLL)) $hRichEdit = _GUICtrlRichEdit_Create($hGUI, "", 16, 144, 409, 153, BitOR($ES_MULTILINE, $ES_READONLY, ^ ERROR >Exit code: 1 Time: 0.333
NewPlaza Posted June 23, 2013 Posted June 23, 2013 Add this to the top of your script; #include <WindowsConstants.au3>
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