Jump to content
Sign in to follow this  
gfunk999

Shell Objects

Recommended Posts

gfunk999

I just spent the last two days trying to figure out shell objects. I took a tutorial on oleview.exe and MSDN tech net. I have a good understanding how things work, the only problem I dont understand is where to get the properties/methods syntax from? For example the line of script below from SvenP, how did he know where to get the 3 from? I know it calls the network applet in control panel, and then it reads the connection name from the .verb. Is there an easy way to view all properties and methods available for shell.application on an index table or list?

Const $ssfCONTROLS = 3

$ShellApp = ObjCreate("Shell.Application")

$oControlPanel = $shellApp.Namespace($ssfCONTROLS)

full code... http://www.autoitscript.com/forum/index.ph...art=#entry87000

Edited by gfunk999

Share this post


Link to post
Share on other sites
PsaltyDS

I just spent the last two days trying to figure out shell objects. I took a tutorial on oleview.exe and MSDN tech net. I have a good understanding how things work, the only problem I dont understand is where to get the properties/methods syntax from? For example the line of script below from SvenP, how did he know where to get the 3 from? I know it calls the network applet in control panel, and then it reads the connection name from the .verb. Is there an easy way to view all properties and methods available for shell.application on an index table or list?

Const $ssfCONTROLS = 3

$ShellApp = ObjCreate("Shell.Application")

$oControlPanel = $shellApp.Namespace($ssfCONTROLS)

full code... http://www.autoitscript.com/forum/index.ph...art=#entry87000

That kind of thing generally comes from a quick Google of MSDN: Scriptable Shell Objects

That specific constant comes from: ShellSpecialFolderConstants Enumerated Type

Google is your friend.

;)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
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
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.