Jump to content

Recommended Posts

Posted (edited)

Hi all this will run but not MAXIMIZE

Run("c:\windows\system32\RunDll32.exe shell32.dll,Control_RunDLL ncpa.cpl,@SW_MAXIMIZE")
what did i miss?

thanks beau

Edited by n9mfk9
Posted (edited)

i think you need to take the @SW_MAXIMIZE out of the quote, its been a while so i could be wrong - but try it

Edited by layer
FootbaG
Posted

Hi all this will run but not MAXIMIZE

Run("c:\windows\system32\RunDll32.exe shell32.dll,Control_RunDLL ncpa.cpl,@SW_MAXIMIZE")
what did i miss?

thanks beau

This is the only way I could get it to work. Not a very efficent way, but I couldn't come up with anything else.

Run("c:\windows\system32\RunDll32.exe shell32.dll, Control_RunDLL ncpa.cpl")
WinWaitActive("Network Connections", "")
WinSetState("Network Connections", "", @SW_MAXIMIZE)
Live and Learn, 'cause Knowledge is Super Power.

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...