Jump to content
Sign in to follow this  
Achilles

Does this work for other people?

Recommended Posts

Spiff59

I don't see how you can execute a path, there's nothing associated with it.

Are you after the folder properties that explorer.exe would display?

Or, Display Properties like when you right-click and select "properties" on your actual desktop?

This?

ShellExecute("desk.cpl")

This?

ShellExecuteWait("explorer.exe ", @DesktopDir, -1, "", @SW_HIDE)
Send("+{F10}r")
Edited by Spiff59

Share this post


Link to post
Share on other sites
Achilles

This error message is from Vista, http://keys.wbfgv.net/Clipboard03.png.

That's pretty much what Windows 7 says too.. thanks for checking

I don't see how you can execute a path, there's nothing associated with it.

Are you after the folder properties that explorer.exe would display?

Or, Display Properties like when you right-click and select "properties" on your actual desktop?

This?

ShellExecute("desk.cpl")

This?

ShellExecuteWait("explorer.exe ", @DesktopDir, -1, "", @SW_HIDE)
Send("+{F10}r")

That last bit of code that you posted it was I was after.. thanks for that..

Here's what I'm using, I added sleeps 'cause it wasn't working due to everything happening too fast (although my computer is pretty good)

ShellExecuteWait("explorer.exe ", @DesktopDir, -1, "", @SW_HIDE)
Sleep(200)
Send("+{F10}")
Sleep(200)
Send("r")
Sleep(500)
ControlSend('Desktop Properties', '', 12320, '^{TAB}')
Sleep(200)
ControlSend('Desktop Properties', '', 12320, '^{TAB}')
Sleep(200)
ControlSend('Desktop Properties', '', 12320, '^{TAB}')

My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
Share on other sites
Achilles

This error message is from Vista, http://keys.wbfgv.net/Clipboard03.png.

That's pretty much what Windows 7 says too.. thanks for checking

I don't see how you can execute a path, there's nothing associated with it.

Are you after the folder properties that explorer.exe would display?

Or, Display Properties like when you right-click and select "properties" on your actual desktop?

This?

ShellExecute("desk.cpl")

This?

ShellExecuteWait("explorer.exe ", @DesktopDir, -1, "", @SW_HIDE)
Send("+{F10}r")

That last bit of code that you posted it was I was after.. thanks for that..

Here's what I'm using, I added sleeps 'cause it wasn't working due to everything happening too fast (although my computer is pretty good)

ShellExecuteWait("explorer.exe ", @DesktopDir, -1, "", @SW_HIDE)
Sleep(200)
Send("+{F10}")
Sleep(200)
Send("r")
Sleep(500)
ControlSend('Desktop Properties', '', 12320, '^{TAB}')
Sleep(200)
ControlSend('Desktop Properties', '', 12320, '^{TAB}')
Sleep(200)
ControlSend('Desktop Properties', '', 12320, '^{TAB}')

Edit: Can anyone can see if this brings up the "Location" tab?

Edited by Achilles

My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
Share on other sites
Spiff59

This is probably the cleaner way to open the properties window.

After that I suppose it's back to using Send() (or ControlSend()?)...

$oShell32 = ObjCreate("Shell.Application")
$oFolder = $oShell32.NameSpace(@DesktopDir)
$oFolder.Self.InvokeVerb("Properties")

Sleep(5000)

$oFolder = ""
$oShell32 = ""

PS - In XP Pro SP3, I don't have a "Location" tab :mellow:

Edited by Spiff59

Share this post


Link to post
Share on other sites
Achilles

This is probably the cleaner way to open the properties window.

After that I suppose it's back to using Send() (or ControlSend()?)...

$oShell32 = ObjCreate("Shell.Application")
$oFolder = $oShell32.NameSpace(@DesktopDir)
$oFolder.Self.InvokeVerb("Properties")

Sleep(5000)

$oFolder = ""
$oShell32 = ""

PS - In XP Pro SP3, I don't have a "Location" tab :mellow:

Hmm, nice idea but it doesn't work in Windows 7.. It opens the "Personalize" window... which I don't think XP has.. I was hoping for a clean way to do this, but I don't seem to be having any luck..

My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
Share on other sites
E1M1

Can't you use controlclick or controlcommand? You could code 2 diferent funcs. one for win 7 and other for xp.


edited

Share this post


Link to post
Share on other sites
Achilles

Can't you use controlclick or controlcommand? You could code 2 diferent funcs. one for win 7 and other for xp.

Unfortunately I don't this program is going to work at all for windows XP.. basically the plan is to make it like my Multiple Desktops.. but way better.. and with specific themes for each desktop..

So... no ideas on how to open the properties of the desktop folder without using things like Send('F10')..?


My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

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.