nononomebusy Posted August 20, 2008 Share Posted August 20, 2008 (edited) Hi Guys, I am a first time poster, hopefully you may be able to help me out. So far after using AutoIT for a day, I can see how powerful this scripting language truly is! Ok down to my question: I am currently working on a project for a large university where the students have to change their LAN setting to authenticate on their username and password. This is done by going into the authentication tab in LAN settings and changing the certificate type among other things. I would like to automate this for all students. Having originally written a script in C# for the xp side of things I knew it was possible to change everything I needed to change through registry. However, I cane to do vista and to my horror the registry setting (EAPOL I think the key is called) does not exist. I came accross AutoIT and found that imitating user interface in my opinion is a much neater and user friendly way of doing this. My problem is that a day isn't long enough to be able to learn this script in enough detail to be able to finish this project. We have a deadline looming and I have so managed to open up the LAN settings tab with code I have found on this website. The code is as follows: ; Turn Off UAC #RequireAdmin RegWrite('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies','EnableLUA','REG_DWORD',0) ; Load the Network Config Panel Run ( "rundll32.exe shell32,Control_RunDLL Ncpa.cpl" ) WinWaitActive("Network Connections") ; Search for the LAN $nic = ControlListView("Network Connections", "", "SysListView321", "FindItem", "Local Area Connection") ; Select the LAN and execture the properties ControlFocus("Network Connections", "", ControlListView("Network Connections", "", "SysListView321", "Select", $nic)) Send("!{Enter}") ; get properties WinWait("Local Area Connection Properties") If Not WinActive("Local Area Network Connection Properties") Then WinActivate("Local Area Network Connection Properties") EndIf But getting to the authentication tab and changing settings is beyond me at the moment. If someone would be nice enough to point me in the right direction with the following tasks I would be eternally grateful: - Starting a service and setting it to automatic start on login Starting this would be something like this? $status = _ServiceStart("WLAN") - Switching to the authentication tab on LAN properties - Changing the EAP type in the drop down box on said authentication tab - Selecting and unselecting radio boxes As I search for how to do these things myself I may well come accross solutions. If I do I will post them here. thanks in advance, Matt Edited August 20, 2008 by nononomebusy Link to comment Share on other sites More sharing options...
nononomebusy Posted August 20, 2008 Author Share Posted August 20, 2008 So using the include from the file below, we can start serviceshttp://www.autoitscript.com/forum/lofivers...php?t22165.html Link to comment Share on other sites More sharing options...
nononomebusy Posted August 20, 2008 Author Share Posted August 20, 2008 Ok I found this useful thread on changing to authentication tab http://www.autoitscript.com/forum/index.php?showtopic=68839ControlCommand("Local Area Connection Properties", "Networking", "SysTabControl321", "TabRight", "");selects the "Authentication" tabIt is starting to come together! Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted August 20, 2008 Moderators Share Posted August 20, 2008 Ok I found this useful thread on changing to authentication tab http://www.autoitscript.com/forum/index.php?showtopic=68839 ControlCommand("Local Area Connection Properties", "Networking", "SysTabControl321", "TabRight", "");selects the "Authentication" tab It is starting to come together!Read these links: http://www.autoitscript.com/forum/index.ph...st&p=529666 http://www.autoitscript.com/forum/index.ph...st&p=485422 http://www.autoitscript.com/forum/index.ph...st&p=443303 http://www.autoitscript.com/forum/index.ph...st&p=450311 http://www.autoitscript.com/forum/index.ph...st&p=451665 http://www.autoitscript.com/forum/index.ph...st&p=491638 http://www.autoitscript.com/forum/index.ph...st&p=517041 http://www.autoitscript.com/forum/index.ph...st&p=544854 http://www.autoitscript.com/forum/index.ph...st&p=558562 Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
nononomebusy Posted August 20, 2008 Author Share Posted August 20, 2008 (edited) Read these links:http://www.autoitscript.com/forum/index.ph...st&p=529666http://www.autoitscript.com/forum/index.ph...st&p=485422http://www.autoitscript.com/forum/index.ph...st&p=443303http://www.autoitscript.com/forum/index.ph...st&p=450311http://www.autoitscript.com/forum/index.ph...st&p=451665http://www.autoitscript.com/forum/index.ph...st&p=491638http://www.autoitscript.com/forum/index.ph...st&p=517041http://www.autoitscript.com/forum/index.ph...st&p=544854http://www.autoitscript.com/forum/index.ph...st&p=558562Even if I am adding further information? surely, it doesn't matter if I am solving my own solution. I don't find that irritating at all, in fact if someone comes accross this thread and is in need of a solution to this, it is good for them to see my thought process.Please try and be constructive next time instead of pretending to be the internet police.addition: as I see you are a mod, I can see this community isn't a supportive one. I'll solve my problem myself from now on thinks Edited August 20, 2008 by nononomebusy Link to comment Share on other sites More sharing options...
BrettF Posted August 20, 2008 Share Posted August 20, 2008 (edited) You've got the wrong end of the stick here. This community is a VERY supportive one. The language is great, the helpfile is one of the best I have ever seen for any language. If you need to post again, and no one has posted, there is a nifty feature called the edit button. Also one other thing you must learn is respect. There are many members who have been for a long time, Smoke_N included, and has earned their position. He has put a s**tload of time helping people like you, me, and half the world. His own time too. So give him a little more respect... So now you have learnt. Don't bump your thread more than once in a 24 hour period, and respect other members. Savvy? Edited August 20, 2008 by BrettF Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
nononomebusy Posted August 20, 2008 Author Share Posted August 20, 2008 You've got the wrong end of the stick here. This community is a VERY supportive one. The language is great, the helpfile is one of the best I have ever seen for any language. If you need to post again, and no one has posted, there is a nifty feature called the edit button. Also one other thing you must learn is respect. There are many members who have been for a long time, Smoke_N included, and has earned their position. He has put a s**tload of time helping people like you, me, and half the world. His own time too. So give him a little more respect... So now you have learnt. Don't bump your thread more than once in a 24 hour period, and respect other members. Savvy?As I feel you have.I didn't feel that I bumped the thread, I said in my original post I would add information as it came through, and after editing the post once, it would not let me edit it again.Even if I did bump my thread it wasn't on the intention of it being seen, it was on the intention that I could keep it up to date as I found more information out.Regardless of whether or not what I did was wrong, there are much more subtle and less rude ways of informing me than listing a bunch of links (there are for instance personal messages for such things).As for respect, I don't think it is me who needs to learn it.As for supportive community, my first impressions are not good ones. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted August 20, 2008 Moderators Share Posted August 20, 2008 (edited) Even if I am adding further information? surely, it doesn't matter if I am solving my own solution. I don't find that irritating at all, in fact if someone comes accross this thread and is in need of a solution to this, it is good for them to see my thought process.Please try and be constructive next time instead of pretending to be the internet police.addition: as I see you are a mod, I can see this community isn't a supportive one. I'll solve my problem myself from now on thinksAs I feel you have.I didn't feel that I bumped the thread, I said in my original post I would add information as it came through, and after editing the post once, it would not let me edit it again.Even if I did bump my thread it wasn't on the intention of it being seen, it was on the intention that I could keep it up to date as I found more information out.Regardless of whether or not what I did was wrong, there are much more subtle and less rude ways of informing me than listing a bunch of links (there are for instance personal messages for such things).As for respect, I don't think it is me who needs to learn it.As for supportive community, my first impressions are not good ones.1. I am one of this forums police. We try to keep it fair to those that post.2. My links are because I'm tired of repeating myself with people. And it's a way for you to see just how annoying it is.I personally could care less what peoples opinions are of me or how I handle this forums policing. If you have an issue, take it up with the administrator or one of the other Mods. I can appreciate your eagerness to learn, we have all been there at one time. I can appreciate you're a problem solver (so few here are). Don't you think it makes more sense to put everything together into one post when you've finished, rather than posting needlessly every 20 minutes (effecting everyone here that is trying to get help themselves)? Edited August 20, 2008 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. 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