Czennen Posted April 28, 2015 Share Posted April 28, 2015 (edited) I'm trying to write a script that will turn off and on a computer's ethernet adapter via device manager (Strictly Device Manager).Since the ethernet adapter varies from to pc to pc I used an input box with this code to get the adapter name:Local $oLanConnection = InputBox("Testing", "Enter the name of ethernet adapter", "")Now for my question: how do I get autoIT to move my mouse to this particular $oLanConnection in device manager. (Text Find)Any help would be appreciated~ Edited April 28, 2015 by Czennen Link to comment Share on other sites More sharing options...
blakel Posted April 28, 2015 Share Posted April 28, 2015 "(Strictly Device Manager)" Why is the device manager so important? Link to comment Share on other sites More sharing options...
Czennen Posted April 28, 2015 Author Share Posted April 28, 2015 It's one of the parameters of the testcase I'm working on Link to comment Share on other sites More sharing options...
blakel Posted April 28, 2015 Share Posted April 28, 2015 Try searching the forums with the term 'screen scrape' Link to comment Share on other sites More sharing options...
iamtheky Posted April 28, 2015 Share Posted April 28, 2015 (edited) How about an easier question? Where can i go to determine that network devices location in this list?Because then you can just send "n" to select 'Network adapters', and then the corresponding number of down arrows to select the device in that section. I am going with a confident 2 other locations (that can be enumerated) that show the devices in that order, and maybe a third. Edited April 28, 2015 by boththose ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
Czennen Posted April 28, 2015 Author Share Posted April 28, 2015 How about an easier question? Where can i go to determine that network devices location in this list?Because then you can just send "n" to select 'Network adapters', and then the corresponding number of down arrows to select the device in that section. I am going with a confident 2 other locations (that can be enumerated) that show the devices in that order, and maybe a third.oh god thank you~ thanks for the help aswell blakel~ Link to comment Share on other sites More sharing options...
iamtheky Posted April 28, 2015 Share Posted April 28, 2015 or right now, since the playoffs are on. you could just change your input box and ask which adapter counting from the top is the one to turn off and then use that as the number of down arrows. There are some slick ways to determine the ethernet adapter as well, if/when you want to remove that interaction with the user. ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) 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