Advertisement
euphonics

move to display <left_or_right>

Feb 19th, 2022
1,303
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. COMMAND NAME:
  2.  
  3. move to display <left_or_right>
  4.  
  5. LIST:
  6.  
  7. Left
  8. Right
  9.  
  10. CODE:
  11.  
  12. Function MoveToDisplay(direction)
  13.     ' Direction = either right or left
  14.     SendKeys "{windowshold}{" + direction + "}", 1
  15.     Wait 0.3
  16.     SendKeys "{windowshold}{" + direction + "}", 1
  17.     Wait 0.3
  18.     SendKeys "{windowshold}{" + direction + "}", 1
  19.     Wait 0.3
  20.     SendKeys "{windowshold}{" + direction + "}", 1
  21.     Wait 0.3
  22.     SendKeys "{windowshold}{" + direction + "}", 1
  23.     Wait 0.3
  24.     SendKeys "{windowshold}{" + direction + "}", 1
  25.     Wait 0.3
  26.     SendKeys "{windowshold}{Up}", 1
  27. End Function
  28.  
  29. Sub Main
  30.     MoveToDisplay(ListVar1)
  31. End Sub
Advertisement
RAW Paste Data Copied
Advertisement