compgeek Posted August 6, 2012 Posted August 6, 2012 Yes that does work however, I want it to wait until the process is open, becuse I want it to automatically close the window when i log off. because I can locally run the script. I hope that makes sense. Like my nag script is Local $tvHandle = 0 while True $tvHandle = WinWaitActive("Sponsored session") if Not ($tvHandle = 0) Then Send("{Enter}") EndIf WEnd
Moderators JLogan3o13 Posted August 6, 2012 Moderators Posted August 6, 2012 compgeek, I am just getting caught up as I've been away from the forum for a few days now. It appears you are receiving plenty of help here in the topic. Please ask your questions here instead of PM'ing them, you'll receive help from a much larger number of people that way "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
compgeek Posted August 7, 2012 Posted August 7, 2012 Jlogan i will post here but i just wanted to someone up that already worked on this topic. Sorry to have bothered you.
UEZ Posted August 7, 2012 Posted August 7, 2012 (edited) Try this:#include <WinAPIEx.au3> HotKeySet("{ESC}", "_Exit") Do TV() Until False Func TV($sWinName = "Sponsored session") Do $aList = WinList($sWinName) Until Not Sleep(500) Or $aList[0][0] ControlClick($sWinName, "", "[CLASS:Button; INSTANCE:4]") Sleep(250) $pid = ProcessExists("Teamviewer.exe") If Not $pid Then Exit MsgBox(16, "Error", "Teamviewer.exe not found!", 10) $aRes = _WinAPI_EnumProcessWindows($pid) $hWnd = $aRes[1][0] WinSetState($hWnd, "", @SW_MINIMIZE) Return 1 EndFuncYou need Please respect TeamViewer's software license agreement!Br,UEZ Edited August 7, 2012 by UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
Moderators JLogan3o13 Posted August 7, 2012 Moderators Posted August 7, 2012 Jlogan i will post here but i just wanted to someone up that already worked on this topic. Sorry to have bothered you.Not a bother, just a friendly suggestion This forum has a huge number of people that support it, many of them much more intelligent than I (see the post right above this one). When you PM, you're limiting your pool of talent to just me rather than getting the full support of the forum. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
UEZ Posted August 7, 2012 Posted August 7, 2012 @JLogan3o13: I was also PMed Br, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
compgeek Posted August 8, 2012 Posted August 8, 2012 Hello all, The problem still exists, it looks like to computers/copntacts portion closed but on the main Teamviewer window.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now