Thanks oberkc, your solution works great! I am using a program called "BTProx" on my PC and am triggering two VBScript files for when my phone is detect and goes away.
Here is the VB script that sets the variable on detect:
Option Explicit
Dim restReq, url, userName, password
Set restReq = CreateObject("Microsoft.XMLHTTP")
' REST command to set state (2) variable ID 1 to value 1
url = "http://isy/rest/vars/set/2/1/1"
' If auth is required, replace the userName and password values
' with the ones you use on your ISY
userName = "admin"
password = "admin"
restReq.open "GET", url, false, userName, password
restReq.send
' WScript.echo restReq.responseText
I then used your examples and it works beautifully!
Thanks,
Paul