Jump to content

Recommended Posts

Posted

Im sure this must be an easy question, but how do I get the current active window ID?

Trying to write a small app which will take a screenshot of whatever window is currently selected and put it to clipboard (I can do everything but detect the current window)

Also, am I right in saying this wont work for Dialog boxes etc?

Posted

When the Window is currently selected why do you need the Process id ?

$LastActivePid = WinGetProcess("[ACTIVE]")

[center]I want to change the world ...., but I don't have the source code xD[/center]

Posted

I think, you want the Window Handle: Just use WinGetHandle("")

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

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
  • Recently Browsing   0 members

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