Jump to content

Recommended Posts

Posted

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 :huh2:. 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.0a

Class: CustomDlg

Position: 929, 14

Size: 567, 403

Style: 0x94CA0A4C

ExStyle: 0x00010100

Handle: 0x0000000000AD0D0C

>>>> Control <<<<

Class: #32770

Instance: 1

ClassnameNN: #327701

Name:

Advanced (Class): [CLASS:#32770; INSTANCE:1]

ID:

Text: TrueCrypt Setup Wizard

Position: 23, 73

Size: 519, 252

ControlClick Coords: 10, 229

Style: 0x5000044C

ExStyle: 0x00010000

Handle: 0x00000000001D0C30

>>>> Mouse <<<<

Position: 965, 341

Cursor ID: 0

Color: 0xFFFFFF

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<

&Help

< &Back

&Accept

Cancel

License

TrueCrypt Installer

You must accept these license terms before you can use, extract, or install TrueCrypt.

TrueCrypt Setup Wizard

TrueCrypt License Version 3.0

... (license text)

Posted

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>

  • 3 weeks later...
Posted

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 :huh2:

Thanks again

Posted

There's a Function created by KaFu which has been floating around the Forum for about 2 years :huh2: >>

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 parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...