Iznogoud Posted November 18, 2005 Share Posted November 18, 2005 Hi, i was wondering if it was possible to make a form wich our company logo and 2 drop down fields.Wich can read a directory where some files are. First i shall explain why i want to do thisWhy:We can support alot of our customers with remote desktop for checking different things. If i want to connect to a server i have to look up the documentation etc for the ip adress etc.What i want to do:Making a shortcut for Remote Desktop like "c:\windows\system32\mstsc.exe -v:"<server> /console /f" for each Server/PC we can take over.And to orginise this i want to make a form with 2 pull down fields where you can select in the first field the company name and in the second field the Servers/PC's wich are available for Remote Desktop.Is this possible? Can i with your support create such form, even if i am a big noob to autoit scripting.I have made some simple scripts wich make installations of software automatic, but i think i don't have the knowledge to create this one without help. Link to comment Share on other sites More sharing options...
Zedna Posted November 18, 2005 Share Posted November 18, 2005 Here is my solution: mstsc.au3 mstsc.ini: [Company1]Server1=10.10.10.101 User1=10.10.10.102 [Company2] Server2=10.10.10.201 User2=10.10.10.202 [Company3] Server3=10.10.10.301 User3=10.10.10.302 Notes: - in button Connect instead of Run() is MsgBox() -> Run() is commented (for debug/testing) - I don't know how to disable editing Combo "by hand" - name of PC must not include character "=" which is used as delimiter between name and adress of PC Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Danny35d Posted November 18, 2005 Share Posted November 18, 2005 (edited) Hi Iznogoud, I will like to help you with the script, I believe it will be a good learning experience but English is my second language and I don't understant exactly what do you want to do. Instep of shortcut you could try to make the RDP file and then used AutoIt to run the RDP file.Something like this: Run(@ComSpec & ' /k "' & @ScriptDir & '\CompanyName.rdp"' , '', @SW_HIDE)Take a look to this WebpageI hope this get you started... Edited November 18, 2005 by Danny35d AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line Link to comment Share on other sites More sharing options...
JSThePatriot Posted November 18, 2005 Share Posted November 18, 2005 Here is my solution: mstsc.au3 mstsc.ini: Notes: - in button Connect instead of Run() is MsgBox() -> Run() is commented (for debug/testing) - I don't know how to disable editing Combo "by hand" - name of PC must not include character "=" which is used as delimiter between name and adress of PC As far as the Combo box goes you should be able to use the $ES_READONLY to make it read only. I cannot right now remember how I have done this in the past. I will try and dig up an old script to see. JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Link to comment Share on other sites More sharing options...
Zedna Posted November 18, 2005 Share Posted November 18, 2005 As far as the Combo box goes you should be able to use the $ES_READONLY to make it read only. I cannot right now remember how I have done this in the past. I will try and dig up an old script to see.JSStyle ES_READONLY was first what I tried, but no luck. It's not working as I expected.Today I first time tried using ComboBox. I take this task to learn something new Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
GaryFrost Posted November 18, 2005 Share Posted November 18, 2005 $CBS_DROPDOWNLIST SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Zedna Posted November 18, 2005 Share Posted November 18, 2005 $CBS_DROPDOWNLISTSorry but $CBS_DROPDOWNLIST was my second attempt, but also didn't work I don't know how to make it (disable "by hand" editing in ComboBox) ... Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Iznogoud Posted November 19, 2005 Author Share Posted November 19, 2005 Sorry but $CBS_DROPDOWNLIST was my second attempt, but also didn't work I don't know how to make it (disable "by hand" editing in ComboBox) ...The example you posted is already a good one, but maybe we could make it even better.What i am just wondering is that if it is possible to read the shortcuts from a directory?So you got this folder layoutCompany1-Server1Company2-Server1-Server2Company3-Workstation1etc.Can this folder layout be read out and put it in the combo box?I don't know how difficult it would be and if it is even possible, thats why i wanna discuss it with you people. Link to comment Share on other sites More sharing options...
Zedna Posted November 20, 2005 Share Posted November 20, 2005 The example you posted is already a good one, but maybe we could make it even better.What i am just wondering is that if it is possible to read the shortcuts from a directory?So you got this folder layoutCompany1-Server1Company2-Server1-Server2Company3-Workstation1etc.Can this folder layout be read out and put it in the combo box?I don't know how difficult it would be and if it is even possible, thats why i wanna discuss it with you people.Just take my example as start point for your work on changes which satisfy your needs Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Iznogoud Posted November 20, 2005 Author Share Posted November 20, 2005 Just take my example as start point for your work on changes which satisfy your needs As i said before thats a good starting point, but is it possible to read the shortcuts from out a directory?for an example:If there is a new connection wich must be addes you have to edit the script and compile it again. Link to comment Share on other sites More sharing options...
Zedna Posted November 20, 2005 Share Posted November 20, 2005 As i said before thats a good starting point, but is it possible to read the shortcuts from out a directory?for an example:If there is a new connection wich must be addes you have to edit the script and compile it again.I didn't understand your previous post, so I wrote what I wrote.But if you have new connection, only add it to INI file (script stays unchanged)... Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Iznogoud Posted November 21, 2005 Author Share Posted November 21, 2005 I didn't understand your previous post, so I wrote what I wrote.But if you have new connection, only add it to INI file (script stays unchanged)...I think i am getting the point now I will try some things from your script out, and see if its possible.Thx for you help. 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