Jump to content

Recommended Posts

Posted

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?

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
Posted

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

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

  • Developers
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

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

Posted

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!
Posted

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!
Posted

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.

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
  • Recently Browsing   0 members

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