Jump to content

127 char limit in AutoItX WinSetTitle (title blanked)


marc0v
 Share

Recommended Posts

WinSetTitle sets a title to blank if new title STRING LENGTH > 127

127 char limitation with AutoIt ActiveX ver 3.3.0.0 or limitation in VBScript ver 5.7.0.16599 (WinXP SP3) ?

As I could not find a bug report/thread for that, I ask if someone can reproduce the problem

any testing or workaround solution welcomed...

This affect strings in WINDOWS TITLE, like WinSetTitle

(and also bugs for CONTROLS, I think, with ControlSetText setting random characters in control)

For examples to show something you must set 'wintitle' to a visible window title

(case sensitive, can be only a left part of the title)

This bugs : VBScript (save in a .vbs file and run)

wintitle = "provide_here_a_valid_window_title"
newtitle_127 = "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567"
newtitle_128 = "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678"

Set autoitx3obj = WScript.CreateObject("AutoItX3.Control")

autoitx3obj.WinSetTitle wintitle, "", newtitle_127
MsgBox "Title is set to newtitle_127"

autoitx3obj.WinSetTitle newtitle_127, "", newtitle_128
MsgBox "Title is set to blank"

This works : AU3Script (save in a .au3 file and run)

$wintitle = "provide_here_a_valid_window_title"
$newtitle_127 = "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567"
$newtitle_128 = "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678"

WinSetTitle($wintitle, "", $newtitle_127)
MsgBox(0, "", "Title is set to newtitle_127")

WinSetTitle($newtitle_127, "", $newtitle_128)
MsgBox(0, "", "Title is set to newtitle_128")
Link to comment
Share on other sites

  • 1 month later...

WinSetTitle sets a title to blank if new title STRING LENGTH > 127

127 char limitation with AutoIt ActiveX ver 3.3.0.0 or limitation in VBScript ver 5.7.0.16599 (WinXP SP3) ?

As I could not find a bug report/thread for that, I ask if someone can reproduce the problem

any testing or workaround solution welcomed...

I think I've the same problem with ControlSetText, using AutoIt ActiveX via JScript. I don't know if this applies to AutoIt interpreted .au3 script too. The previous version of AutoIt I had (3.2.something, maybe) didn't seem to suffer the problem.

Ciao.

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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