hutch Posted April 28, 2005 Share Posted April 28, 2005 when i use autoit to make a input box for example the cancel key is named "cancel"but my scripts are in Frenchand in French "cancel" is said "annuler"why autoit did not detect the language version of windows to adapt button and text like vbscript Link to comment Share on other sites More sharing options...
w0uter Posted April 28, 2005 Share Posted April 28, 2005 cuz if you are making an english script you dont want french buttons on it My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
MarkMarkMark Posted April 28, 2005 Share Posted April 28, 2005 You can make a gui of it with your own language Link to comment Share on other sites More sharing options...
hutch Posted April 28, 2005 Author Share Posted April 28, 2005 You can make a gui of it with your own language<{POST_SNAPBACK}>yes but it is not easy and pratical Link to comment Share on other sites More sharing options...
hutch Posted April 28, 2005 Author Share Posted April 28, 2005 why don't modifie autoit in a future versionto add that (if it is no possible to recover the cancel name in windows like vbscript)InputBox ( "title", "Prompt" [, "Default" [, "password char" [, Width, Height [, Left, Top [, TimeOut[, cancelname]]]]]])and make the same wiht msgboxCANCEL 2 ABORT 3 RETRY 4 IGNORE 5 YES 6 NO 7 TRY AGAIN ** 10 CONTINUE ** Link to comment Share on other sites More sharing options...
CyberSlug Posted April 28, 2005 Share Posted April 28, 2005 (edited) Instead of a "cancelnam"e parameter, an "OSLang" parametermight make more sense... Edited April 28, 2005 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
jpm Posted April 28, 2005 Share Posted April 28, 2005 You can do what CyberSlug suggest but you have a better solution with the ControlSend which allow you to reference the control cancel button directly. I think this controlID is not language specific as "button5". See AutoIT info display to have the right controlid Link to comment Share on other sites More sharing options...
Michel Claveau Posted April 28, 2005 Share Posted April 28, 2005 why don't modifie autoit in a future versionand make the same wiht msgboxJe suis également très favorable à cette évolution, qui serait une très bonne Bonsoir ! Link to comment Share on other sites More sharing options...
sarkar112 Posted April 28, 2005 Share Posted April 28, 2005 Je suis également très favorable à cette évolution, qui serait une très bonne Bonsoir !<{POST_SNAPBACK}>? Link to comment Share on other sites More sharing options...
jpm Posted April 29, 2005 Share Posted April 29, 2005 why don't modifie autoit in a future versionto add that (if it is no possible to recover the cancel name in windows like vbscript)InputBox ( "title", "Prompt" [, "Default" [, "password char" [, Width, Height [, Left, Top [, TimeOut[, cancelname]]]]]])and make the same wiht msgboxCANCEL 2 ABORT 3 RETRY 4 IGNORE 5 YES 6 NO 7 TRY AGAIN ** 10 CONTINUE **<{POST_SNAPBACK}>I don't really understand the proposal inputbox and msgbox are synchroneous function, the script is waiting a human interaction so no other Autoit statement can take place.When the user click a button the control come back to the next statement and your script do whatever it is adequate.the return is different for input and msgbox just because input need to return the input value so the type of action have to be return in @error.Thanks to clarify with an example what you really mean Link to comment Share on other sites More sharing options...
hutch Posted April 29, 2005 Author Share Posted April 29, 2005 (edited) i just want that autoit support multi language (for exemple : like vbscript by searching the language of windows)exemple : for inputboxenglish versions cancel is said "cancel"in french cancel is said "annuler"...exemple : for msgboxCANCEL = annulerABORT = abandonnerRETRY = RéessayerIGNORE = ignorerYES = ouiNO = nonTRY AGAIN = essayer encoreCONTINUE = continuerif autoit maker want to know other term in French I can tell us.I've put this question in v3 Idea Labif you don't know what I mean (this is a paint modification)I have thatand I want that Edited April 29, 2005 by hutch Link to comment Share on other sites More sharing options...
jpm Posted April 29, 2005 Share Posted April 29, 2005 Oh I see, You are saying that the autoit input function is always displaying the button in english. There is no localized version as vbscript can do to be in accordance with window. But you can hack the AutoItSC.bin to replace the source. I don't know how to do it with which tool (perhaps reshacker) but I am sure it will work. We don't plan for the time being to deliver localized version. JON can confirm when he will be available. Link to comment Share on other sites More sharing options...
peethebee Posted August 13, 2005 Share Posted August 13, 2005 (edited) Hi!I coded a solution for you.It uses that the button names in the msgbox are right cause this seems to be just an Windows API call internaly. So I wshow a mesgbox, read out the button's texts and set the inputboxes button's text to this value.This solution shuold make your program run e.g. in German too without a change...I hope it works with you too.Idea how to get the strings directly:I found them in the file %windir%\system32\user32.dll. Examined with FileAlyser and found the strings in the section "51".Perhaps you could read it out using one of the hex UDFs and getting the position of this group of strings. I don't know if this position is diffenrent on different language systems of Windows.peethebeeInputBoxLang_1.0.zip Edited August 13, 2005 by peethebee vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv Link to comment Share on other sites More sharing options...
Tlem Posted November 6, 2008 Share Posted November 6, 2008 Sorry to ré-activate this topic, but JON doesn't answer to jpm. Is there a way / time to have a localised version of InputBox in a next release of AutoIt ? I have read all messages and I know that we can do by other way, but it will be more easier to have it included in AutoIt like MsgBox do. Best Regards.Thierry Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now