Jump to content

Windows 7 Minimize external app problem


martin
 Share

Recommended Posts

  • Moderators

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!

Link to comment
Share on other sites

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
EndFunc

You need

Please respect TeamViewer's software license agreement!

Br,

UEZ

Edited 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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

  • Moderators

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!

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...