benny12 Posted October 10, 2015 Share Posted October 10, 2015 (edited) 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 programShellExecute(@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 Edited October 13, 2015 by benny12 Link to comment Share on other sites More sharing options...
benny12 Posted October 13, 2015 Author Share Posted October 13, 2015 (edited) please help me Edited October 13, 2015 by benny12 Link to comment Share on other sites More sharing options...
TheDcoder Posted October 14, 2015 Share Posted October 14, 2015 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 More sharing options...
benny12 Posted October 14, 2015 Author Share Posted October 14, 2015 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?https://www.autoitscript.com/autoit3/docs/functions/ControlListView.htm Link to comment Share on other sites More sharing options...
TheDcoder Posted October 14, 2015 Share Posted October 14, 2015 That might help , Concentrate on the "Select" command 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 More sharing options...
benny12 Posted October 14, 2015 Author Share Posted October 14, 2015 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 likeControlListView ("Virtual Network Editor", "", 30004, "{DOWN}{DOWN}") ??? Link to comment Share on other sites More sharing options...
TheDcoder Posted October 14, 2015 Share Posted October 14, 2015 Nope, it won't work, Please read the documentation carefully 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now