faustf Posted July 3, 2018 Share Posted July 3, 2018 hi guys , i want put on top always a browser iexplorer , i look winsetontop function and i modify little bit always for try tounderstund how work , but with notepad work perfect in iexplorer not work ,o_O this is my code #include <AutoItConstants.au3> Example() Func Example() ; Retrieve the handle of the active window. Local $hWnd = WinGetHandle("[CLASS:IEFrame]") MsgBox(0, '', $hWnd) ; Set the active window as being ontop using the handle returned by WinGetHandle. While 1 WinSetOnTop($hWnd, "", $WINDOWS_ONTOP) Sleep(100) WEnd EndFunc ;==>Example this is my autoit info expandcollapse popup>>>> Window <<<< Title: Accedi a Hotmail con Outlook, usa Messenger con Skype | MSN Italia - Internet Explorer Class: IEFrame Position: 356, 184 Size: 1042, 745 Style: 0x16CF0000 ExStyle: 0x00000100 Handle: 0x00470698 >>>> Control <<<< Class: Instance: ClassnameNN: Name: Advanced (Class): ID: Text: Position: Size: ControlClick Coords: Style: ExStyle: Handle: >>>> Mouse <<<< Position: 1223, 199 Cursor ID: 0 Color: 0x808080 >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< Navigation Bar Address Bar http://www.msn.com/it-it/?ocid=iehp Address Combo Control Page Control Search Bar Address Combo Control Favorites and Tools Bar ITBarHost Menu Bar Accedi a Hotmail con Outlook, usa Messenger con Skype | MSN Italia - Internet Explorer >>>> Hidden Text <<<< Page Control i look msgbox return correct handle but not work if someone could help me ,I will be grateful thanmkz at all Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted July 3, 2018 Share Posted July 3, 2018 Why do you need a While 1...Loop in there? By the way, did you check the return value of WinSetOnTop() function? Best Regards. Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
orbs Posted July 3, 2018 Share Posted July 3, 2018 @faustf, the code at the first post works for me - as long as only a single window of IE is open. that same window must be already open before the script starts, and must be kept open throughout the script execution. you have written your code to fail in any other circumstances. Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff Link to comment Share on other sites More sharing options...
faustf Posted July 3, 2018 Author Share Posted July 3, 2018 i write in loop because in out loop not work i thinked , i try in loop but also in loop not worked for me if i use noptepad work good but if i use iexplorer not work Link to comment Share on other sites More sharing options...
InnI Posted July 3, 2018 Share Posted July 3, 2018 @faustf Try to activate IE window first WinSetOnTop(WinActivate("[CLASS:IEFrame]"), "", 1) faustf 1 Link to comment Share on other sites More sharing options...
faustf Posted July 4, 2018 Author Share Posted July 4, 2018 yeaaaa now work thankz alot 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