Jump to content

Recommended Posts

Posted (edited)

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
Posted

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]
Posted (edited)

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]
Posted (edited)

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
Posted

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]
Posted

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

edited

Posted

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]

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
×
×
  • Create New...