Tegal Posted June 3, 2011 Posted June 3, 2011 Hi Folks,I am trying to automate the install of TrueCrypt but am getting stuck on the first window where I have to tick to accept the terms of the license. Window details below. Once the tick box is checked the rest of the install uses normal controls if you accept the defaults.I'm relatively new to scripting, and I can't seem to find anywhere else on the Forums where this is discussed (or it could be that I don't know what to search for . Feel free to point me to another post if you think that will help.I'm trying to use the code below to specify the co-ordinates in the window that I want to click:ControlClick("TrueCrypt Setup 7.0a","","[CLASS:#32770; INSTANCE:1]","Left",1,9,231)but it's just not working and I suspect I'm missing some fundamental 'this-is-how-it-works' knowledge.The the control-click co-ords (below) are the location of the check box needed to be checked to continue.I'm not worried about getting the encryption going, this is just to install the program.Thanks in advance.>>>> Window <<<<Title: TrueCrypt Setup 7.0aClass: CustomDlgPosition: 929, 14Size: 567, 403Style: 0x94CA0A4CExStyle: 0x00010100Handle: 0x0000000000AD0D0C>>>> Control <<<<Class: #32770Instance: 1ClassnameNN: #327701Name: Advanced (Class): [CLASS:#32770; INSTANCE:1]ID: Text: TrueCrypt Setup WizardPosition: 23, 73Size: 519, 252ControlClick Coords: 10, 229Style: 0x5000044CExStyle: 0x00010000Handle: 0x00000000001D0C30>>>> Mouse <<<<Position: 965, 341Cursor ID: 0Color: 0xFFFFFF>>>> StatusBar <<<<>>>> ToolsBar <<<<>>>> Visible Text <<<<&Help< &Back&AcceptCancelLicenseTrueCrypt InstallerYou must accept these license terms before you can use, extract, or install TrueCrypt.TrueCrypt Setup WizardTrueCrypt License Version 3.0... (license text)
sleepydvdr Posted June 3, 2011 Posted June 3, 2011 I'm starting to prefer ControlClick more than sending keystrokes, but I am also having trouble getting it to work with TrueCrypt. You can always do it the old fashioned way: Send("+{TAB}{SPACE}") #include <ByteMe.au3>
Tegal Posted June 23, 2011 Author Posted June 23, 2011 Hey sleepydvdr, Sorry for the delayed response - yep that works nicely. I agree, I think the ControlClick is far more precise and probably less prone to error. Why oh why do so many companies have these 'odd' installer pages? Just to make life difficult? Ah well, problem solved till the next version Thanks again
guinness Posted June 23, 2011 Posted June 23, 2011 There's a Function created by KaFu which has been floating around the Forum for about 2 years >> UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018
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