Sign in to follow this  
Followers 0
Aktonius

Any way to visually mark Active Window?

5 posts in this topic

I was thinking there is a way to draw/change border of a window but that doesnt seem to be possible trough winapi. Do you people know of any trick to at least in any other way visually mark an active window so user of the app can tell which window is active?

Share this post


Link to post
Share on other sites



Hi Aktonius,

did you use the search function of the forum? I think I once found an example of what you are looking for in the Example Scripts section. :huh2:


Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]

Share this post


Link to post
Share on other sites

I have no clue what you want. maybe you should try to explain it in more detail. But maybe you want this:

there can only be 1 active window.

you can use this function to obtain Title of an active window

WinActive

then you make a loop say each 100 milliseconds you call WinActive

or you can put all this into a function & if you press a hotkey winactive will be called & you will know what window is active:

While 1
     Sleep(500)
    $WinActive = WinActive("[ACTIVE]")
    ConsoleWrite($WinActive & @CRLF)
 WEnd

My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]

Share this post


Link to post
Share on other sites

Maybe one?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Maybe one?

thanks a bunch pal

Share this post


Link to post
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
Sign in to follow this  
Followers 0