#Region Shared Files
#CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Shared Files" "..\Files"
'Ctrl + click to sync files: ide://run?file=%WINDIR%\System32\Robocopy.exe&args=..\..\Shared+Files&args=..\Files&FilesSync=True
#End Region
'Ctrl + click to export as zip: ide://run?File=%B4X%\Zipper.jar&Args=Project.zip
Sub Class_Globals
Private Root As B4XView
Private xui As XUI
Private WebView1 As WebView
Dim fx As JFX
Dim timer1 As Timer
End Sub
Public Sub Initialize
B4XPages.GetManager.LogEvents = True
End Sub
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
timer1.Initialize("Send", 1000)
timer1.Enabled=True
WebView1.Top=0
WebView1.Left=0
End Sub
Sub Send_tick
timer1.Enabled=False
Dim url As String
Dim data1 As String
data1=fx.Clipboard.GetString
'''''url="http://www.mywebsite.com.mx/concierge/map.html?" & data1
url="http://www.hbo.com"
WebView1.LoadUrl (url)
End Sub
'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
Private Sub Button1_Click
ExitApplication
End Sub