How can I enforge an button to go to the right panel

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Rob72
Junior Member
Junior Member
Posts: 9
Joined: 2016-07-13, 07:44 UTC

How can I enforge an button to go to the right panel

Post by *Rob72 »

I check the TC Database but I cannot find one that is working in the new version of TC V9.12 32 bit.

So my question is
How can I enforge an button to go to the right panel?

Thx Rob, The Netherlands
User avatar
HolgerK
Power Member
Power Member
Posts: 5412
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Code: Select all

TOTALCMD#BAR#DATA
cm_FocusRight

wcmicons.dll


0
4002
HTH
Holger
Make our planet great again
Rob72
Junior Member
Junior Member
Posts: 9
Joined: 2016-07-13, 07:44 UTC

Post by *Rob72 »

In witch file I have that to implemented?
User avatar
tuska
Power Member
Power Member
Posts: 4118
Joined: 2007-05-21, 12:17 UTC

create a button

Post by *tuska »

You can use the code above to create a button as follows:
1. Mark the code in green COMPLETELY (including empty lines), which is in the frame - just point to the upper left corner
1. of the frame and simply press and hold the left-hand mouse button and drag over the code, then release the left mouse button)
2. CTRL + C = Copy to clipboard (press the CTRL-key and hold it down, then press the letter "C")
3. Make a right click on your buttonbar on an empty space [e.g. after the last button or between the buttons]
4. Click on menu item "Paste" (see also point 5.)
5. [If you do not see the icon immediately (or just the icon outlines and a possible tooltip, if you point the cursor on the place,
5. on which the button was inserted before), then again a right click into the buttonbar is necessary, then "Change", "OK" ->
5. at the latest then the icon will be visible]
6. [Option: Point to the new button (slightly longer): 'Tooltip' is shown (-> description to the button)]
User avatar
HolgerK
Power Member
Power Member
Posts: 5412
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Rob72 wrote:In witch file I have that to implemented?
http://www.ghisler.ch/board/viewtopic.php?p=335879#335879

Regards
Holger
Make our planet great again
Rob72
Junior Member
Junior Member
Posts: 9
Joined: 2016-07-13, 07:44 UTC

Post by *Rob72 »

HolgerK and tuska, thanks for your information.

By reading the Explanation about "TOTALCMD#BAR#DATA" I understand.
BUT I need some extra support (scrip) by starting an command in the right panel.
Example One button 2 commands:

cd e:\temp
cm_FocusRight

Can I execute this in one button?
Can you write for me the scrip that is needed?

Thx Rob74, The Netherlands.
User avatar
tuska
Power Member
Power Member
Posts: 4118
Joined: 2007-05-21, 12:17 UTC

Create a button with an em_command and internal command

Post by *tuska »

Internal commands from TC can be combined in one button, but for cd (change directory) this does not work.
You must first create an em_command for: cd e:\temp.

- Right-click on a free space in the button bar
- change - Add - click on the magnifying glass (next to the field "Command")
- click on usercmd.ini (unter Category)
- click on button "New..." - new command name, e.g.: em_E-TEMP
- OK, Command: cd e:\temp ... Tooltip: cd e:\temp ... OK, OK
- "Change button bar"-window appears with Command: em_E-TEMP
- Change the command line as follows: cm_FocusRight,em_E-TEMP (e:\TEMP + focus in the right window) ... OR ...
- Change the command line as follows: cm_FocusLeft,em_E-TEMP,cm_FocusRight (e:\TEMP in the left window, focus in the right window)
- Icon file: wcmicons.dll,
- Change the Tooltip as follows: cd E:\TEMP\|Command: cm_FocusRight,em_E-TEMP|viewtopic.php?t=49787
- OK - Finished!
Rob72
Junior Member
Junior Member
Posts: 9
Joined: 2016-07-13, 07:44 UTC

Post by *Rob72 »

Thanks, Yes it is working, greet explanation....

Rob74, The Netherlands
Post Reply