Hi guys, I am a newbie here so bear with me
Just this week I discovered I can use AHK for text expansion. The hotstring I created works perfectly in all programs except the one I really need it for which is Vectorworks. When I execute the hotstring it will place several blank rows ahead of the expanded text. If I have 4 lines of text I get 3 blank rows ahead of it. If I have 5 lines of text I get 4 blank rows ahead of it and so on. Is there any way to overcome this? Vectorworks is the only program I use this hotkey in so if there is a way to get the cursor to automatically go the beginning of the expanded text and backspace through the empty rows to eliminate them that would be great. Currently I have to manually move the cursor up there and delete them. Any help is appreciated.
Here is my hotstring
:R:wmsl::Proposed System`r3 - 150' leach lines`r14" trench depth`r24" trench width
Here is how it looks when I use it in Vectorworks
Blank lines inserted ahead of expanded text
Blank lines inserted ahead of expanded text
- Attachments
-
- VW hotstring.PNG (5.84 KiB) Viewed 960 times
Re: Blank lines inserted ahead of expanded text
Please have a try what happens if you replace those `r with `n
Re: Blank lines inserted ahead of expanded text
I gave it a try but nothing changed. Thanks for the response tho!
Re: Blank lines inserted ahead of expanded text
How would I write a script that move the cursor from the end of "width" to the front of "Proposed" and then backspace roughly 70 times to eliminate the blank spaces?
- AlphaBravo
- Posts: 586
- Joined: 29 Sep 2013, 22:59
Re: Blank lines inserted ahead of expanded text
try without raw option
Code: Select all
::wmsl::Proposed System`r3 - 150' leach lines`r14" trench depth`r24" trench width
; and
::wmsl::Proposed System`r`n3 - 150' leach lines`r`n14" trench depth`r`n24" trench width
;or
::wmsl::
sendinput Proposed System`r`n3 - 150' leach lines`r`n14" trench depth`r`n24" trench width
return
Re: Blank lines inserted ahead of expanded text
Depends on how you can navigate text but if {home} takes you to the beginning of the line sending {up} will move a line up socadkid wrote:How would I write a script that move the cursor from the end of "width" to the front of "Proposed" and then backspace roughly 70 times to eliminate the blank spaces?
Code: Select all
Send, {home}{up 4}{bs 4}
Who is online
Users browsing this forum: dunnerca and 131 guests