 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
automaticman
Joined: 27 Oct 2006 Posts: 322
|
Posted: Fri Jul 11, 2008 7:32 am Post subject: Best WordPad alternative for .rtf files |
|
|
What could be improved on WordPad
1. faster to open rtf files
2. the last windows size and position is saved (which is not saved in WordPad, at least here)
Are there any rtf editor alternatives you can recommend? |
|
| Back to top |
|
 |
Slanter
Joined: 28 May 2008 Posts: 259 Location: Minnesota, USA
|
Posted: Fri Jul 11, 2008 7:34 am Post subject: |
|
|
If you're looking to write a script, corrupt has a nice script that you could use. _________________ Unless otherwise stated, all code is untested
(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination. |
|
| Back to top |
|
 |
automaticman
Joined: 27 Oct 2006 Posts: 322
|
Posted: Fri Jul 11, 2008 7:39 am Post subject: |
|
|
| Thanks for the link. No I was not planning to write a script for this purpose. Only if there are no (better) alternatives I would try to write a script which remembers the last WordPad window size and position coordinates. |
|
| Back to top |
|
 |
Slanter
Joined: 28 May 2008 Posts: 259 Location: Minnesota, USA
|
Posted: Fri Jul 11, 2008 7:52 am Post subject: |
|
|
ah, you could create a script that you use to launch wordpad that would check it's position and sizing every few seconds and then automatically set those when you open it again... maybe something like
| Code: | #singleinstance off
; Read Ini Data
IniRead, Width, ;...
IniRead, Height, ;...
IniRead, X, ;...
IniRead, Y, ;...
; Run word pad, get PID
Run, PathToWordpad,,, PID
; Wait for window to exist
WinWait, ahk_pid %PID%
; Resize/Move window
WinMove, ahk_pid %PID%,, X, Y, Width, Height
SetTimer, CheckPos, 5000
Return
CheckPos:
; Check if window exists
IfWinNotExist, ahk_pid %PID%
{
; Write width, height, x, y to ini file
IniWrite, %X% ;...
ExitApp
}
; Get window position/size
WinGetPos, X, Y, Width, Height, ahk_pid %PID%
return |
_________________ Unless otherwise stated, all code is untested
(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination. |
|
| Back to top |
|
 |
automaticman
Joined: 27 Oct 2006 Posts: 322
|
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|