Page 1 of 1

AutoHotkey -- single line hotstrings

Posted: Sat Feb 24, 2024 5:52 pm
by Axolotl
I am not sure if this it is allowed to put this here. So I start with only a few examples.
Please keep in mind: You need the AutoHotkey Tool running and the below code inside a running script. (but you should know about that)

Code: Select all

Enter i.e. ;-line<space> and you get this line 
; ---------------------------------------------------------------------------------------------------------------------
Single line hotstrings for programming in PUREBASIC

Code: Select all

;> Lines of 120 chars 
;> 
:co:;:line::{;}:{: 117}{Enter}         ; line with ':' colon 
:co:;'line::{;}'{' 117}{Enter}         ; line with ''' 
:co:;-line::{;} {- 117}{Enter}         ; line with ~~~ 
:co:;~line::{;}~{~ 117}{Enter}         ; line with  -- 
:co:;"line::{;}"{" 117}{Enter}         ; line with """ 
:co:;=line::{;}={= 117}{Enter}         ; double line '=' 
:co:;*line::{;}*{* 117}{Enter}         ; line with '*' asterisks 
:co:;_line::{;}_{_ 117}{Enter}         ; line with % 
:co:;%line::{;}%{% 117}{Enter}         ; line with % 
;> 
:co:;/line::{;}/{- 116}\{Enter}        ; line with /- .. -\ 
:co:;\line::{;}\{- 116}/{Enter}        ; line with \- .. -/ 
:co:;+line::{;}{+}{- 116}{+}{Enter}    ; line with +- .. -+ 
;> 
:co:;#line::{;}{#}{# 117}{Enter}       ; line with # 
If it's not okay, I apologize in advance and won't do it again. Otherwise I would have more.

Happy coding and stay healthy.

Re: AutoHotkey -- single line hotstrings

Posted: Sat Feb 24, 2024 9:42 pm
by idle
hmmm no maybe not so helpful for purebasic when you can just do that

Code: Select all

s.s = Space(80) : FillMemory(@s,80,'=',#PB_Unicode) 
Debug s 

Re: AutoHotkey -- single line hotstrings

Posted: Sat Feb 24, 2024 11:55 pm
by mk-soft

Code: Select all

a$ = LSet("", 80, "=")
Debug a$

Re: AutoHotkey -- single line hotstrings

Posted: Sun Feb 25, 2024 4:17 am
by Rinzwind
Misunderstanding of use case. These are commands used to insert certain text into the PB source editor by using hotstrings.

https://www.autohotkey.com/docs/v1/Hotstrings.htm

Re: AutoHotkey -- single line hotstrings

Posted: Sun Feb 25, 2024 4:44 pm
by Axolotl
Yes, thanks Rinzwind.
I should have added the link to the description. I thought this is for AutoHotkey-Users. Not sure if we have any here.