Go Back   DisplayLink Forum > DisplayLink Graphics Technology > Mac Software

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 04-14-2022, 08:29 AM   #8
alst
Junior Member
 
Join Date: Apr 2022
Posts: 1
Default My Solution

I use Eventscripts to solve this.

https://www.mousedown.net/software/Downloads.html

and this script on fast user switch.

Code:
-- To receive the eventArgs parameter
-- we wrap the script in an on run handler

-- eventArgs is a variable which will be populated when the script is executed
-- by EventScripts. If you run the script outside of EventScripts (eg in an editor)
-- you'll get an error since "trigger" has not been set in "eventArgs".


on run eventArgs
	
	-- every eventArgs record has a trigger property
	-- that describes the action that caused the script to be executed
	
	set thisTrigger to (trigger of eventArgs)
	
	if thisTrigger is "Fast user switched in" then
		
		-- do whatever you want to happen when
		-- the screen is unlocked here
		
		-- YOUR SCRIPT HERE
		tell application "/Applications/DisplayLink Manager.app"
			activate
		end tell
alst is offline   Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:26 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2026, vBulletin Solutions, Inc.