Jump to content
Sign in to follow this  
fishlester

Help T.T~ ObjCreate("Shell.Explorer.2")

Recommended Posts

fishlester

;START

#include <GUIConstants.au3>

$oIE = ObjCreate("Shell.Explorer.2")

$s=GUICreate ("test", 640, 580,(@DesktopWidth-640)/2, (@DesktopHeight-580)/2, BitOr($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS, $WS_CLIPCHILDREN))

$GUIActiveX = GUICtrlCreateObj ( $oIE, 10, 40 , 600 , 360 )

$GUI_Button_Back = GuiCtrlCreateButton ("Back", 10, 420, 100, 30)

$GUI_Button_Forward = GuiCtrlCreateButton ("Forward", 120, 420, 100, 30)

$GUI_Button_Home = GuiCtrlCreateButton ("Home", 230, 420, 100, 30)

$GUI_Button_Stop = GuiCtrlCreateButton ("Stop", 330, 420, 100, 30)

GUISetState()

$oIE.navigate("C:\Documents and Settings")

While 1

$msg = GUIGetMsg()

Select

Case $msg = $GUI_EVENT_CLOSE

ExitLoop

Case $msg = $GUI_Button_Home

$oIE.navigate("C:\windows\system32")

Case $msg = $GUI_Button_Back

guictrlsetstyle($s,$WS_CLIPCHILDREN)

Case $msg = $GUI_Button_Forward

$oIE.GoForward

Case $msg = $GUI_Button_Stop

$oIE.Stop

EndSelect

Wend

GUIDelete ()

Exit

;END

;how to make the object view by icon (auto adjust);please help me some1 , please !~~~~~

;i just wan view by icon

Share this post


Link to post
Share on other sites
junkew

Solution 1: Send keys to activate contextmenu and choose the option to choose iconstyle

Solution 2: I think its just a listview so you can use listview commands: Check ControlListView in AutoIt Help maybe that one works

Solution 3: Check if there is a ExecWB method of IE that you can execute to do what you want

http://msdn.microsoft.com/en-us/library/aa752087(VS.85).aspx

Share this post


Link to post
Share on other sites
ptrex

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.