Skip to main content
namodayab94056659
Known Participant
March 29, 2018
Question

Get four character event ID(charID) code for Create Video Timeline event

  • March 29, 2018
  • 2 replies
  • 1693 views

I have created an event listener to detect Photoshop events. I used following 4-char IDs to detect their events,

  • Make - 'Mk  '
  • Select - 'slct'
  • Delete - 'Dlt '
  • Close - 'Cls '
  • Open - 'Opn '
  • Set - 'setd'

Also I want to know is there any 4-char IDs to detect event Create Video Timeline?

I have found stringID ( "makeTimeline" ) for above event.

But I need charID for above event.

I used Photoshop CC 2014, 2015 and 2017.

This topic has been closed for replies.

2 replies

Legend
March 29, 2018

alert (stringIDToTypeID("makeTimeline") == charIDToTypeID(String.fromCharCode(0,0,3,14)))

namodayab94056659
Known Participant
March 30, 2018

Thank you for the response @r-bin.

I have tried following solution.

alert (stringIDToTypeID("makeTimeline") == charIDToTypeID(String.fromCharCode(0,0,3,14)))

I have a function to get charIDToTypeID function as mentioned in below question.

Get the direct implementation of stringIDToTypeID

values for charIDToTypeID(String.fromCharCode(0,0,3,14)) returns always 782.

But in my environment, Create Video TImeline event takes type ID as follows when I am trying to

values for stringIDToTypeID("makeTimeline"),

Photoshop CC 2014.0.0 - 931

Photoshop CC 2015.5.1 - 1086

Photoshop CC 2017.0.0 - 1082

When I am trying it another PC, it takes different value Create Video Timeline event for same versions as follows,

Photoshop CC 2014.0.0 - 942

Photoshop CC 2015.5.1 - 1075

Photoshop CC 2017.0.0 - 1082

stringIDToTypeID("makeTimeline") value seems to be dynamic.

It seems suggested solution is not working. Do you have any idea for another solution?

Jarda Bereza
Inspiring
March 29, 2018

You don't need charID you need typeID which is just number. You need to first ask for stringID and then you can use this number. Script event manager uses charIDs but it's converted into typeID on the end.