Sure, I can help you write an AutoHotkey (AHK) script to handle the wordwrap
toggling in PSPad. Here's how you can do it:
```autohotkey
#Persistent
SetTimer, CheckPSPadWordWrap, 1000
return
CheckPSPadWordWrap:
SetTitleMatchMode, 2
IfWinExist, PSPad
{
WinActivate, PSPad
WinWaitActive, PSPad
Send ^n ; Send Ctrl+N to ensure the WordWrap menu is active
Sleep 100 ; Wait for the menu to open
Send !v ; Send Alt+V to open the View menu
Sleep 100 ; Wait for the menu to open
Send w ; Send 'w' to toggle WordWrap
}
return
```
Here's what this script does:
- `#Persistent`: Keeps the script running after the initial auto-execute section
completes.
- `SetTimer, CheckPSPadWordWrap, 1000`: Sets a timer to execute the
`CheckPSPadWordWrap` function every 1000 milliseconds (1 second).
- The `CheckPSPadWordWrap` function does the following:
- Sets the title match mode to 2 (allowing partial title matches).
- Checks if a window with the title containing "PSPad" exists.
- If PSPad is open:
- Activates the PSPad window.
- Waits for the window to become active.
- Sends Ctrl+N to ensure the WordWrap menu is active.
- Sends Alt+V to open the View menu.
- Sends 'w' to toggle WordWrap.
- The script continuously checks if PSPad is open and toggles WordWrap if
necessary.
Save this script with a `.ahk` extension and run it. It should continuously
check and toggle the wordwrap setting in PSPad for you. Make sure to adjust the
timings or add delays if necessary, based on your system's responsiveness and
the speed at which PSPad responds to commands.
1001pisowifi (viz https://1001pisowifi.com/ )
[url=https://1001pisowifi.com/index.php/10-0-0-1-piso-wifi-pause-time/]10.0.1pis
owifi[/url]
--
<https://forum.pspad.com/read.php?2,75116,78817>
PSPad freeware editor https://www.pspad.com