Hi I succeed making a code, which i able to generate the shared view:
Imports System.Windows.Forms
Sub Main()
Dim oCommandMgr As CommandManager
oCommandMgr = ThisApplication.CommandManager
Dim oControlDef As ControlDefinition
oControlDef = oCommandMgr.ControlDefinitions.Item("cmdCreateViewShare")
'Generate shared view
oControlDef.Execute2(False)
SendKeys.SendWait("{TAB 4}{ENTER}")
End Sub
I would like to automaticly get the link to the shared view:
By using the keys I am able to do it, but when writing it into ilogic, its not working properly:
'Copy link to clipboard - Is not working
Dim SharedViewLink As String
Clipboard.Clear
SendKeys.SendWait("{TAB 3}{ENTER}")
SharedViewLink = Clipboard.GetText
MessageBox.Show(SharedViewLink, "Shared view link")
Can anyone help to make this last bit fully automated?
Best regards Emil Jakobsen