tamir Posted December 24, 2004 Posted December 24, 2004 i want to make a script that runs notepad and then do some functions in it. the problem is that this script is for other people from other countries and i don't know their notepad's title, so i want to know if there is a way to open it and set the title right away?
Nova Posted December 24, 2004 Posted December 24, 2004 (edited) I see your problem.i don't know their notepad's title,Thats not the worst of your problems you dont know where notepad.exe is saved on their HDsIve never actually used windows in a language other than english.But I assume that for example the directory C:\New Folder\Notepad.exein spannish might look like C:\Carpeta Nueva\Bloc.exeSo running C:\New Folder\Notepad.exe on the spanish comp wouldnt open notepad.exeYou would have to know each langauge to do what you want to do.Edit:You could fileinstall notepad.exe with your script to a dir of ur choice and then run it and do what you want Edited December 24, 2004 by nova
tamir Posted December 24, 2004 Author Posted December 24, 2004 I see your problem.Ive never actually used windows in a language other than english.But I assume that for example the directory C:\New Folder\Notepad.exein spannish might look like C:\Carpeta Nueva\Bloc.exeSo running C:\New Folder\Notepad.exe on the spanish comp wouldnt open notepad.exeYou would have to know each langauge to do what you want to do.<{POST_SNAPBACK}>but say i know the file name and the path to it, is there a way to open it with my own title?
b14ck Posted December 24, 2004 Posted December 24, 2004 RTFM, also, on windows machines check: C:\WINDOWS\notepad.exe -I am the giver of life and the bringer of death.
Nova Posted December 24, 2004 Posted December 24, 2004 (edited) If you fileinstall notepad and run it, is the title of the window opened not untitlted-notepad ? I think it would be,can u test it anyway ? Edited December 24, 2004 by nova
Nova Posted December 24, 2004 Posted December 24, 2004 RTFM, also, on windows machines check: C:\WINDOWS\notepad.exe@b14ck have you ever used windows in a language other than english ?iare you sure notepad.exe is even called notepad.exe ?In spanish notepad.exe translates into blat.exe
Developers Jos Posted December 24, 2004 Developers Posted December 24, 2004 (edited) this should be language independent.... it checks for the notepad classname... AutoItSetOption("WinTitleMatchMode", 4) Run("Notepad") WinWait("classname=Notepad","") WinSetTitle("classname=Notepad","","MyTiTle") Edited December 24, 2004 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
tamir Posted December 25, 2004 Author Posted December 25, 2004 (edited) it works! thanks alot! and this will work no metter in which language? Edited December 25, 2004 by tamir
Developers Jos Posted December 25, 2004 Developers Posted December 25, 2004 it works! thanks alot!and this will work no metter in which language?<{POST_SNAPBACK}>Classnames shouldn't change in different languages .... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
tamir Posted December 25, 2004 Author Posted December 25, 2004 Classnames shouldn't change in different languages ....<{POST_SNAPBACK}>how do i check the classname of programs?
Guest Aramis Posted December 25, 2004 Posted December 25, 2004 how do i check the classname of programs?<{POST_SNAPBACK}>Load the AU3_Spy.exe utility located in AutoIt3 folder then give focus to the app. you want to know the ClassName. The latter is indicated there, in the Spy window. Cool!
tamir Posted December 25, 2004 Author Posted December 25, 2004 Load the AU3_Spy.exe utility located in AutoIt3 folder then give focus to the app. you want to know the ClassName. The latter is indicated there, in the Spy window. Cool!<{POST_SNAPBACK}>ok thanks alot everybody!
tamir Posted December 25, 2004 Author Posted December 25, 2004 I have another question: i want to make sure the notepad is writing in english. is there a function for it? because if i send "Alt+Shift" and it was on english mode it'll change to other language.
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