Sign in to follow this  
Followers 0
tamir

run notepad and set its title

13 posts in this topic

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?

Share this post


Link to post
Share on other sites

#2 ·  Posted (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 HDs

Ive never actually used windows in a language other than english.

But I assume that for example the directory C:\New Folder\Notepad.exe

in spannish might look like C:\Carpeta Nueva\Bloc.exe

So running C:\New Folder\Notepad.exe on the spanish comp wouldnt open notepad.exe

You 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 by nova

Share this post


Link to post
Share on other sites

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.exe

in spannish might look like C:\Carpeta Nueva\Bloc.exe

So running C:\New Folder\Notepad.exe on the spanish comp wouldnt open notepad.exe

You 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?

Share this post


Link to post
Share on other sites

RTFM, also, on windows machines check: C:\WINDOWS\notepad.exe


-I am the giver of life and the bringer of death.

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by nova

Share this post


Link to post
Share on other sites

RTFM, also, on windows machines check: C:\WINDOWS\notepad.exe

@b14ck have you ever used windows in a language other than english ?i

are you sure notepad.exe is even called notepad.exe ?

In spanish notepad.exe translates into blat.exe

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

this should be language independent.... it checks for the notepad classname... :idiot:

AutoItSetOption("WinTitleMatchMode", 4)
Run("Notepad")
WinWait("classname=Notepad","")
WinSetTitle("classname=Notepad","","MyTiTle")
Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

it works! thanks alot!

and this will work no metter in which language?

Edited by tamir

Share this post


Link to post
Share on other sites

it works! thanks alot!

and this will work no metter in which language?

<{POST_SNAPBACK}>

Classnames shouldn't change in different languages ....

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Classnames shouldn't change in different languages ....

<{POST_SNAPBACK}>

how do i check the classname of programs?

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0