Right click computer and choose Manage.. leave it open
put your computer to sleep
Wake it up
Go to Event Viewer in the management window you have open
Windows Logs / System scroll down the list a few to EventID 1 'Power TroubleShooter The system has resumed from sleep.
You can use this for a trigger on Task Scheduler. ....
OR
Open task scheduler there
Click task scheduler library / then Right Click it , and Create Task...
Triggers ... New .... On Workstation Unlock.
think you figure out the rest. Open a .txt file or pop a message box.. whatever.