JohnBailey 1 Posted October 9, 2007 Is there a function out there for getting the current Active/Top Window's handle or title? A decision is a powerful thing Share this post Link to post Share on other sites
SmOke_N 211 Posted October 9, 2007 Is there a function out there for getting the current Active/Top Window's handle or title?WinGetHandle("")WinGetTitle("")? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Share this post Link to post Share on other sites
weaponx 16 Posted October 9, 2007 WinGetHandle("[ACTIVE]") Share this post Link to post Share on other sites
JohnBailey 1 Posted October 9, 2007 WinGetHandle("[ACTIVE]") SCORE!! Sleep(5*1000) Local $ActiveWinHandle = WinGetHandle("[ACTIVE]") Local $ActiveWinTitle = WinGetTitle("[ACTIVE]") MsgBox(0,'The Current Active Window','Title: '&$ActiveWinTitle) Thank you!!! I never even noticed that in the help file! thank you!! A decision is a powerful thing Share this post Link to post Share on other sites
SmOke_N 211 Posted October 9, 2007 SCORE!! Sleep(5*1000) Local $ActiveWinHandle = WinGetHandle("[ACTIVE]") Local $ActiveWinTitle = WinGetTitle("[ACTIVE]") MsgBox(0,'The Current Active Window','Title: '&$ActiveWinTitle) Thank you!!! I never even noticed that in the help file! thank you!!Leaving the string blank by default will get the active windows handle/title as I demonstrated. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Share this post Link to post Share on other sites
JohnBailey 1 Posted October 9, 2007 Leaving the string blank by default will get the active windows handle/title as I demonstrated.OH!! :"> Thank you! A decision is a powerful thing Share this post Link to post Share on other sites