Wordfile.txt - Automatic refresh

Syntax highlighting, code folding, brace matching, code indenting, and function list

Wordfile.txt - Automatic refresh

Postby Spark » Wed Jul 26, 2006 9:45 am

Hello everyone,
I try to automatically modify the wordlist by a python script. This works fine but needs a restart of UEdit for taking the changes into account.
Is there a way to perform an auto refresh while Uedit is active?
Cheers,
Spark
User avatar
Spark
Newbie
 
Posts: 2
Joined: Tue Jul 25, 2006 11:00 pm

Re: Wordfile.txt - Automatic refresh

Postby Mofi » Thu Jul 27, 2006 6:30 am

UltraEdit does not detect changes in the wordfile which are done outside UltraEdit. But it automatically rereads the wordfile if the changes are done within current instance of UltraEdit.

So after you have modified your wordfile with the Python script, you have to open your modified wordfile in UltraEdit, make a temporary modification (insert a space and delete it immediately with backspace) and save it and close the wordfile. Assuming you run the Python script via an UltraEdit user tool, the following macro would do this:

InsertMode
ColumnModeOff
HexOff
RunTool "Case sensitive name of the python script running tool"
Open "Name of your wordfile with full path"
" "
Key BACKSPACE
CloseFile Save

Disadvantage of this solution: the wordfile will be added to the list of recently used files.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4062
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Wordfile.txt - Automatic refresh

Postby Spark » Thu Jul 27, 2006 7:13 am

Succeeded!
THX Spark
User avatar
Spark
Newbie
 
Posts: 2
Joined: Tue Jul 25, 2006 11:00 pm


Return to Syntax Highlighting