EmEditor (text editor) Forum Index
   Questions and Answers about Macros
     how to register python in system?
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
leo_zzz
Posted on: 7/4/2007 1:27 am
Not too shy to talk
Joined: 3/29/2007
From:
Posts: 26
how to register python in system?
I want to use Python as my Macro scripting language, I did as Macro reference told:
#language = "Python"
Window.document.write( 'Hello' );

but it failed with "Python specified language not registered in this system", but I have already installed the Python in my system, could anyone tell me what special action should I take to make the Python scripting works?
Vlad
Posted on: 7/4/2007 12:33 pm
Just popping in
Joined: 10/21/2006
From:
Posts: 19
Re: how to register python in system?
If you installed official Python distribution from www.python.org you should also install Python for Windows extensions:
home page: http://starship.python.net/crew/mhammond/win32/
download page: http://sourceforge.net/project/showfiles.php?group_id=78018

Make sure to select installer version corresponding to your Python version, that is pywin32-210.win32-py2.5.exe if you have Python 2.5.x

If everything was installed correctly you should be able to run this python script:

import win32api
import win32com.client
WshShell = win32com.client.Dispatch('WScript.Shell')
WshShell.Run('notepad.exe')
win32api.Sleep(1000)
WshShell.SendKeys( 'everything is ok{ENTER}' )
leo_zzz
Posted on: 7/4/2007 8:29 pm
Not too shy to talk
Joined: 3/29/2007
From:
Posts: 26
Re: how to register python in system?
it works !
thanks a lot, man:)
ArthurZ
Posted on: 1/26/2012 11:57 am
Just can't stay away
Joined: 1/26/2012
From:
Posts: 78
Re: how to register python in system?
I am also interested in writing macros in Python
Did this question get resolved?
Threaded | Newest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文