Solved! Go to Solution.
Application.MessageBox "ArcPad is closed!", apOKOnly, "App Close"
<?xml version="1.0" encoding="UTF-8"?> <ArcPad> <APPLET> <SYSTEMOBJECTS> <APPLICATION onshutdown="Application.MessageBox "Hello world!", apOKOnly, "Logged Out""/> </SYSTEMOBJECTS> </APPLET> </ArcPad> <?xml version="1.0" encoding="UTF-8"?> <ArcPad> <APPLET onload="Call Login()" name=""> [...] <SYSTEMOBJECTS> <APPLICATION onshutdown="Application.MessageBox "ArcPad is closed!", apOKOnly, "App Close""/> </SYSTEMOBJECTS> </APPLET> <SCRIPT src="Login.vbs" language="vbscript"/> </ArcPad>
The question is how to implement this? It is implemented the same way that you had for your login code working. I guess you had your login code under OnStartup Event?!
<?xml version="1.0" encoding="UTF-8"?> <ArcPad> <APPLET onload="Call Login()" name=""> [...] </APPLET> <SCRIPT src="Login.vbs" language="vbscript"/> </ArcPad>
Sub Login() Application.MessageBox "Hello world!", apOKOnly, "Logged In" End Sub
Application.MessageBox "ArcPad is closed!", apOKOnly, "App Close"
<?xml version="1.0" encoding="UTF-8"?> <ArcPad> <APPLET> <SYSTEMOBJECTS> <APPLICATION onshutdown="Application.MessageBox "Hello world!", apOKOnly, "Logged Out""/> </SYSTEMOBJECTS> </APPLET> </ArcPad> <?xml version="1.0" encoding="UTF-8"?> <ArcPad> <APPLET onload="Call Login()" name=""> [...] <SYSTEMOBJECTS> <APPLICATION onshutdown="Application.MessageBox "ArcPad is closed!", apOKOnly, "App Close""/> </SYSTEMOBJECTS> </APPLET> <SCRIPT src="Login.vbs" language="vbscript"/> </ArcPad>
Thanks a lot, that is the example I was looking for!