-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8126723
commit 97bae45
Showing
3 changed files
with
339 additions
and
348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | ||
#SingleInstance, force | ||
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | ||
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | ||
SetBatchLines, -1 | ||
#KeyHistory 0 | ||
ListLines Off | ||
|
||
setMouseDelay, -1 | ||
SetKeyDelay, 10 | ||
SetDefaultMouseSpeed, 0 | ||
SetWinDelay, -1 | ||
SetControlDelay, -1 | ||
|
||
arr:=StrSplit(clipboard, "`n", "`r") | ||
finalStr:="" | ||
for k,v in arr { | ||
if (Trim(v)) { | ||
packageName:=string_getBetween(v, """", """", false) | ||
if (packageName) { | ||
finalStr.=" """ packageName "@latest""" | ||
} | ||
} | ||
} | ||
toRun:= "yarn add -D" finalStr "`r" | ||
|
||
if winactive("ahk_exe code.exe") { | ||
vscodeRun(toRun) | ||
} else { | ||
clipboard:=toRun | ||
} | ||
|
||
return | ||
vscodeRun(g4Commands) | ||
{ | ||
MouseGetPos, Xpos, Ypos | ||
Click, 1161, 1038 | ||
|
||
Send, % g4Commands | ||
MouseMove, Xpos, Ypos | ||
} | ||
|
||
f3::Exitapp |
Oops, something went wrong.