Home
Forum
Software
Mouser's Software
NANY: New Apps for the New Year
Friends of DC
Forum Coding Snacks
Editorials
Daily Blog
Monthly Newsletter
Mini Reviews
Favorite Websites
Archives
Articles
Historical Archives
Testimonials: What Folks Say About Us
Licensing
Get a License Key
Commercial Licensing
Help
Search
FAQs
DonationCoder Sitemap
Live Chat (Discord)
Contact Us
About Us
Donate
Home
Forum
Software
Mouser's Software
NANY: New Apps for the New Year
Friends of DC
Forum Coding Snacks
Editorials
Daily Blog
Monthly Newsletter
Mini Reviews
Favorite Websites
Archives
Articles
Historical Archives
Testimonials: What Folks Say About Us
Licensing
Get a License Key
Commercial Licensing
Help
Search
FAQs
DonationCoder Sitemap
Live Chat (Discord)
Contact Us
About Us
Donate
This topic
This board
Entire forum
Website and forum (google)
Member search
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
6 Months
Forever
Login with username, password and session length
Friday March 21, 2025, 1:03 pm
Proudly celebrating 15+ years online.
Donate now
to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
Forum Home
Search
Login
Register
Recent Topics
Go To..
Recently updated topics
Recent posts (compact)
Recent posts (full text)
DonationCoder.com Forum
»
DonationCoder.com Software
»
DC Member Programs and Projects
»
PublicDomainVic
»
INIalaContro.ahk - AutoHotkey script to generate Launcher.ini
« previous
next »
New Topic
Print
Pages: [
1
] •
bottom
Author
Topic: INIalaContro.ahk - AutoHotkey script to generate Launcher.ini (Read 3854 times)
publicdomain
Moderator
Joined in 2019
Posts:
732
Call me Vic!
INIalaContro.ahk - AutoHotkey script to generate Launcher.ini
«
on:
April 17, 2022, 06:40 PM »
Surprise release! (Not even I knew it would be finished today
)
Code: Autohotkey
[Select]
; INIalaContro.ahk
; Made for: Contro
; Thread: https://www.donationcoder.com/forum/index.php?topic=52258.0
;
; Author: publicdomainvic
; License: CC0 1.0 Universal - Public Domain Dedication
; Website: https://publicdomain.is
; Get folder
FileSelectFolder
,
Folder
Folder
:=
RegExReplace
(
Folder
,
"\\$"
)
; Open Launcher.ini for write
file
:=
FileOpen
(
Folder
.
"\\Launcher.ini"
,
"w `n"
)
; Write header
file
.
WriteLine
(
"[General]"
)
file
.
WriteLine
(
"numRows=25"
)
file
.
WriteLine
(
"numCols=9"
)
file
.
WriteLine
(
"[Titles]"
)
; Set paths array
pathArray
:=
Array
(
)
; Loop files and folders
Loop
,
Files
,
%Folder%
\
*.*,
FD
{
; Split the path
SplitPath
,
A_LoopFileLongPath
,
OutFileName
,
OutDir
,
OutExtension
,
OutNameNoExt
,
OutDrive
; Process lnk and url
Switch
A_LoopFileExt
{
Case
"lnk"
:
FileGetShortcut
,
%A_LoopFileLongPath%
,
OutTarget
file
.
WriteLine
(
"Title"
.
A_Index
.
"="
.
OutNameNoExt
)
pathArray
.
Push
(
OutTarget
)
Case
"url"
:
IniRead
,
ExtractedURL
,
%A_LoopFileLongPath%
,
InternetShortcut
,
URL
file
.
WriteLine
(
"Title"
.
A_Index
.
"="
.
OutNameNoExt
)
pathArray
.
Push
(
ExtractedURL
)
Default
:
file
.
WriteLine
(
"Title"
.
A_Index
.
"="
.
OutNameNoExt
)
pathArray
.
Push
(
A_LoopFileLongPath
)
}
}
; Print paths
file
.
WriteLine
(
"[Paths]"
)
; Loop paths array for write
for index
,
element in pathArray
{
file
.
WriteLine
(
"Path"
.
index
.
"="
.
element
)
}
; Close the file
file
.
Close
(
)
; Advise user
MsgBox
Launcher
.
ini created!
INIalaContro.ahk
file attached.
My name's
Victor
but do feel free to call me
Vic
! (now known as "
paradisusvic
")
❤️
Support
on
Patreon
@
www.patreon.com/paradisusis
✉
New Email/Paypal:
paradisusvic
﹫
gmail.com
«
Last Edit: April 23, 2022, 04:51 AM by publicdomain
»
Contro
Supporting Member
Joined in 2007
Posts:
3,943
Re: INIalaContro.ahk - AutoHotkey script to generate Launcher.ini
«
Reply #1 on:
April 18, 2022, 04:25 AM »
Running to try !!!!!1
«
Last Edit: April 23, 2022, 04:51 AM by publicdomain
»
Contro
Supporting Member
Joined in 2007
Posts:
3,943
Re: INIalaContro.ahk - AutoHotkey script to generate Launcher.ini
«
Reply #2 on:
April 18, 2022, 04:33 AM »
I think you are specially inspired !!!!!!!!!!!
«
Last Edit: April 23, 2022, 04:51 AM by publicdomain
»
publicdomain
Moderator
Joined in 2019
Posts:
732
Call me Vic!
Re: INIalaContro.ahk - AutoHotkey script to generate Launcher.ini
«
Reply #3 on:
April 18, 2022, 10:38 AM »
Glad you liked it
I'm happy to help
My name's
Victor
but do feel free to call me
Vic
! (now known as "
paradisusvic
")
❤️
Support
on
Patreon
@
www.patreon.com/paradisusis
✉
New Email/Paypal:
paradisusvic
﹫
gmail.com
«
Last Edit: April 23, 2022, 04:52 AM by publicdomain
»
New Topic
Print
Pages: [
1
] •
top
« previous
next »
DonationCoder.com Forum
»
DonationCoder.com Software
»
DC Member Programs and Projects
»
PublicDomainVic
»
INIalaContro.ahk - AutoHotkey script to generate Launcher.ini