Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. firstTimeAdding = true;
  2.  
  3. goToSheet()
  4. {
  5. sendinput ^{PgDn}
  6. }
  7.  
  8. goToDetails()
  9. {
  10. sendinput ^{PgUp}
  11. }
  12.  
  13. goToProductMenu(prodCode)
  14. {
  15. sendinput ^{Home}
  16. loop 7
  17. {
  18. sendinput {Tab}
  19. }
  20. sendinput !{Down}
  21. loop 6
  22. {
  23. sendinput {Tab}
  24.  
  25.  
  26. }
  27. sendinput {enter}{enter}
  28. sendinput %prodCode%
  29. sendinput {enter}
  30. }
  31.  
  32. goToLength(maxLength)
  33. {
  34. sendinput ^{Home}
  35. loop 9
  36. {
  37. sendinput {Tab}
  38. }
  39.  
  40. sendinput !{Down}
  41. loop 6
  42. {
  43. sendinput {Tab}
  44.  
  45.  
  46. }
  47. sendinput {enter}{Tab}{Tab}{enter}
  48. sendinput %maxLength%
  49. sendinput {enter}
  50. addLinesToSheet()
  51. }
  52.  
  53. addLinesToSheet()
  54. {
  55. send ^{Home}
  56. send {Down}
  57. sendinput +^{Right}
  58. sendinput +^{Down}
  59. sendinput ^c
  60. goToSheet()
  61. send ^{Home}
  62. if(firstTimeAdding == true)
  63. {
  64. sendinput ^{Down}
  65. global firstTimeAdding = false
  66. }
  67.  
  68. sendinput {Down}
  69. sendinput ^v
  70. }
  71.  
  72. s::
  73. ;showFilter
  74. sendinput ^+L
  75. max := "2,15"
  76. goToProductMenu(102)
  77. goToLength(max)
  78. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement