Merge branch 'master' of http://dd-vmp07-com04:3000/AppStd/ProcessManager_Client
This commit is contained in:
commit
0d519d470f
@ -129,11 +129,20 @@
|
|||||||
TL_ICON = False
|
TL_ICON = False
|
||||||
End Try
|
End Try
|
||||||
ElseIf oMode.StartsWith("PM.START_CW") Then
|
ElseIf oMode.StartsWith("PM.START_CW") Then
|
||||||
Dim oCaption = oMode.Replace("PM.START_CW=", "")
|
Dim oAfterReplace = oMode.Replace("PM.START_CW=", "")
|
||||||
Try
|
Try
|
||||||
START_CW = True
|
START_CW = True
|
||||||
START_CW_CAPTION = oCaption
|
Dim oSplit As String() = oAfterReplace.Split("~")
|
||||||
|
START_CW_CAPTION = oSplit(0)
|
||||||
|
Try
|
||||||
|
START_CW_LOC_VARIANT = oSplit(1)
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
|
START_CW_LOC_VARIANT = "-1"
|
||||||
|
LOGGER.Warn($"Could not read START_CW_LOCVARIANT : {ex.Message}")
|
||||||
|
End Try
|
||||||
|
|
||||||
|
Catch ex As Exception
|
||||||
|
LOGGER.Warn($"Could not read START_CW Param: {ex.Message}")
|
||||||
START_CW = False
|
START_CW = False
|
||||||
End Try
|
End Try
|
||||||
Else
|
Else
|
||||||
|
|||||||
@ -83,6 +83,7 @@ Module ModuleRuntimeVariables
|
|||||||
|
|
||||||
Public START_CW As Boolean = False
|
Public START_CW As Boolean = False
|
||||||
Public START_CW_CAPTION As String
|
Public START_CW_CAPTION As String
|
||||||
|
Public START_CW_LOC_VARIANT As String = 0
|
||||||
|
|
||||||
Public LICENSE_COUNT As Integer = 0
|
Public LICENSE_COUNT As Integer = 0
|
||||||
Public LICENSE_EXPIRED As Boolean = False
|
Public LICENSE_EXPIRED As Boolean = False
|
||||||
|
|||||||
@ -246,9 +246,25 @@ Public Class frmMain
|
|||||||
|
|
||||||
End Try
|
End Try
|
||||||
If START_CW = True Then
|
If START_CW = True Then
|
||||||
|
Dim oPath
|
||||||
|
Select Case START_CW_LOC_VARIANT
|
||||||
|
Case "-1"
|
||||||
|
oPath = Directory.GetParent(Application.StartupPath).ToString
|
||||||
|
Case "0"
|
||||||
|
oPath = Application.StartupPath.ToString
|
||||||
|
End Select
|
||||||
|
|
||||||
|
oPath &= "\ClipboardWatcher\DD_Clipboard_Watcher.exe"
|
||||||
|
If File.Exists(oPath) Then
|
||||||
bbtniCW.Caption = START_CW_CAPTION
|
bbtniCW.Caption = START_CW_CAPTION
|
||||||
|
bbtniCW.Tag = oPath
|
||||||
bbtniCW.Visibility = DevExpress.XtraBars.BarItemVisibility.Always
|
bbtniCW.Visibility = DevExpress.XtraBars.BarItemVisibility.Always
|
||||||
RibbonPageGroup4.Visible = True
|
RibbonPageGroup4.Visible = True
|
||||||
|
Else
|
||||||
|
LOGGER.Warn($"Error in CW-Button init: Could not find CW.Exe {oPath}")
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
@ -2569,16 +2585,14 @@ Public Class frmMain
|
|||||||
|
|
||||||
Private Sub bbtniCW_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles bbtniCW.ItemClick
|
Private Sub bbtniCW_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles bbtniCW.ItemClick
|
||||||
Try
|
Try
|
||||||
Dim oIndex = Application.StartupPath.ToString.LastIndexOf("\")
|
|
||||||
Dim oParentPath = Directory.GetParent(Application.StartupPath) '.ToString.Substring(0, oIndex)
|
If File.Exists(bbtniCW.Tag) Then
|
||||||
Dim oPath = oParentPath.ToString & "\ClipboardWatcher\DD_Clipboard_Watcher.exe"
|
|
||||||
If File.Exists(oPath) Then
|
|
||||||
Dim MyProcess As New Process()
|
Dim MyProcess As New Process()
|
||||||
MyProcess.StartInfo.FileName = oPath
|
MyProcess.StartInfo.FileName = bbtniCW.Tag
|
||||||
MyProcess.Start()
|
MyProcess.Start()
|
||||||
Else
|
Else
|
||||||
LOGGER.Warn($"Clipboardwatcher-Exe not found [{oPath}]")
|
LOGGER.Warn($"Clipboardwatcher-Exe not found [{bbtniCW.Tag}]")
|
||||||
MsgBox("Global Hook/Clipboard Watcher could not be started!", MsgBoxStyle.Exclamation, ADDITIONAL_TITLE)
|
MsgBox("Clipboard Watcher could not be started!", MsgBoxStyle.Exclamation, ADDITIONAL_TITLE)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user