k66any 0 Posted August 17, 2010 Hi All, I am new to the Autoit software and just trying to find my feet. I am using this toolset to automate creation of systems web bases, AS400 and AD LAN creates. One of the systems requires a users initals of there name (Tom Jones) so would require TJ to be extracted from a guictrl input box and just been reading through the forum which usually gives me the answers but cant find anything. Can someone point me in the right direction $Firstname = GUIctrlcreateInput("", 388,275,130,20) $Surname = GUIctrlcreateInput("", 388,275,130,20) i presume its a guictrlread but that only gives me the users full name not the initals Thanks peeps Share this post Link to post Share on other sites
water 2,411 Posted August 17, 2010 (edited) Hi All, I am new to the Autoit software and just trying to find my feet. I am using this toolset to automate creation of systems web bases, AS400 and AD LAN creates. One of the systems requires a users initals of there name (Tom Jones) so would require TJ to be extracted from a guictrl input box and just been reading through the forum which usually gives me the answers but cant find anything. Can someone point me in the right direction $Firstname = GUIctrlcreateInput("", 388,275,130,20) $Surname = GUIctrlcreateInput("", 388,275,130,20) i presume its a guictrlread but that only gives me the users full name not the initals Thanks peeps Quite simple: $sFirstname = GUICtrlread($Firstname) $sSurname = GUICtrlRead($Surname) $sInitials = Stringleft($sFirstname,1) & Stringleft($sSurname,1) BTW: You have to change the coords of $Surname in the GUI otherwise you overlay $Firstname. Edited August 17, 2010 by water My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2021-04-14 - Version 1.5.3.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2021-04-13 - Version 1.6.4.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (NEW 2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
k66any 0 Posted August 17, 2010 $sFirstname = GUICtrlread($Firstname)$sSurname = GUICtrlRead($Surname)$sInitials = Stringleft($sFirstname,1) & Stringleft($sSurname,1)WOW!!! how fast -------- Cheers Water much appreciated Share this post Link to post Share on other sites