JonnyThunder Posted September 19, 2008 Share Posted September 19, 2008 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? Link to comment Share on other sites More sharing options...
Ahmad Posted September 19, 2008 Share Posted September 19, 2008 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] Link to comment Share on other sites More sharing options...
ProgAndy Posted September 19, 2008 Share Posted September 19, 2008 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 Link to comment Share on other sites More sharing options...
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