Combineing scripts

Posts 1–2 of 2 · Page 1 of 1
Combineing scripts
i have a few scripts i would kinda like to switch between only way i can switch between them is to do f2 and go inn folder to open new, is there a way to make it so i can use f1-f5 to open them, if some one would help me with that it would be perfect here are the scripts:

#NoEnv
SendMode Input

~F6::Suspend

~F2::ExitApp

LCtrl & ~LButton::
Loop
If GetKeyState("LButton") {
Sleep,6
moveAmount := (moveAmount = 2) ?6 : 0
mouseXY(moveAmount,4.4)

}
else
break

Return



mouseXY(x,y)
{
DllCall("mouse_event",int,1,int,x,int,y,uint,0,uin t,0)
}

#NoEnv
;#NoTrayIcon
#KeyHistory, 0
#SingleInstance, Force

SendMode, Input

~F6::Suspend

~F2::ExitApp

Y( a, y ) {
DllCall( "mouse_event", int, 1, int, x, int, y, uint, 0, uint, 0 )
}
X( b, x ) {
DllCall( "mouse_event", int, 1, int, x, int, y, uint, 0, uint, 0 )
}

~LCtrl & ~LButton::
Loop {
Sleep, 25
Y( moveAmount, 5.9 )
X( moveAmount, -2 )
If Not GetKeyState( "LButton" ) {
Break
}
}
Return


#NoEnv
;#NoTrayIcon
#KeyHistory, 0
#SingleInstance, Force

SendMode, Input

~F6::Suspend

~F2::ExitApp

Y( a, y ) {
DllCall( "mouse_event", int, 1, int, x, int, y, uint, 0, uint, 0 )
}
X( b, x ) {
DllCall( "mouse_event", int, 1, int, x, int, y, uint, 0, uint, 0 )
}

~LCtrl & ~LButton::
Loop {
Sleep, 4
Y( moveAmount, 3.8 )
X( moveAmount, -0 )
If Not GetKeyState( "LButton" ) {
Break
}
}
Return

#NoEnv
SendMode Input

~F6::Suspend

~F2::ExitApp

LCtrl & ~LButton::
Loop
If GetKeyState("LButton", "LCtrl") {
Sleep, 5
moveAmount := (moveAmount = 2) ? 1 : -1
mouseXY(moveAmount,3.4)

}
else
break

Return



mouseXY(x,y)
{
DllCall("mouse_event",int,1,int,x,int,y,uint,0.5,u int,0.5)
}

#NoEnv
;#NoTrayIcon
#KeyHistory, 0
#SingleInstance, Force

SendMode, Input

~F6::Suspend

~F2::ExitApp

Y( a, y ) {
DllCall( "mouse_event", int, 1, int, x, int, y, uint, 0, uint, 0 )
}
X( b, x ) {
DllCall( "mouse_event", int, 1, int, x, int, y, uint, 0, uint, 0 )
}

~LCtrl & ~LButton::
{
Sleep, 40
Y( moveAmount, 30 )
X( moveAmount, -8 )
}


#NoEnv
SendMode Input

~F6::Suspend

~F2::ExitApp

LCtrl & ~LButton::
Loop
If GetKeyState("LButton", "LCtrl") {
Sleep, 5
moveAmount := (moveAmount = 2) ? 3 : 0
mouseXY(moveAmount,1.4)

}
else
break

Return



mouseXY(x,y)
{
DllCall("mouse_event",int,1,int,x,int,y,uint,0.5,u int,0.5)
}
@ @kenn9797

So Basically you want to use
Code:
Run, %A_WorkingDir%/Script/[Name].ahk
Since you want To use this to run scripts

Create a Folder which holds a Multi Script which is the one your gonna use for Multi Launching

Then Create another folder in it called Scripts that's where your gonna hold all the launch able scripts

For The Multi Script You want to do this
 
Multi Script Code
Code:
;Script 1
F1:
Run, %A_WorkingDir%/Script/[Script1 Name].ahk
Exit App

;Script 2
F2:
Run, %A_WorkingDir%/Script/[Script2 Name].ahk
Exit App

;Script 3
F3:
Run, %A_WorkingDir%/Script/[Script3 Name].ahk
Exit App

;Script 4
F4:
Run, %A_WorkingDir%/Script/[Script4 Name].ahk
Exit App

;Script 5
F5:
Run, %A_WorkingDir%/Script/[Script5 Name].ahk
Exit App

For Script 1 Do
 
Script 1 Code
Code:
;Script 2
F2:
Run, %A_WorkingDir%/Script/[Script2 Name].ahk
Exit App

;Script 3
F3:
Run, %A_WorkingDir%/Script/[Script3 Name].ahk
Exit App

;Script 4
F4:
Run, %A_WorkingDir%/Script/[Script4 Name].ahk
Exit App

;Script 5
F5:
Run, %A_WorkingDir%/Script/[Script5 Name].ahk
Exit App

;Your Script Below Here


For Script 2 Do
 
Script 2 Code
Code:
;Script 1
F1:
Run, %A_WorkingDir%/Script/[Script1 Name].ahk
Exit App

;Script 3
F3:
Run, %A_WorkingDir%/Script/[Script3 Name].ahk
Exit App

;Script 4
F4:
Run, %A_WorkingDir%/Script/[Script4 Name].ahk
Exit App

;Script 5
F5:
Run, %A_WorkingDir%/Script/[Script5 Name].ahk
Exit App

;Your Script Below Here


For Script 3 Do
 
Script 3 Code
Code:
;Script 1
F1:
Run, %A_WorkingDir%/Script/[Script1 Name].ahk
Exit App

;Script 2
F2:
Run, %A_WorkingDir%/Script/[Script2 Name].ahk
Exit App

;Script 4
F4:
Run, %A_WorkingDir%/Script/[Script4 Name].ahk
Exit App

;Script 5
F5:
Run, %A_WorkingDir%/Script/[Script5 Name].ahk
Exit App

;Your Script Below Here


For Script 4 Do
 
Script 4 Code
Code:
;Script 1
F1:
Run, %A_WorkingDir%/Script/[Script1 Name].ahk
Exit App

;Script 2
F2:
Run, %A_WorkingDir%/Script/[Script2 Name].ahk
Exit App

;Script 3
F3:
Run, %A_WorkingDir%/Script/[Script3 Name].ahk
Exit App

;Script 5
F5:
Run, %A_WorkingDir%/Script/[Script5 Name].ahk
Exit App

;Your Script Below Here


For Script 5 Do
 
Script 5 Code
Code:
;Script 1
F1:
Run, %A_WorkingDir%/Script/[Script1 Name].ahk
Exit App

;Script 2
F2:
Run, %A_WorkingDir%/Script/[Script2 Name].ahk
Exit App

;Script 3
F3:
Run, %A_WorkingDir%/Script/[Script3 Name].ahk
Exit App

;Script 4
F4:
Run, %A_WorkingDir%/Script/[Script4 Name].ahk
Exit App

;Your Script Below Here


Isn't the best for like a Tutorial but here you go.
Hope this can definitely Help you out or give you some information on what to do.
Enjoy!
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?