Jump to content

[HELP - VMWARE] Virtual network Editor SCRIPT


benny12
 Share

Recommended Posts

Hi guys,

i have a problem with my script.

I would open a desktop shortcut that not run with UAC control - [I DID]

- Go to VMnet8 (press 2 times the down arrow or other)
- Change the IP subnet (only second to last 3 digits)
- Click APPLY
- DHCP setting
- Change the last digit of the figure STARTING IP ADDRESS and press OK
- CLOSE the program

ShellExecute(@DesktopDir & "\net.lnk")
Sleep(2000)
WinActivate("Virtual Network Editor")
Sleep(2000)
ControlSend("Virtual Network Editor", "", 30004, "{DOWN}", "{DOWN}"); don't work

 

thanks for the support:sweating:

Cattura.JPG

Edited by benny12
Link to comment
Share on other sites

Try this:

ShellExecute(@DesktopDir & "\net.lnk")
Sleep(2000)
WinActivate("Virtual Network Editor")
Sleep(2000)
ControlSend("Virtual Network Editor", "", 30004, '{DOWN}{DOWN}') ; You accidentally added a comma between the 2 key presses ;)

Tell me if it works, TD :)

EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time)

DcodingTheWeb Forum - Follow for updates and Join for discussion

Link to comment
Share on other sites

Try this:

ShellExecute(@DesktopDir & "\net.lnk")
Sleep(2000)
WinActivate("Virtual Network Editor")
Sleep(2000)
ControlSend("Virtual Network Editor", "", 30004, '{DOWN}{DOWN}') ; You accidentally added a comma between the 2 key presses ;)

Tell me if it works, TD :)

thanks for the support

 

unfornatelly, doesnt work

 

maybe i must use the controlviewlist?:blink:

https://www.autoitscript.com/autoit3/docs/functions/ControlListView.htm

Link to comment
Share on other sites

That might help :), Concentrate on the "Select" command ;)

Why must i concentrate on "select"?

ControlListView ( "title", "text", controlID, "command" [, option1 [, option2]] )

maybe it can be like

ControlListView ("Virtual Network Editor", "", 30004, "{DOWN}{DOWN}") ???

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...