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

Notification

Icon
Error

Options
Go to last post Go to first unread
jasgot  
#1 Posted : Tuesday, October 3, 2017 5:58:45 PM(UTC)
jasgot


Rank: Advanced Member

Medals: Level 1: Random Act of Kindness! Received One Thanks!

Joined: 11/11/2010(UTC)
Posts: 65
Location: Detroit, MI

Thanks: 3 times
Was thanked: 5 time(s) in 4 post(s)
Is there a way to get more than 10 commands in the Command Toolbox extension?
Scott  
#2 Posted : Wednesday, October 4, 2017 12:39:50 PM(UTC)
Scott


Rank: Administration

Medals: Level 4: Wise Old Owl! Received 100 Thanks!

Joined: 3/28/2014(UTC)
Posts: 2,518
United States

Thanks: 3 times
Was thanked: 305 time(s) in 262 post(s)
Natively no but you can Clone the extension and then modify it to add more.

In the Manifest.xml, add more Command* settings

Code:

<Setting Name="CommandName10" IsServerOnly="false">
	<DefaultValue>Command 10</DefaultValue>
</Setting>
<Setting Name="Command10" IsServerOnly="false" />


Just increment each by a single number (ie 11, 12, etc).

Also, in the Initializer.js, add the relative objects to the commands map.

Code:

	{'name' : extensionContext.settingValues.CommandName11, 'value' : extensionContext.settingValues.Command11, 'index' : 11}, 
	{'name' : extensionContext.settingValues.CommandName12, 'value' : extensionContext.settingValues.Command12, 'index' : 12} 
ScreenConnect Team
thanks 1 user thanked Scott for this useful post.
jasgot on 10/4/2017(UTC)
jasgot  
#3 Posted : Wednesday, October 4, 2017 2:04:03 PM(UTC)
jasgot


Rank: Advanced Member

Medals: Level 1: Random Act of Kindness! Received One Thanks!

Joined: 11/11/2010(UTC)
Posts: 65
Location: Detroit, MI

Thanks: 3 times
Was thanked: 5 time(s) in 4 post(s)
Originally Posted by: Scott Go to Quoted Post
Natively no but you can Clone the extension and then modify it to add more.

In the Manifest.xml, add more Command* settings

Code:

<Setting Name="CommandName10" IsServerOnly="false">
	<DefaultValue>Command 10</DefaultValue>
</Setting>
<Setting Name="Command10" IsServerOnly="false" />


Just increment each by a single number (ie 11, 12, etc).

Also, in the Initializer.js, add the relative objects to the commands map.

Code:

	{'name' : extensionContext.settingValues.CommandName11, 'value' : extensionContext.settingValues.Command11, 'index' : 11}, 
	{'name' : extensionContext.settingValues.CommandName12, 'value' : extensionContext.settingValues.Command12, 'index' : 12} 


Sweet! thanks.
jasgot  
#4 Posted : Wednesday, October 4, 2017 6:32:03 PM(UTC)
jasgot


Rank: Advanced Member

Medals: Level 1: Random Act of Kindness! Received One Thanks!

Joined: 11/11/2010(UTC)
Posts: 65
Location: Detroit, MI

Thanks: 3 times
Was thanked: 5 time(s) in 4 post(s)
Originally Posted by: Scott Go to Quoted Post
Natively no but you can Clone the extension and then modify it to add more.

In the Manifest.xml, add more Command* settings

Code:

<Setting Name="CommandName10" IsServerOnly="false">
	<DefaultValue>Command 10</DefaultValue>
</Setting>
<Setting Name="Command10" IsServerOnly="false" />


Just increment each by a single number (ie 11, 12, etc).

Also, in the Initializer.js, add the relative objects to the commands map.

Code:

	{'name' : extensionContext.settingValues.CommandName11, 'value' : extensionContext.settingValues.Command11, 'index' : 11}, 
	{'name' : extensionContext.settingValues.CommandName12, 'value' : extensionContext.settingValues.Command12, 'index' : 12} 


Maybe not so sweet. :(

I did this, I have the new (cloned) extension installed and enabled, the original extension is disabled.

When I right click on the guest, the Command Toolbox is not listed. (It returns if I re-enable the original)

Did I miss a step? I expected it to show up under the new name....

Jason
Scott  
#5 Posted : Thursday, October 5, 2017 11:32:31 AM(UTC)
Scott


Rank: Administration

Medals: Level 4: Wise Old Owl! Received 100 Thanks!

Joined: 3/28/2014(UTC)
Posts: 2,518
United States

Thanks: 3 times
Was thanked: 305 time(s) in 262 post(s)
It might be failing to compile for any number of reasons, hard to say.

PM me a good email address for you and I'll shoot you a message.
ScreenConnect Team
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.