Jump to content
benny12

[HELP - VMWARE] Virtual network Editor SCRIPT

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

Share this post


Link to post
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 :)


A cross-platform implementation of the AutoIt language

My contributions to the AutoIt Community ##AutoIt at freenode, real-time chat

3fHNZJ.gif

Spoiler

If I have hurt or offended you in anyway, Please accept my apologies, I never (regardless of the situation) intend to do that to anybody.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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


A cross-platform implementation of the AutoIt language

My contributions to the AutoIt Community ##AutoIt at freenode, real-time chat

3fHNZJ.gif

Spoiler

If I have hurt or offended you in anyway, Please accept my apologies, I never (regardless of the situation) intend to do that to anybody.

Share this post


Link to post
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}") ???

Share this post


Link to post
Share on other sites

Nope, it won't work, Please read the documentation carefully :)


A cross-platform implementation of the AutoIt language

My contributions to the AutoIt Community ##AutoIt at freenode, real-time chat

3fHNZJ.gif

Spoiler

If I have hurt or offended you in anyway, Please accept my apologies, I never (regardless of the situation) intend to do that to anybody.

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

×
×
  • Create New...