omg Posted February 23, 2006 Share Posted February 23, 2006 I feel really unprepared around that kind of guys... speaking about scripts, some strings/arrays and other stuff I dont understand at all I am a noob on scripting, but I think it is very cool to create your own things and be proud of them I start by following tutorial in help, but when I tryed the second (with notepad script) I didnt see my bulgarian text, instead I was looking at some monkey simbols Well here is my question (dont make fun of me pls) - what must I include to that script: Run("notepad.exe") WinWaitActive("Untitled - Notepad") Send("Текст на български!") WinWaitActive("Notepad", "The text in the Untitled file has changed") Send("!n") to see the text right? OK, it does what it must, but when it starts writing the "Текст на български" text, i see simbols. The language is Bulgarian - phonetic (latin) Probably it is problem with encoding or smtng like that, maybe I must add "windows-1251" somewhere? I know it is simple to you guys, but it is not for me. I am really a noob in programing at any kind, I have writed some basic HTML and thats all, so pls simple explanation? Link to comment Share on other sites More sharing options...
Valuater Posted February 23, 2006 Share Posted February 23, 2006 (edited) add a "1" to this line Send("Текст на български!", 1) and remove this line WinWaitActive("Notepad", "The text in the Untitled file has changed") maybe take a look at "Welcome to Autoit 1-2-3" below 8) BTW Welcome to the Forums Edited February 23, 2006 by Valuater Link to comment Share on other sites More sharing options...
omg Posted February 24, 2006 Author Share Posted February 24, 2006 add a "1" to this line Send("Текст на български!", 1) and remove this line WinWaitActive("Notepad", "The text in the Untitled file has changed") maybe take a look at "Welcome to Autoit 1-2-3" below 8) BTW Welcome to the Forums Thanks for welcoming me Valuater :"> I tryed that what you sayed, but with no result... actually "with the same result" I didnt remove the last line - I think it is cool to appear Notepad, write some text itself and w8 to be closed without no questions about saving the file - just closes after user click on "X" Btw, is it possible to control the speed of the text that has been sended... ahh nevermind, no need to control how fast some simbols appear anyway... 1 problem at a time, right? Here is my short script now: Run("notepad.exe") WinWaitActive("Untitled - Notepad") Send("Текст на български!", 1) WinWaitActive("Notepad", "The text in the Untitled file has changed") Send("!n") Result is still the same - I see simbols instead of the bulgarian text When you copy/paste it, do you see the text correct? Maybe the prob is in me somewhere then? Any other solution on your mind ? About this - maybe take a look at "Welcome to Autoit 1-2-3" below - well, I did give it a look actually. Again - I have no programing background at all - so I get quite confused by the demo and the tutorials(some of them gived me error on start, or I didnt start them right I guess), maybe they are for more advanced users than me - I am a simple HTML writer 10x anyway for the fast answer Link to comment Share on other sites More sharing options...
Valuater Posted February 24, 2006 Share Posted February 24, 2006 (edited) correct.. i cant even copy & paste your letters and no other solutions come to mind good luck 8) Edited February 24, 2006 by Valuater Link to comment Share on other sites More sharing options...
Sokko Posted February 24, 2006 Share Posted February 24, 2006 I can copy and paste your text into other applications, but Notepad just shows question marks. It's probably because Notepad only supports the basic character set and can't deal with any "extended" characters. If you try this with something more advanced like Wordpad, it should work. Link to comment Share on other sites More sharing options...
nfwu Posted February 24, 2006 Share Posted February 24, 2006 (edited) Changing the font that notepad uses sometimes helps... I can type japanese and chinese in notepad when i change it to the relevent fonts that i got with my input device. #EDIT: Corrected Typo Edited February 24, 2006 by nfwu TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() 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