Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Merge 2 Scripts


  • Please log in to reply
2 replies to this topic
leonabou
  • New members
  • 2 posts
  • Last active: Oct 13 2015 11:18 PM
  • Joined: 11 Oct 2015

Hello, 

I'm trying to combine 2 scripts, in order not to run 2 instances of AHK. 

I'd like to toggle between my cmd-ctrl script, while still keeping the media controlls on at all time.

When I merge them, the whole script  becomes totaly inactive as the suspend overides all settings. 

A little help is needed, 

Thanks

 

;Pause Script
F15::Suspend,Toggle
return

;Mac Controls
LWIN::Ctrl 
Ctrl::Lwin
;Media Controls
f13::Send {PrintSCreen}
F12::Send {Volume_Up 3}
F11::Send {Volume_Down 3}
F10::Send {Volume_Mute}
F9::Send {Media_Next}
f8::Send {Media_play_pause}
f7::Send {Media_Prev} 



Xtra
  • Members
  • 954 posts
  • Last active: Jul 23 2016 09:04 PM
  • Joined: 29 Sep 2013
;Pause Script
F15::Suspend,Toggle

;Mac Controls
LWIN::Ctrl 
Ctrl::Lwin

;Media Controls
f13::
Suspend,Permit
Send {PrintSCreen}
return

F12::
Suspend,Permit
Send {Volume_Up 3}
return

F11::
Suspend,Permit
Send {Volume_Down 3}
return

F10::
Suspend,Permit
Send {Volume_Mute}
return

F9::
Suspend,Permit
Send {Media_Next}
return

f8::
Suspend,Permit
Send {Media_play_pause}
return

f7::
Suspend,Permit
Send {Media_Prev}
return

Suspend

 

HTH
 



leonabou
  • New members
  • 2 posts
  • Last active: Oct 13 2015 11:18 PM
  • Joined: 11 Oct 2015

Thanks a lot Xtra. 
Much appreciated.