AutoHotkey -- single line hotstrings

Share your advanced PureBasic knowledge/code with the community.
Axolotl
Enthusiast
Enthusiast
Posts: 449
Joined: Wed Dec 31, 2008 3:36 pm

AutoHotkey -- single line hotstrings

Post 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.
Mostly running PureBasic <latest stable version and current alpha/beta> (x64) on Windows 11 Home
User avatar
idle
Always Here
Always Here
Posts: 5096
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: AutoHotkey -- single line hotstrings

Post 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 
User avatar
mk-soft
Always Here
Always Here
Posts: 5406
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: AutoHotkey -- single line hotstrings

Post by mk-soft »

Code: Select all

a$ = LSet("", 80, "=")
Debug a$
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Rinzwind
Enthusiast
Enthusiast
Posts: 638
Joined: Wed Mar 11, 2009 4:06 pm
Location: NL

Re: AutoHotkey -- single line hotstrings

Post 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
Axolotl
Enthusiast
Enthusiast
Posts: 449
Joined: Wed Dec 31, 2008 3:36 pm

Re: AutoHotkey -- single line hotstrings

Post 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.
Mostly running PureBasic <latest stable version and current alpha/beta> (x64) on Windows 11 Home
Post Reply