use strict;
use warnings;
use diagnostics;
#Iam not getting tool bar and address bar in explorer.
use Win32::GUI();
use Win32::GUI::AxWindow;
# Main Window
my $Window = new Win32::GUI::Window(
-name => "Window",
-title => "SCM Wrapper",
-pos => [100, 100],
-size => [400, 400],
);
# Add a WebBrowser AxtiveX
my $Control = new Win32::GUI::AxWindow (
-parent => $Window,
-name => "Control",
-control => "Shell.Explorer",
-pos => [0, 0],
-size => [400, 400],
);
# Register some event
$Control->RegisterEvent("StatusTextChange",
sub {
my $self = shift;
my $eventid = shift;
print "Event : ", @_, "\n";
} );
# Call Method
$Control->CallMethod("Navigate", 'C:');
# Event loop
$Window->Show();
warn "GetPropertyInfo \n\t", join "\n\t", $Control->GetPropertyInfo($_
+)
for $Control->EnumPropertyName();
Win32::GUI::Dialog();
# Main window event handler
sub Window_Resize {
if (defined $Window) {
my ($width, $height) = ($Window->GetClientRect)[2..3];
$Control->Move (0, 0);
$Control->Resize ($width, $height);
}
}
#Comment on iam not getting entire Explorer use Win32-GUI
__DATA__
GetPropertyInfo
-Name
Application
-Description
Returns the application automation object if accessible, this automation object otherwise..
-ID
200
-ReadOnly
1
-VarType
IDispatch
-EnumValue
-Prototype
IDispatch Application(); at test.pl line 44.
GetPropertyInfo
-Name
Parent
-Description
Returns the automation object of the container/parent if one exists or this automation object.
-ID
201
-ReadOnly
1
-VarType
IDispatch
-EnumValue
-Prototype
IDispatch Parent(); at test.pl line 44.
GetPropertyInfo
-Name
Container
-Description
Returns the container/parent automation object, if any.
-ID
202
-ReadOnly
1
-VarType
IDispatch
-EnumValue
-Prototype
IDispatch Container(); at test.pl line 44.
GetPropertyInfo
-Name
Document
-Description
Returns the active Document automation object, if any.
-ID
203
-ReadOnly
1
-VarType
IDispatch
-EnumValue
-Prototype
IDispatch Document(); at test.pl line 44.
GetPropertyInfo
-Name
TopLevelContainer
-Description
Returns True if this is the top level object.
-ID
204
-ReadOnly
1
-VarType
BOOL
-EnumValue
-Prototype
BOOL TopLevelContainer(); at test.pl line 44.
GetPropertyInfo
-Name
Type
-Description
Returns the type of the contained document object.
-ID
205
-ReadOnly
1
-VarType
BSTR
-EnumValue
-Prototype
BSTR Type(); at test.pl line 44.
GetPropertyInfo
-Name
Left
-Description
The horizontal position (pixels) of the frame window relative to the screen/container.
-ID
206
-ReadOnly
0
-VarType
I4
-EnumValue
-Prototype
I4 Left(); at test.pl line 44.
GetPropertyInfo
-Name
Top
-Description
The vertical position (pixels) of the frame window relative to the screen/container.
-ID
207
-ReadOnly
0
-VarType
I4
-EnumValue
-Prototype
I4 Top(); at test.pl line 44.
GetPropertyInfo
-Name
Width
-Description
The horizontal dimension (pixels) of the frame window/object.
-ID
208
-ReadOnly
0
-VarType
I4
-EnumValue
-Prototype
I4 Width(); at test.pl line 44.
GetPropertyInfo
-Name
Height
-Description
The vertical dimension (pixels) of the frame window/object.
-ID
209
-ReadOnly
0
-VarType
I4
-EnumValue
-Prototype
I4 Height(); at test.pl line 44.
GetPropertyInfo
-Name
LocationName
-Description
Gets the short (UI-friendly) name of the URL/file currently viewed.
-ID
210
-ReadOnly
1
-VarType
BSTR
-EnumValue
-Prototype
BSTR LocationName(); at test.pl line 44.
GetPropertyInfo
-Name
LocationURL
-Description
Gets the full URL/path currently viewed.
-ID
211
-ReadOnly
1
-VarType
BSTR
-EnumValue
-Prototype
BSTR LocationURL(); at test.pl line 44.
GetPropertyInfo
-Name
Busy
-Description
Query to see if something is still in progress.
-ID
212
-ReadOnly
1
-VarType
BOOL
-EnumValue
-Prototype
BOOL Busy(); at test.pl line 44.
GetPropertyInfo
-Name
Name
-Description
Returns name of the application.
-ID
0
-ReadOnly
1
-VarType
BSTR
-EnumValue
-Prototype
BSTR Name(); at test.pl line 44.
GetPropertyInfo
-Name
HWND
-Description
Returns the HWND of the current IE window.
-ID
-515
-ReadOnly
1
-VarType
I4
-EnumValue
-Prototype
I4 HWND(); at test.pl line 44.
GetPropertyInfo
-Name
FullName
-Description
Returns file specification of the application, including path.
-ID
400
-ReadOnly
1
-VarType
BSTR
-EnumValue
-Prototype
BSTR FullName(); at test.pl line 44.
GetPropertyInfo
-Name
Path
-Description
Returns the path to the application.
-ID
401
-ReadOnly
1
-VarType
BSTR
-EnumValue
-Prototype
BSTR Path(); at test.pl line 44.
GetPropertyInfo
-Name
Visible
-Description
Determines whether the application is visible or hidden.
-ID
402
-ReadOnly
0
-VarType
BOOL
-EnumValue
-Prototype
BOOL Visible(); at test.pl line 44.
GetPropertyInfo
-Name
StatusBar
-Description
Turn on or off the statusbar.
-ID
403
-ReadOnly
0
-VarType
BOOL
-EnumValue
-Prototype
BOOL StatusBar(); at test.pl line 44.
GetPropertyInfo
-Name
StatusText
-Description
Text of Status window.
-ID
404
-ReadOnly
0
-VarType
BSTR
-EnumValue
-Prototype
BSTR StatusText(); at test.pl line 44.
GetPropertyInfo
-Name
ToolBar
-Description
Controls which toolbar is shown.
-ID
405
-ReadOnly
0
-VarType
INT
-EnumValue
-Prototype
INT ToolBar(); at test.pl line 44.
GetPropertyInfo
-Name
MenuBar
-Description
Controls whether menubar is shown.
-ID
406
-ReadOnly
0
-VarType
BOOL
-EnumValue
-Prototype
BOOL MenuBar(); at test.pl line 44.
GetPropertyInfo
-Name
FullScreen
-Description
Maximizes window and turns off statusbar, toolbar, menubar, and titlebar.
-ID
407
-ReadOnly
0
-VarType
BOOL
-EnumValue
-Prototype
BOOL FullScreen(); at test.pl line 44.
GetPropertyInfo
-Name
ReadyState
-Description
-ID
-525
-ReadOnly
1
-VarType
ENUM
-EnumValue
READYSTATE_UNINITIALIZED=0,READYSTATE_LOADING=1,READYSTATE_LOADED=2,READYSTATE_INTERACTIVE=3,READYSTATE_COMPLETE=4
-Prototype
tagREADYSTATE ReadyState(); at test.pl line 44.
GetPropertyInfo
-Name
Offline
-Description
Controls if the frame is offline (read from cache)
-ID
550
-ReadOnly
0
-VarType
BOOL
-EnumValue
-Prototype
BOOL Offline(); at test.pl line 44.
GetPropertyInfo
-Name
Silent
-Description
Controls if any dialog boxes can be shown
-ID
551
-ReadOnly
0
-VarType
BOOL
-EnumValue
-Prototype
BOOL Silent(); at test.pl line 44.
GetPropertyInfo
-Name
RegisterAsBrowser
-Description
Registers OC as a top-level browser (for target name resolution)
-ID
552
-ReadOnly
0
-VarType
BOOL
-EnumValue
-Prototype
BOOL RegisterAsBrowser(); at test.pl line 44.
GetPropertyInfo
-Name
RegisterAsDropTarget
-Description
Registers OC as a drop target for navigation
-ID
553
-ReadOnly
0
-VarType
BOOL
-EnumValue
-Prototype
BOOL RegisterAsDropTarget(); at test.pl line 44.
GetPropertyInfo
-Name
TheaterMode
-Description
Controls if the browser is in theater mode
-ID
554
-ReadOnly
0
-VarType
BOOL
-EnumValue
-Prototype
BOOL TheaterMode(); at test.pl line 44.
GetPropertyInfo
-Name
AddressBar
-Description
Controls whether address bar is shown
-ID
555
-ReadOnly
0
-VarType
BOOL
-EnumValue
-Prototype
BOOL AddressBar(); at test.pl line 44.
GetPropertyInfo
-Name
Resizable
-Description
Controls whether the window is resizable
-ID
556
-ReadOnly
0
-VarType
BOOL
-EnumValue
-Prototype
BOOL Resizable(); at test.pl line 44.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.