toasterking
Joined: 04 Oct 2006 Posts: 8
|
Posted: Tue Feb 19, 2008 6:15 am Post subject: ControlGet crashes in Win9x with extended ASCII characters |
|
|
I am using ControlGet to read the text in an Edit control in a window. It works just fine with standard ASCII characters, but some extended ASCII characters crash the script. Here is the offending line of code:
| Code: | | ControlGet, Artist, Line, 1, Edit2, MP4 info editor |
The string in the Edit control that I am trying to read is: Mêlée
When AutoHotkey crashes, this is the error message generated by Windows:
| Code: | AUTOHOTKEY caused a general protection fault
in module USER.EXE at 001e:00001ae0.
Registers:
EAX=00000000 CS=16df EIP=00001ae0 EFLGS=00000286
EBX=01470000 SS=699f ESP=000089c2 EBP=009b89c8
ECX=0000694d DS=6f76 ESI=00008000 FS=3557
EDX=00010000 ES=533f EDI=00028000 GS=0000
Bytes at CS:EIP:
f3 a4 5f 5e 1f ff 76 0a 9a dc 00 47 01 8b e5 5d
Stack dump:
7dd07de0 89de16bf 00011d1e 0000e94d 00006f76 1d04533f 7da87da8 220289f4 000117af 7de07dd0 8ae01d69 89fe7da8 8a0416bf 000121b0 0eec7da8 207b8a20 |
I am using AutoHotkey 1.0.47.05 on Windows 98SE.
Reportedly the same code works fine in Windows XP, and if I use ControlGetText instead in Windows 98SE, it works fine with no errors. (Thanks jaco0646!) Since there is a workaround available (ControlGetText), this probably should not be treated as high priority, but it seems to be a bug all the same. |
|