Modify ↓
Opened 13 years ago
Closed 13 years ago
#2294 closed Bug (No Bug)
ControlGetText failing when window title happens to contain umlauts
| Reported by: | Owned by: | ||
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.8.1 | Severity: | None |
| Keywords: | Cc: |
Description
Sample:
$Aktiivne_Suund = ControlGetText($MAINWIN,"Piiriületus", $PIS_Suund)
does NOT work ("u" umlaut is the guilty party)
$Aktiivne_Suund = ControlGetText($MAINWIN,"", $PIS_Suund)
works but if same program has more than one GUI window, you are getting screwed since script has no ability left to make difference between them.
There is no way to avoid umlauts since foreign language programs often have window titles containing those and when stumbling on one such program, it's annoying as hell.
Attachments (0)
Note:
See TracTickets
for help on using tickets.

Your error is of semantic nature considering this works:
GUICreate("Piiriületus") Global iControl = GUICtrlCreateButton("üüüüüüü", 20, 10, 100, 30) GUISetState() ConsoleWrite("!> " & ControlGetText("Piiriületus", "üüüüüüü", iControl) & @CRLF)