caramen Posted October 4, 2020 Posted October 4, 2020 (edited) Hello, This reproducer is rdy for try. Escape for quit. Why my borders disappear in multi lines in first RishEdit (into tab) But not the second one. (Push enter to get multi lines and reproduce the despairing) Can I dodge this ? expandcollapse popup#Region "HOtkeySettings" -------------------------------------------------------------------------------------------------------------- HotKeySet("{Escape}", "_Exit") ;Shift-Alt-E to Exit the script ;~ MsgBox(64, "Outloock Ticket", "Raccourcis pour quitter le script: 'ECHAP'!") #EndRegion "Global Const" ------------------------------------------------------------------------------------------------------------- #Region "GuiMainWindows" Global $hGui = GUICreate ("Ticket mail", 800 , 600 -1, -1 ) ;, False, False ) ;~ $GUI_WHNDL=$hGui[0] ;_ $Handles[0] = "GUI windows handle" ;~ $GUI_CLOSEBTN=$hGui[1] ;_ $Handles[1] = "Close button controlID" ;~ $GUI_MINIMIZEBTN=$hGui[2] ;_ $Handles[2] = "Minimize button controlID" #EndRegion "" #Region "Include" --------------------------------------------------------------------------------------------------------------------- #include <GuiComboBoxEx.au3> ;~ #include <MTSkin-UDF.au3> ;~ #include "MTSkin-UDF.au3" #include <OutlookEX.au3> #include <GUIConstants.au3> #include <GUIConstantsEx.au3> #include <MsgBoxConstants.au3> #include <WindowsConstants.au3> #include <GuiListView.au3> #include <Array.au3> #include <StaticConstants.au3> #Include <WinAPI.au3> #include <SendMessage.au3> #include <GuiRichEdit.au3> #EndRegion "" ------------------------------------------------------------------------------------------------------------------------- Global $Tab0 = GUICtrlCreateTab ( 5 , 5 , 790 , 320 ) Global $SubTab1 = GUICtrlCreateTabItem ( "Mode Semi Auto" ) ;~ ========== Global $hLabel4 = GUICtrlCreateLabel ( "Body: " , 20 , 185 , 50 , 50 ) Global $hInput4 = _GUICtrlRichEdit_Create( $hGui, "" , 50 , 170 , 710 , 130 , BitOR($ES_MULTILINE, $WS_VSCROLL, $ES_AUTOVSCROLL ) ) Global $hInput5 = _GUICtrlRichEdit_Create( $hGui, "" , 50 , 370 , 710 , 130 , BitOR($ES_MULTILINE, $WS_VSCROLL, $ES_AUTOVSCROLL ) ) GUISetState ( @SW_SHOW , $hGui ) Func _Exit() ;On quitte le script Exit EndFunc ;==>_Exit While 1 Sleep (10) WEnd Edited October 4, 2020 by caramen My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
Dan_555 Posted October 4, 2020 Posted October 4, 2020 (edited) The problem is, that the RichEdit control is not an AutoIt standard control and therefore it is not included in the Tab definition. Remember to use GUICtrlCreateTabItem("") at end the tab item definition. You can fix the disappearing borderline, by bringing the control at the top of the tab: While 1 $n=GUIGetMsg() if $n=$hInput4 then GUISetState(@SW_SHOW, $hInput4) Sleep (10) WEnd More about tabs you can read here. Will come in handy when you add more tabs. Edited October 4, 2020 by Dan_555 Some of my script sourcecode
caramen Posted October 4, 2020 Author Posted October 4, 2020 (edited) Did you tried ? 😮 It does not work for me : expandcollapse popup#Region "HOtkeySettings" -------------------------------------------------------------------------------------------------------------- HotKeySet("{Escape}", "_Exit") ;Shift-Alt-E to Exit the script ;~ MsgBox(64, "Outloock Ticket", "Raccourcis pour quitter le script: 'ECHAP'!") #EndRegion "Global Const" ------------------------------------------------------------------------------------------------------------- #Region "Include" --------------------------------------------------------------------------------------------------------------------- #include <GuiComboBoxEx.au3> ;~ #include <MTSkin-UDF.au3> ;~ #include "MTSkin-UDF.au3" #include <OutlookEX.au3> #include <GUIConstants.au3> #include <GUIConstantsEx.au3> #include <MsgBoxConstants.au3> #include <WindowsConstants.au3> #include <GuiListView.au3> #include <Array.au3> #include <StaticConstants.au3> #Include <WinAPI.au3> #include <SendMessage.au3> #include <GuiRichEdit.au3> #include <ColorConstants.au3> #EndRegion "" ------------------------------------------------------------------------------------------------------------------------- #Region "GuiMainWindows" Global $hGui = GUICreate ("Ticket mail", 800 , 600 -1, -1 ) ;, False, False ) ;~ $GUI_WHNDL=$hGui[0] ;_ $Handles[0] = "GUI windows handle" ;~ $GUI_CLOSEBTN=$hGui[1] ;_ $Handles[1] = "Close button controlID" ;~ $GUI_MINIMIZEBTN=$hGui[2] ;_ $Handles[2] = "Minimize button controlID" GUICtrlSetBkColor (-1 , $COLOR_RED ) #EndRegion "" Global $Tab0 = GUICtrlCreateTab ( 5 , 5 , 790 , 320 ) GUICtrlSetBkColor (-1 , $COLOR_RED ) Global $SubTab1 = GUICtrlCreateTabItem ( "Mode Semi Auto" ) GUICtrlSetBkColor (-1 , $COLOR_RED ) ;~ ========== Global $hLabel4 = GUICtrlCreateLabel ( "Body: " , 20 , 185 , 50 , 50 ) Global $hInput4 = _GUICtrlRichEdit_Create( $hGui, "" , 50 , 170 , 710 , 130 , BitOR($ES_MULTILINE, $WS_VSCROLL, $ES_AUTOVSCROLL ) ) _GUICtrlRichEdit_SetBkColor ( $hInput4 , 0xE8CCCC ) Global $hInput5 = _GUICtrlRichEdit_Create( $hGui, "" , 50 , 370 , 710 , 130 , BitOR($ES_MULTILINE, $WS_VSCROLL, $ES_AUTOVSCROLL ) ) GUISetState ( @SW_SHOW , $hGui ) _GUICtrlRichEdit_SetText ( $hInput4 , "ALLO" & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & "ALLO" ) Func _Exit() ;On quitte le script Exit EndFunc ;==>_Exit While 1 $n=GUIGetMsg() if $n=$hInput4 then GUISetState(@SW_SHOW, $hInput4) Sleep (10) WEnd I even tried with switch. Edited October 4, 2020 by caramen My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
Nine Posted October 4, 2020 Posted October 4, 2020 (edited) Just put GUISetState ( @SW_SHOW , $hGui ) after _GUICtrlRichEdit_SetText. Remember : 1 hour ago, Dan_555 said: GUICtrlCreateTabItem("") at end the tab item definition Tested on Win7. Edited October 4, 2020 by Nine “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
caramen Posted October 4, 2020 Author Posted October 4, 2020 (edited) It does not work for me : expandcollapse popupHotKeySet("{Escape}", "_Exit") ;Shift-Alt-E to Exit the script ;~ MsgBox(64, "Outloock Ticket", "Raccourcis pour quitter le script: 'ECHAP'!") #include <GuiComboBoxEx.au3> ;~ #include <MTSkin-UDF.au3> ;~ #include "MTSkin-UDF.au3" #include <OutlookEX.au3> #include <GUIConstants.au3> #include <GUIConstantsEx.au3> #include <MsgBoxConstants.au3> #include <WindowsConstants.au3> #include <GuiListView.au3> #include <Array.au3> #include <StaticConstants.au3> #Include <WinAPI.au3> #include <SendMessage.au3> #include <GuiRichEdit.au3> #include <ColorConstants.au3> Global $hGui = GUICreate ("Ticket mail", 800 , 600 -1, -1 ) ;, False, False ) ;~ $GUI_WHNDL=$hGui[0] ;_ $Handles[0] = "GUI windows handle" ;~ $GUI_CLOSEBTN=$hGui[1] ;_ $Handles[1] = "Close button controlID" ;~ $GUI_MINIMIZEBTN=$hGui[2] ;_ $Handles[2] = "Minimize button controlID" Global $Tab0 = GUICtrlCreateTab ( 5 , 5 , 790 , 320 ) Global $SubTab1 = GUICtrlCreateTabItem ( "Mode Semi Auto" ) Global $hLabel4 = GUICtrlCreateLabel ( "Body: " , 20 , 185 , 50 , 50 ) Global $hInput4 = _GUICtrlRichEdit_Create( $hGui, "" , 50 , 170 , 710 , 130 , BitOR($ES_MULTILINE, $WS_VSCROLL, $ES_AUTOVSCROLL ) ) _GUICtrlRichEdit_SetBkColor ( $hInput4 , 0xE8CCCC ) Global $hInput5 = _GUICtrlRichEdit_Create( $hGui, "" , 50 , 370 , 710 , 130 , BitOR($ES_MULTILINE, $WS_VSCROLL, $ES_AUTOVSCROLL ) ) GUISetState ( @SW_SHOW , $hGui ) _GUICtrlRichEdit_SetText ( $hInput4 , "ALLO" & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & "ALLO" ) GUISetState ( @SW_SHOW , $hGui ) Func _Exit() ;On quitte le script Exit EndFunc ;==>_Exit While 1 $n=GUIGetMsg() if $n=$hInput4 then GUISetState(@SW_SHOW, $hInput4) Sleep (10) WEnd Edited October 4, 2020 by caramen My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
Nine Posted October 4, 2020 Posted October 4, 2020 Tested on Win10 and it is working fine for me. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
caramen Posted October 4, 2020 Author Posted October 4, 2020 1 minute ago, Nine said: Tested on Win10 and it is working fine for me. Win 10 too 😕 autoIT downloaded 2 week ago on website. Keyboard:0000040C OS:WIN_10/ CPU:X64 OS:X64 Environment(Language:040C) CodePage:0 utf8 Running:(3.3.14.5) My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
Nine Posted October 4, 2020 Posted October 4, 2020 IDK. Could you try to minimize the window and restore it ? See if that helps. caramen 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
caramen Posted October 4, 2020 Author Posted October 4, 2020 Oh yep it's repairing borders. My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
caramen Posted October 4, 2020 Author Posted October 4, 2020 This fix it : GUISetState ( @SW_SHOW , $hGui ) _GUICtrlRichEdit_SetText ( $hInput4 , "ALLO" & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & "ALLO" ) GUISetState ( @SW_HIDE , $hGui ) GUISetState ( @SW_SHOW , $hGui ) My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
caramen Posted October 4, 2020 Author Posted October 4, 2020 It is less flashy like that : GUICtrlSetState ( $hInput4 , $GUI_DISABLE ) GUICtrlSetState ( $hInput4 , $GUI_ENABLE ) My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
Nine Posted October 4, 2020 Posted October 4, 2020 Maybe try either one : _WinAPI_RedrawWindow or _WinAPI_UpdateWindow “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
caramen Posted October 4, 2020 Author Posted October 4, 2020 Much better yes. And working. My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
Dan_555 Posted October 4, 2020 Posted October 4, 2020 4 hours ago, caramen said: Did you tried ? 😮 Sorry, in my testings i moved the bottom RichEdit box to the same position as the top one, because i created another tab. Later i removed the additional tab, but forgot to place the other control back down. And when i found the seeming solution, i had to go AFK ... Some of my script sourcecode
caramen Posted October 4, 2020 Author Posted October 4, 2020 Np thanks My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
caramen Posted October 4, 2020 Author Posted October 4, 2020 (edited) Next issue x) I tried everything said before and it's not affecting the control... 😮. I can delete and remake the control. May you guys know an other way ? Edited October 4, 2020 by caramen My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
Nine Posted October 4, 2020 Posted October 4, 2020 5 hours ago, Dan_555 said: More about tabs you can read here. Will come in handy when you add more tabs. Already answered, please read the link, it is all very well explained... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
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