Jump to content

Recommended Posts

Posted
2 minutes ago, Subz said:

Because you require #RequireAdmin at the top of your script

still not working with admin , but if  i run the script twice without closing the windows he opens  in first time  it works ..

Posted

Might be just my system then, basically each system is going to be different which is why send keys usually suck imho.  For example on my system I would have to use the following for it to work, maybe you just need to add WinWaitActive("Ethernet 2 Properties") like in the example below.

#RequireAdmin
ShellExecute ("C:\Windows\System32\ncpa.cpl")
WinWaitActive("Control Panel\All Control Panel Items\Network Connections")
Send("Ethernet{enter}")
WinWaitActive("Ethernet Status")
Send("{tab}{enter}")
WinActivate("Ethernet Properties")
WinWaitActive("Ethernet Properties")
send("{DOWN}{DOWN}{DOWN}")

 

Posted
6 minutes ago, Nathanrr said:

still not working with admin , but if  i run the script twice without closing the windows he opens  in first time  it works ..

 

6 minutes ago, Nathanrr said:

still not working with admin , but if  i run the script twice without closing the windows he opens  in first time  it works ..

Sorry my bad its works  .

ty everyone

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