Welcome Guest! To enable all features please Login or Register.



Go to last post Go to first unread
#1 Posted : Sunday, December 19, 2021 9:59:05 AM(UTC)

Rank: Advanced Member


Groups: Translators, Approved
Joined: 7/17/2021(UTC)
Posts: 135

Thanks: 35 times
Was thanked: 18 time(s) in 15 post(s)
Hi all, I was looking for a post regarding better organizing of actions/scripts in S+ but couldn't find any so I'm making this as a place where we can share different ways to efficiently use S+, maybe some tips and tricks. Please add your suggestions and lets collect all the different ways people use S+ efficiently Laugh

Here are some of my suggestions.. (again, corrections and suggestions are much appreciated)
  1. Use the most simple gestures for the most common things, such as UP for copy, UPDOWN for refresh, DOWN for new tab.
  2. Use the modifiers and secondary stroke buttons (especially the other mouse button, left if right is your main stroke button), for example: if UP is set to copy, set UP(with left modifier) to cut or paste. This helps keep things organized and easy to remember/execute.
  3. Make simple gestures, that includes basic geometry lines such as UP, DOWN, LEFT, RIGHT, UPLEFT, UPRIGHT, UPthenDOWN, UPLEFTthenDOWNRIGHT, L, Linversed, C, Cinversed, CircleClockwise/anticlockwise, S, Sjoiningends, N, X and so on.
  4. Distribute actions load into their respective applications, for example MS Word gestures should all be added to just the MS Word application in the Applications tab and should reuse some other application's gestures for ease of use. Such as, UP may be used to copy in MS Word and increase the volume by 5 in VLC Media Player.
  5. When dealing with website specific or technically, window title specific actions, make use of the action.Window.Title function, it returns the title of current window which can be used to perform different actions depending on the window we're on. For example the following code does different things depending on whether the current website is or not:
    if(action.Window.Title.match(/YouTube - Vivaldi/)){ //here Vivaldi is the browser, for Chrome users it will be Chrome
    //do actions on youtube
    //do some other action

  6. Use regions of the screen to perform different actions using same gesture, Rob's mouse scroll wheel script is also very good in making your own screen regions. But use it carefully as it requires some getting used to and requires effort to drag mouse to a particular region of the screen, and can be weird if only few of the gestures require user to move mouse to a particular regions and others do not.
  7. Keep rarely used actions in a popupmenu , its a flexible action storage and execution solution and in my opinion more useful than a simple piemenu as it contains more actions. A pie menu is used due to its efficiency as user can just flick the cursor to a side and it does the job, gestures in S+ are pretty much the same thing especially if kept simple. Link of interest: Alternative way to activate action: Drop-down/Pie Menu
  8. This is more of a preference thing but turn gesture hints and lines off if you are a new user, it distracts you often in the long run and its better to get a feel for the gesture drawing process instead.
  9. Not all actions need to be put in a gesture/action. Some rarely used things can be put in a shortcut instead, its the same thing but executes from a shortcut rather than a gesture. Scripts such as color picker, coordinate picker, mouse locker, S+ enabler/disabler, network activity monitor, application stay on top behavior toggle are all things better suited for a hotkey in my use case.
  10. If an application is used in two very different ways, make two applications for it(having the same target exe path or app definition), and toggle either of the two using a shortcut containing code:
    var spApp = sp_config.Applications.Where(app => app.Description == 'Application Use 1').First(); //here 'Application Use 1' is the name given to the application
    var spApp2 = sp_config.Applications.Where(app => app.Description == 'Application Use 2').First();
    spApp.Active = !spApp.Active;
    spApp2.Active = !spApp.Active;
    showText('Application Use 1 Activated');
    showText('Application Use 2 Activated');
    //here showText is just a function that displays the text as a displayText popup on screen.

  11. Make use of Globals > Load/Unload > Load feature, it allows the code written in that place to be executed every time S+ starts or reloads. It is a global code portion so any variables or functions defined here can be used anywhere else in any other script. Make different functions for simple things to avoid redundancy of code in scripts.
  12. It is easy to forget about the Text Expansion feature of S+, use it. Make various text expansions for simple things we type on daily basis and save time and energy.

Edited by user Sunday, December 19, 2021 10:10:35 AM(UTC)  | Reason: accidently posted earlier without having finished the post fully

thanks 2 users thanked randomConstant for this useful post.
Rob on 12/19/2021(UTC), soooulp on 12/21/2021(UTC)
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.