Jump to content

WinSetOnTop not work with brwser is possible?


Recommended Posts

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

>>>> 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 :D  thanmkz  at all

Link to comment
Share on other sites

@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

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
 Share

  • Recently Browsing   0 members

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