Advertisement
ChuseCubr_

KeyComboGenerator

Apr 29th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Option Explicit
  2.  
  3. dim modifier:modifier=inputbox("Modifier Key","Key Combo Binder")
  4. dim modifierpn:modifierpn="_+" & modifier   ' alias for toggled modifier alias
  5. dim modifiermn:modifiermn="_-" & modifier   ' alias for default modifier alias
  6. dim bind    ' key being modified
  7. dim bindn   ' alias for key being modified
  8. dim bindsetp:bindsetp=""""
  9. dim bindsetm:bindsetm=""""
  10. dim aliasset
  11. dim func1   ' default command set
  12. dim func2   ' modified command set
  13. dim func1n  ' alias for default command set
  14. dim func2n  ' alias for modified command set
  15. dim switch  ' for switch
  16. dim final   ' final output
  17. dim output  ' output
  18.  
  19. function binder()
  20.     bind=inputbox("Key","Key Combo Binder")
  21.     bindn="_" & bind
  22.     func1="""" & inputbox("Default Command Set","Key Combo Binder") & """"
  23.     func1n="_" & inputbox("Default Command Set Name","Key Combo Binder")
  24.     func2="""" & inputbox("Modified Command Set","Key Combo Binder") & """"
  25.     func2n="_" & inputbox("Modified Command Set Name","Key Combo Binder")
  26.    
  27.     aliasset=aliasset & "bind " & bind & " " & bindn & ";alias " & bindn & " " & func1n & ";alias " & func1n & " " & func1 & ";alias " & func2n & " " & func2
  28.     bindsetp=bindsetp & "alias " & bindn & " " & func2n
  29.     bindsetm=bindsetm & "alias " & bindn & " " & func1n
  30.    
  31.     switch=msgbox("Would you like to bind another key combo?",4,"Key Combo Binder")
  32.    
  33.     select case switch
  34.         case 6
  35.             aliasset=aliasset & ";"
  36.             binder()
  37.         case 7
  38.             main()
  39.         case else
  40.             main()
  41.     end select
  42. end function
  43.  
  44. function main()
  45.     bindsetp=bindsetp & """"
  46.     bindsetm=bindsetm & """"
  47.  
  48.     final="bind " & modifier & " " & modifierpn & ";alias " & modifierpn & " " & bindsetp & ";alias " & modifiermn & " " & bindsetm & ";" & aliasset
  49.     output=inputbox("Output:","Key Combo Binder",final)
  50. end function
  51.  
  52. binder()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement