Listing 1: Sample VBScript Code That Uses AutoItX ' BEGIN COMMENT ' Register AutoItX. ' END COMMENT Set objshell = WScript.CreateObject("WScript.Shell") objshell.Run ("%comspec% /c " & "Regsvr32.exe /s autoitx3.dll"),0,true Set oAutoIt = WScript.CreateObject("autoitx3.control") oAutoIt.ToolTip "This is a tooltip", 220, 260 oAutoIt.Sleep 2000 ' ' BEGIN COMMENT ' Unregister AutoItX. ' END COMMENT objshell.Run "Regsvr32.exe /s /u autoitx3.dll",0,true