Jump to content

run notepad and set its title


tamir
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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
Link to comment
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?
Link to comment
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

Link to comment
Share on other sites

  • Developers

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

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.
  :)

Link to comment
Share on other sites

  • Developers

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.
  :)

Link to comment
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!
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...