NetTalk Central

Author Topic: Open windows after using NetWebClient  (Read 3951 times)

mjusic

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Open windows after using NetWebClient
« on: October 10, 2016, 03:38:57 PM »
I have a program that detects open windows when performing a specific task.
I added a procedure that sends some json data with netWebClient.
After that call there is an additional window left open (hidden?).
How can I close it or how can I detect it?

The code to check open windows:


!Window1              &WINDOW
!Window2              &WINDOW
     
WO# = false     
Window1 &= System{PROP:Target}     
loop J# = 1 to 64
   SetTarget(,J#) 
   Window2 &= System{PROP:Target}
   if not Window2 &= Window1
      WO# = true
      break
   end
end
SetTarget()

if WO# = true
   message('open window detected')
end


mjusic

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: Open windows after using NetWebClient
« Reply #1 on: October 11, 2016, 01:06:48 AM »
Found it !

It's the "NetTalk DLL WinSock Call Back Window" that stays open.

Closed it with  NetCloseCallBackWindow() after the ThisWebClient.Kill()