Modify

Opened 10 years ago

Closed 5 years ago

#3164 closed Bug (Wont Fix)

problem with the function ToolTip COM Interface

Reported by: blackrodger@… Owned by: Jon
Milestone: Component: AutoItX
Version: 3.3.14.2 Severity: None
Keywords: ActiveX vbscript Cc:

Description

In the process of the script vbs I use as an information window function ToolTip, example:

Set objAutoItTT = WScript.CreateObject("AutoItX3.Control")
strTT = "Update Adress Book. " & VbLf & "#############################" & VbLf
objAutoItTT.ToolTip strTT & "Preparation, checks." , 50, 50

In the process of writing the script used AutoitX3.dll library version 3.3.8.1 Everything worked great.

After upgrading to version 3.3.14.2 of the library, but the windows are not displayed tooltip.

Attachments (0)

Change History (1)

comment:1 by J-Paul Mesnage, 5 years ago

Resolution: Wont Fix
Status: newclosed

Hi, thanks to Danyfirex we got the explanation
to have a tooltip .vbs script run with cscript.exe the manifest does not include the ref to Microsoft.Windows.Common-Controls 6.0

<dependency>
         <dependentAssembly>
             <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" language="*" processorArchitecture="*" publicKeyToken="6595b64144ccf1df"/>
         </dependentAssembly>
     </dependency>

that the reason why such vbs does not work.

You can use the equivalent .au3 script

_Example()
MsgBox(0, '', 1)
Func _Example()
    Local $oObject = ObjCreate("AutoItX3.Control")
    Local $sInfo = "Update Adress Book. " & @crlf & "#############################" & @crlf
    $oObject.ToolTip($sInfo& "Preparation, checks." , 50, 50)
EndFunc

Modify Ticket

Action
as closed The owner will remain Jon.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.