Modal dialog in chinese operation system

Dear all
I find ie.modal_dialog(:title,“cust”) not work in chinese operation
system.

the reasion is :
title = “#{what} – Web Page Dialog” is only for english os

so i add:
if hwnd==0
title = “#{what} –
\315\370\322\263\266\324\273\260\277\362”
@hwnd, arr = FindWindowEx.call(0, 0, nil, title)
puts “child hwnd:”,hwnd
end

hope this can help. please correct me if something wrong.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs