Skip to content

Commit b0f21d2

Browse files
committed
Fill in code generator article.
Signed-off-by: elmodo7 <elmodo7yt@gmail.com>
1 parent 93fb248 commit b0f21d2

File tree

16 files changed

+269
-8
lines changed

16 files changed

+269
-8
lines changed

personal_projects/nova_macros/article.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,19 @@ <h1 id="nova-macros-a-stream-deck-clone"><strong>Nova Macros (<em>A Stream Deck
2626
</div>
2727
</a>
2828
</div>
29+
<div class="col-md-3 col-sm-6 col-12">
30+
<a href="./?article=personal_projects/script_generator/article.html">
31+
<div class="info-box bg-gradient-primary shadow-lg">
32+
<span class="info-box-icon"><i class="fas fa-book"></i></span>
33+
<div class="info-box-content">
34+
<span class="info-box-number">Related Article</span>
35+
<span class="progress-description">
36+
Script Generator
37+
</span>
38+
</div>
39+
</div>
40+
</a>
41+
</div>
2942
</div>
3043
<div class="cl-preview-section">
3144
<p><img class="shadow-lg article-inner-image" src="https://github.com/user-attachments/assets/272423c4-7dc6-471c-83c5-c8145368fcc8" alt="preview"></p>
Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
<div>
2+
<div>
3+
<h5>This is a <b>submodule</b> for my <a href="./?article=personal_projects/nova_macros/article.html">Nova Macros app</a> for generating <b>code snippets without writing any single line of code</b>.<h5>
4+
<br>
5+
</div>
6+
<div class="row">
7+
<div class="col-md-3 col-sm-6 col-12">
8+
<a href="./?article=personal_projects/nova_macros/article.html">
9+
<div class="info-box bg-gradient-primary shadow-lg">
10+
<span class="info-box-icon"><i class="fas fa-book"></i></span>
11+
<div class="info-box-content">
12+
<span class="info-box-number">Related Article</span>
13+
<span class="progress-description">
14+
Nova Macros
15+
</span>
16+
</div>
17+
</div>
18+
</a>
19+
</div>
20+
<div class="col-md-3 col-sm-6 col-12">
21+
<a href="https://github.com/elModo7/Nova-Macros-Offline" target="_blank">
22+
<div class="info-box bg-gradient-dark shadow-lg">
23+
<span class="info-box-icon"><i class="fab fa-github"></i></span>
24+
<div class="info-box-content">
25+
<span class="info-box-number">Project's GitHub</span>
26+
<span class="progress-description">
27+
Nova Macros
28+
</span>
29+
</div>
30+
</div>
31+
</a>
32+
</div>
33+
</div>
34+
<br>
35+
<h3>💻 Some Examples:</h4>
36+
<br>
37+
<h4>File Executor</h4><hr>
38+
<img class="shadow-lg article-inner-image" src="static/img/personal_projects/script_generator/file_executor.png"></img><br><br>
39+
<h5>Generates the following code:</h5>
40+
<pre class="col-md-12"><code class="language-autohotkey">#NoEnv
41+
#SingleInstance, Force
42+
SetBatchLines, -1
43+
#NoTrayIcon
44+
SetWorkingDir C:\Users\example\AppData\Local\SourceTree\app-3.4.19
45+
46+
global Ejecutable := "SourceTree.exe"
47+
48+
IfWinExist, ahk_exe %Ejecutable%
49+
{
50+
WinActivate, ahk_exe %Ejecutable%
51+
}
52+
else
53+
{
54+
Run, C:\Users\example\AppData\Local\SourceTree\app-3.4.19\SourceTree.exe
55+
}</code></pre>
56+
<br><br>
57+
58+
<h4>CMD Runner</h4><hr>
59+
<img class="shadow-lg article-inner-image" src="static/img/personal_projects/script_generator/cmd_runner.png"></img><br><br>
60+
<h5>Generates the following code:</h5>
61+
<pre class="col-md-12"><code class="language-autohotkey">#NoEnv
62+
#SingleInstance, Force
63+
SetBatchLines, -1
64+
#NoTrayIcon
65+
SetWorkingDir C:\Users\example\Desktop
66+
Run, mspaint.exe</code></pre>
67+
<br><br>
68+
69+
<h4>Hotkey Sender</h4><hr>
70+
<img class="shadow-lg article-inner-image" src="static/img/personal_projects/script_generator/hotkey_sender.png"></img><br><br>
71+
<h5>Generates the following code:</h5>
72+
<pre class="col-md-12"><code class="language-autohotkey">#NoEnv
73+
#SingleInstance, Force
74+
SetBatchLines, -1
75+
#NoTrayIcon
76+
Sleep, 25000 ; Initial delay before firing the button combination
77+
Send, {Alt Down}{Control Down}{Shift Down}{LWin Down}
78+
Sleep, 30
79+
Send, {f}
80+
Sleep, 30
81+
Send, {Alt Up}{Control Up}{Shift Up}{LWin Up}
82+
Sleep, 30</code></pre>
83+
<br><br>
84+
85+
<h4>Text Sender</h4><hr>
86+
<img class="shadow-lg article-inner-image" src="static/img/personal_projects/script_generator/text_sender.png"></img><br><br>
87+
<h5>Generates the following code:</h5>
88+
<pre class="col-md-12"><code class="language-autohotkey">#NoEnv
89+
#SingleInstance, Force
90+
SetBatchLines, -1
91+
#NoTrayIcon
92+
SetKeyDelay, 50, 20
93+
text =
94+
(
95+
This is a text that will be sent
96+
)
97+
SendRaw, % text</code></pre>
98+
<br><br>
99+
100+
<h4><b>OBS Dynamic Generator</b></h4><hr>
101+
<h5>This script first does a <b>query to OBS</b> to get its <b>scenes and list them</b>.</h5>
102+
<img class="shadow-lg article-inner-image" src="static/img/personal_projects/script_generator/obs_dynamic_generator.png"></img><br><br>
103+
<h5>Generates the following code:</h5>
104+
<pre class="col-md-12"><code class="language-autohotkey">#NoEnv
105+
#NoTrayIcon
106+
#SingleInstance, Force
107+
SetBatchLines, -1
108+
#Include, &lt;nm_msg&gt;
109+
DetectHiddenWindows, On
110+
IfWinNotExist, ahk_exe obs64.exe
111+
{
112+
nmMsg("OBS Not Detected!",2)
113+
ExitApp
114+
}
115+
new LlamadaWS("ws://127.0.0.1:4455/scene/recording_scene")
116+
return
117+
118+
; ************************
119+
; WEB SOCKET STUFF
120+
; ************************
121+
class WebSocket
122+
{
123+
__New(WS_URL)
124+
{
125+
static wb
126+
127+
; Create an IE instance
128+
Gui, +hWndhOld
129+
Gui, New, +hWndhWnd
130+
this.hWnd := hWnd
131+
Gui, Add, ActiveX, vWB, Shell.Explorer
132+
Gui, %hOld%: Default
133+
134+
; Write an appropriate document
135+
WB.Navigate...
136+
...</code></pre>
137+
<br><br>
138+
139+
<h4><b>OBS Sound Pannel</b></h4><hr>
140+
<h5>This script first does a query to OBS to get its <b>sound devices</b> and their settings and then allows you to <b>modify their status in real time</b>.</h5>
141+
<img class="shadow-lg article-inner-image" src="static/img/personal_projects/script_generator/obs_sound_pannel.png"></img><br><br>
142+
<br><br><br><hr>
143+
144+
145+
<h3>Menu Preview</h3>
146+
<img class="shadow-lg article-inner-image img-fluid" src="static/img/personal_projects/script_generator/preview.gif">
147+
<!--<div class="d-flex">
148+
<img class="shadow-lg article-inner-image img-fluid me-3" style="width:50%;" src="static/img/personal_projects/script_generator/preview.png">&nbsp;
149+
<img class="shadow-lg article-inner-image img-fluid" style="width:50%;" src="static/img/personal_projects/script_generator/preview.gif">
150+
</div>-->
151+
<br>
152+
</div>
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
#NoEnv
2+
#SingleInstance, Force
3+
SetBatchLines, -1
4+
#NoTrayIcon
5+
SetWorkingDir C:\Users\example\AppData\Local\SourceTree\app-3.4.19
6+
7+
global Ejecutable := "SourceTree.exe"
8+
9+
IfWinExist, ahk_exe %Ejecutable%
10+
{
11+
WinActivate, ahk_exe %Ejecutable%
12+
}
13+
else
14+
{
15+
Run, C:\Users\example\AppData\Local\SourceTree\app-3.4.19\SourceTree.exe
16+
}
17+
18+
19+
20+
21+
22+
23+
24+
; **********
25+
#NoEnv
26+
#SingleInstance, Force
27+
SetBatchLines, -1
28+
#NoTrayIcon
29+
SetWorkingDir C:\Users\example\Desktop
30+
Run, mspaint.exe
31+
32+
33+
; *****************
34+
#NoEnv
35+
#SingleInstance, Force
36+
SetBatchLines, -1
37+
#NoTrayIcon
38+
SetKeyDelay, 50, 20
39+
text =
40+
(
41+
This is a text that will be sent
42+
)
43+
SendRaw, % text
44+
45+
46+
; *******************
47+
#NoEnv
48+
#SingleInstance, Force
49+
SetBatchLines, -1
50+
#NoTrayIcon
51+
Sleep, 25000 ; Initial delay before firing the button combination
52+
Send, {Alt Down}{Control Down}{Shift Down}{LWin Down}
53+
Sleep, 30
54+
Send, {f}
55+
Sleep, 30
56+
Send, {Alt Up}{Control Up}{Shift Up}{LWin Up}
57+
Sleep, 30
58+
59+
60+
; **********************
61+
#NoEnv
62+
#NoTrayIcon
63+
#SingleInstance, Force
64+
SetBatchLines, -1
65+
#Include, <nm_msg>
66+
DetectHiddenWindows, On
67+
IfWinNotExist, ahk_exe obs64.exe
68+
{
69+
nmMsg("OBS Not Detected!",2)
70+
ExitApp
71+
}
72+
new LlamadaWS("ws://127.0.0.1:4455/scene/recording_scene")
73+
return
74+
75+
; ************************
76+
; WEB SOCKET STUFF
77+
; ************************
78+
class WebSocket
79+
{
80+
__New(WS_URL)
81+
{
82+
static wb
83+
84+
; Create an IE instance
85+
Gui, +hWndhOld
86+
Gui, New, +hWndhWnd
87+
this.hWnd := hWnd
88+
Gui, Add, ActiveX, vWB, Shell.Explorer
89+
Gui, %hOld%: Default
90+
91+
; Write an appropriate document
92+
WB.Navigate("about:<!DOCTYPE html><meta http-equiv='X-UA-Compatible'"
93+
. "content='IE=edge'><body></body>")
94+
...
95+
...
96+
...
8.87 KB
Loading
11.6 KB
Loading
7.96 KB
Loading
18.4 KB
Loading
11.1 KB
Loading
64.6 KB
Loading
236 KB
Loading

0 commit comments

Comments
 (0)