Ok I am not using windows 7 but rather windows XPe on a Neoware E100 ThinClient whos sole purpose is a MagicJack PC, however I like to remote in from Time to Time to see logs of callers and such... so i am trying to use TeamViewer and am having issues. There is a monitor only connected to this PC so that we can see who is calling and if there are voicemails and such. The issue is that when I remote in and check everything is fine but then when I end the session the TeamViewer nag screen pops up and the main Teamviewer Window pops up. I am using the latest version of TeamViewer 7.0.13989 and the latest version of AutoIt.
Here is my code for the Pop Up Nag Screen
Local $tvHandle = 0
while True
$tvHandle = WinWaitActive("Sponsored session")
if Not ($tvHandle = 0) Then
Send("{Enter}")
EndIf
WEnd
I compiled it into an exe which seams to work for the nag screen, however I can't seem to minimize or better yet close the TeamViewer window but leave it in the windows tray. I have tried several methods with Autoit from information I have found in these forums. I even started my own thread however the only answer someone gave me was to use Remote Desktop, the problem is when I use Remote Desktop and end my session it logs out of windows which caused the MagicJack not to work then I dont have Phone service.
So I can't seem to close the TeamViewer window on the Client (MagicJack) box when I end my TeamViewer session. So I turned to AutoIt and here is my latest attempt. Now I am getting an error when running the script on line 5.
#include
$pid = ProcessExists("Teamviewer.exe")
If Not $pid Then WinWaitActive($pid)
WinSetState($pid, "",@SW_HIDE)
I am a total noob, this is my first shot at AutoIt or scripting at all, so please be aware when replying. I have thought about other programs like teamviewer such as LogMeIn but I like the fact that TeamViewer is free for residential and that there is a free android app as well. Any suggestions would be nice. I really like TeamViewer but at this point I need something free theat I can use from my phone and doesnt leave a winddow when I end my session.