Jump to content

Recommended Posts

Posted (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 ?

#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 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 - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Posted (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 by Dan_555

Some of my script sourcecode

Posted (edited)

Did you tried ? 😮 

It does not work for me :

#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. 

 

image.png.5912e7bc20abe356eab0b0b1a0606b88.png

Edited 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 - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Posted (edited)
Posted (edited)

It does not work for me :

HotKeySet("{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 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 - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Posted
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 - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Posted

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 - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Posted

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 - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Posted

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 - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Posted

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 - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Posted
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

Posted

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 - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Posted (edited)

Next issue x)

image.png.b7b8b6760cd74729a8b2dcfe7a34c6d4.png

image.png.991072f408d830477154429ffb02683a.png

image.png.2c85c1079f3160b402ce4455b79a3cec.png

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 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 - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...