Skip to content

Commit

Permalink
Add base libs, sample buttons, sample images, sample sounds, sample c…
Browse files Browse the repository at this point in the history
…onfigs and plugins folder.

Signed-off-by: elModo7 <[email protected]>
  • Loading branch information
elModo7 committed Apr 12, 2020
1 parent 158a0bf commit 86b22e4
Show file tree
Hide file tree
Showing 102 changed files with 1,037 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 15.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#NotrayIcon
Run, C:\ProgramData\Nova Macros
16 changes: 16 additions & 0 deletions 2.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#NoEnv
#SingleInstance, Force
SetBatchLines, -1
#NoTrayIcon
SetWorkingDir C:\Windows\System32

global Ejecutable := "mspaint.exe"

IfWinExist, ahk_exe %Ejecutable%
{
WinActivate, ahk_exe %Ejecutable%
}
else
{
Run, C:\Windows\System32\mspaint.exe
}
6 changes: 6 additions & 0 deletions 3.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#NoEnv
#SingleInstance, Force
SetBatchLines, -1
#NoTrayIcon
SetWorkingDir C:\Windows\System32
Run, C:\Windows\System32\cmd.exe
6 changes: 6 additions & 0 deletions 4.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#NoEnv
#SingleInstance, Force
SetBatchLines, -1
#NoTrayIcon
SetWorkingDir C:\Users\victo\Desktop
Run, https://github.com/elmodo7
3 changes: 3 additions & 0 deletions Game1.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#NoEnv
#NoTrayIcon
Msgbox, League of Legends Button
3 changes: 3 additions & 0 deletions Game2.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#NoEnv
#NoTrayIcon
Msgbox, Apex Legends Button
3 changes: 3 additions & 0 deletions Game3.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#NoEnv
#NoTrayIcon
Msgbox, Minecraft Button
3 changes: 3 additions & 0 deletions Game4.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#NoEnv
#NoTrayIcon
Msgbox, 7Days2Die Button
6 changes: 6 additions & 0 deletions OBS13.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#NoEnv
#SingleInstance, Force
SetBatchLines, -1
#NoTrayIcon
SetWorkingDir C:\Users\victo\Desktop
Run, C:\Users\%A_UserName%\Videos
16 changes: 16 additions & 0 deletions OBS14.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#NoEnv
#SingleInstance, Force
SetBatchLines, -1
#NoTrayIcon
SetWorkingDir C:\Program Files\obs-studio\bin\64bit

global Ejecutable := "obs64.exe"

IfWinExist, ahk_exe %Ejecutable%
{
WinActivate, ahk_exe %Ejecutable%
}
else
{
Run, C:\Program Files\obs-studio\bin\64bit\obs64.exe
}
Empty file added conf/DualButtons.txt
Empty file.
1 change: 1 addition & 0 deletions conf/ExtensionScripts.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ahk
2 changes: 2 additions & 0 deletions conf/FolderButtons.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
games|1|5
games|Game|OBS
2 changes: 2 additions & 0 deletions conf/ProgramPages.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
obs64.exe|explorer.exe|chrome.exe
0|3|1
1 change: 1 addition & 0 deletions conf/ScriptEditorPath.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
C:\Windows\System32\notepad.exe
1 change: 1 addition & 0 deletions conf/ip.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
127.0.0.1:7778
34 changes: 34 additions & 0 deletions lib/nm_msg.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
global txtNMMsg
nmMsg(nmMsg,time,rainbow:=1)
{
WinGetPos,X,Y,,,Nova Macros Client
nfX := X
nfY := Y + 500
Gui nmMsg:+ToolWindow -Caption +AlwaysOnTop
Gui nmMsg:Color, Black
Gui nmMsg:Font, s24 cWhite, Press Start 2P
Gui nmMsg:Add, Text, vtxtNMMsg x24 y48 w1024 h60 +0x200 +Center +BackgroundTrans, % nmMsg
Gui nmMsg:Show, x%nfX% y%nfY% w1024 h159,msgNovaMacros
WinSet, TransColor, Black,msgNovaMacros
if(rainbow)
{
Loop, % time
{
GuiControl, nmMsg: +cfb0505 +Redraw, txtNMMsg
Sleep, 100
GuiControl, nmMsg: +cfb7607 +Redraw, txtNMMsg
Sleep, 100
GuiControl, nmMsg: +cf4ea07 +Redraw, txtNMMsg
Sleep, 100
GuiControl, nmMsg: +c61f205 +Redraw, txtNMMsg
Sleep, 100
GuiControl, nmMsg: +c00f6cb +Redraw, txtNMMsg
Sleep, 100
}
}
else
{
Sleep, 1000 * time
}
Gui, nmMsg: Destroy
}
199 changes: 199 additions & 0 deletions lib/script_generator/HotkeyCreator.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
#NoEnv
#SingleInstance,Force
global WindowsKey, Edt1, Edt2
global buttonName = %0%
global buttonPath := "C:\ProgramData\Nova Macros\" buttonName ".ahk"
WindowsKey := 0

Gui, +hwndHw
Gui, Color, , 4444444
Gui, Font, s14 cffff00 TAhoma
Gui,Add,Hotkey, W280 x-990 y6 vEdt1 gEdt1 hwndHedt1
Gui,Add,Edit, x10 y6 w280 vEdt2 hwndHedt2 Background00ffff, None
Gui, Font, s10 c000000 TAhoma
Gui Add, CheckBox, x16 y48 w190 h23 gWindowsKey vWindowsKey, Windows Key Pressed
Gui Font, Bold
Gui Add, Button, x200 y72 w95 h30 gCreate, APPLY
Gui,Show, w300 h108, Generate Macro

OnMessage(0x133, "Focus_Hk")
SetTimer, FcEdt, 250
return

Focus_Hk() {
GuiControl, Focus, Edt1
}

FcEdt:
if !WinActive("ahk_id " Hw)
GuiControl, Focus, Edt2
return

Edt1:
GuiControlGet, Ehk,, Edt1
StringUpper, Ehk, Ehk , T
Ehk:=StrReplace(Ehk, "`+", "Shift + "), Ehk:=StrReplace(Ehk, "`!", "Alt + "), Ehk:=StrReplace(Ehk, "`^", "Ctrl + ")
if Ehk
GuiControl,, Edt2, % Ehk
else GuiControl,, Edt2, None
Return

WindowsKey:
WindowsKey := !WindowsKey
return

Create:
if FileExist(buttonPath)
{
OnMessage(0x44, "OnMsgBox")
MsgBox 0x34, Overwrite?, This button already has a macro file`, do you want to overwrite it?`n`nPrevious function will be lost!
OnMessage(0x44, "")

IfMsgBox Yes, {
Generar()
}
}
else
{
Generar()
}
return

Generar()
{
Gui, Submit, NoHide
Key := SubStr(Edt1, StrLen(Edt1), 1)
if(Key = "+")
{
StringTrimRight, EdtNoPlusKey, Edt, 1
plusKey := 1
}
else
{
plusKey := 0
}
if(!plusKey)
{
mas := InStr(Edt1,"+",0,0)
acento := InStr(Edt1,"^",0,0)
admiracion := InStr(Edt1,"!",0,0)
if(mas > acento && mas > admiracion)
{
Modificadores := SubStr(Edt1, 1, mas)
}
else if(acento > mas && acento > admiracion)
{
Modificadores := SubStr(Edt1, 1, acento)
}
else if(admiracion > acento && admiracion > mas)
{
Modificadores := SubStr(Edt1, 1, admiracion)
}
if(mas = 0 && acento = 0 && admiracion = 0 && WindowsKey = 0)
{
hayModificadores := 0
}else
{
hayModificadores := 1
}
StringReplace, Key, Edt1, %Modificadores%,,All
Key = {%Key%}
}
else
{
mas := InStr(EdtNoPlusKey,"+",0,0)
acento := InStr(EdtNoPlusKey,"^",0,0)
admiracion := InStr(EdtNoPlusKey,"!",0,0)
if(mas > acento && mas > admiracion)
{
Modificadores := SubStr(EdtNoPlusKey, 1, mas)
}
else if(acento > mas && acento > admiracion)
{
Modificadores := SubStr(EdtNoPlusKey, 1, acento)
}
else if(admiracion > acento && admiracion > mas)
{
Modificadores := SubStr(EdtNoPlusKey, 1, admiracion)
}
if(mas = 0 && acento = 0 && admiracion = 0 && WindowsKey = 0)
{
hayModificadores := 0
}else
{
hayModificadores := 1
}
Key := "+"
}

strModificadoresDown := ""
strModificadoresUp := ""
if(Instr(Modificadores, "!"))
{
alt := 1
strModificadoresDown := strModificadoresDown "{Alt Down}"
strModificadoresUp := strModificadoresUp "{Alt Up}"
}
else
{
alt := 0
}
if(Instr(Modificadores, "^"))
{
control := 1
strModificadoresDown := strModificadoresDown "{Control Down}"
strModificadoresUp := strModificadoresUp "{Control Up}"
}
else
{
control := 0
}
if(Instr(Modificadores, "+"))
{
shift := 1
strModificadoresDown := strModificadoresDown "{Shift Down}"
strModificadoresUp := strModificadoresUp "{Shift Up}"
}
else
{
shift := 0
}
if(WindowsKey)
{
strModificadoresDown := strModificadoresDown "{LWin Down}"
strModificadoresUp := strModificadoresUp "{LWin Up}"
}
if(!hayModificadores)
{
src =
(Ltrim
#NoEnv
#SingleInstance, Force
SetBatchLines, -1
#NoTrayIcon
Send, %Key%
)
}
else
{
src =
(Ltrim
#NoEnv
#SingleInstance, Force
SetBatchLines, -1
#NoTrayIcon
Send, %strModificadoresDown%
Sleep, 30
Send, %Key%
Sleep, 30
Send, %strModificadoresUp%
Sleep, 30
)
}
FileDelete, % buttonPath
FileAppend, %src%, % buttonPath
ExitApp
}

GuiClose:
ExitApp
Loading

0 comments on commit 86b22e4

Please sign in to comment.