Page 2 of 2

Re: cm_SwitchInternalAssociations

Posted: 2022-11-08, 09:30 UTC
by yanch
Fla$her wrote: 2022-11-04, 19:50 UTC
Fla$her wrote: 2022-11-04, 11:32 UTCOK, I'll fix it a bit later.
Done.
Unfortunately, modified version doesn`t work for me. :? TC v.10.52x64 Windows 8.1 Rechecked several times paths etc, but no result. Of course, it will be great if Ghisler implements this command as standard.

Re: cm_SwitchInternalAssociations

Posted: 2022-11-08, 10:53 UTC
by Fla$her
2yanch
The section in the file where it is redirected goes from the first line? What is the encoding of the file?

Re: cm_SwitchInternalAssociations

Posted: 2022-11-08, 12:15 UTC
by yanch
Fla$her wrote: 2022-11-08, 10:53 UTC 2yanch
The section in the file where it is redirected goes from the first line?
Yep.
Image: https://images2.imgbox.com/fc/36/9nMThCw6_o.png

Image: https://images2.imgbox.com/9d/25/iKlYyiNb_o.png
Fla$her wrote: 2022-11-08, 10:53 UTC What is the encoding of the file?
Image: https://images2.imgbox.com/97/b3/vg3sPM8z_o.png

Re: cm_SwitchInternalAssociations

Posted: 2022-11-08, 12:23 UTC
by Fla$her
2yanch
association-searches.ini is at TC root?

P. S.: No more screenshots, please. Write in text.

Re: cm_SwitchInternalAssociations

Posted: 2022-11-08, 13:33 UTC
by yanch
Fla$her wrote: 2022-11-08, 12:23 UTC association-searches.ini is at TC root?
Yes.

Re: cm_SwitchInternalAssociations

Posted: 2022-11-08, 13:35 UTC
by yanch
Fla$her wrote: 2022-11-08, 12:23 UTC No more screenshots, please.
Sorry. Just want to exclude misunderstanding.

Re: cm_SwitchInternalAssociations

Posted: 2022-11-08, 14:18 UTC
by Fla$her
yanch wrote: 2022-11-08, 13:33 UTCYes.
Ok. Replace line 8 with these:

Code: Select all

With WSS.Environment("PROCESS")
   INI = .Item("COMMANDER_INI")
   WSS.CurrentDirectory = .Item("COMMANDER_PATH")
End With
It's been two weeks since the code was published. It is no longer possible to edit the post.
Previously, a month was given. A strange limitation.

Re: cm_SwitchInternalAssociations

Posted: 2022-11-09, 07:21 UTC
by yanch
2Fla$her
Finally it works! Thanks. You are genius.

Re: cm_SwitchInternalAssociations

Posted: 2022-11-09, 14:03 UTC
by white
Fla$her wrote: 2022-11-08, 14:18 UTC It's been two weeks since the code was published. It is no longer possible to edit the post.
Previously, a month was given. A strange limitation.
Was it previously a month?
ghisler(Author) wrote: 2018-07-30, 09:45 UTC Editing posts is limited to 14 days to reduce vandalism.
I have modified the forum now, so you should be able to edit the first post without time limit. Please try it!
ghisler(Author) wrote: 2018-07-30, 13:21 UTC Btw, the old board had a timeout of 8 days to edit posts.
Since you can always edit the topic start, I suggest creating a new topic for the script, for example in the forum "Plugins and addons". Or add the script to the wiki. Then ask a moderator to edit your post and refer new thread/wiki page.

Re: cm_SwitchInternalAssociations

Posted: 2022-11-09, 14:47 UTC
by Fla$her
2yanch
Good. You are welcome.
white wrote: 2022-11-09, 14:03 UTCWas it previously a month?
I can't say for sure. But it stuck in my memory that I could edit a post for about a month.
white wrote: 2022-11-09, 14:03 UTCSince you can always edit the topic start, I suggest creating a new topic for the script, for example in the forum "Plugins and addons". Or add the script to the wiki. Then ask a moderator to edit your post and refer new thread/wiki page.
There are such plans for some of my scripts. When such a need arises, I will certainly take advantage of it.

Re: cm_SwitchInternalAssociations

Posted: 2023-03-29, 10:31 UTC
by KozakMak
Fla$her wrote: 2022-11-04, 19:50 UTC But since it is planned to read/write files in Autorun, this problem can be solved completely (without third-party tools) already there. When such an opportunity arises, I will post the solution here.
any news?

...or I can already use TCFS2+vbs to replace TCASwitcher and have button to identify? I don't get it :?

Re: cm_SwitchInternalAssociations

Posted: 2023-03-29, 14:52 UTC
by Fla$her
KozakMak wrote: 2023-03-29, 10:31 UTCany news?
Not yet.
KozakMak wrote: 2023-03-29, 10:31 UTCI don't get it :?
What's not clear here?
yanch wrote: 2022-11-09, 07:21 UTCFinally it works!
The icon autocorrect was not implemented in the script, if this is about that. It wasn't planned.

Re: cm_SwitchInternalAssociations

Posted: 2023-03-29, 15:04 UTC
by KozakMak
Fla$her wrote: 2023-03-29, 14:52 UTC It wasn't planned.
:cry:

Re: cm_SwitchInternalAssociations

Posted: 2023-03-29, 15:15 UTC
by Fla$her
I explained the reason:
Fla$her wrote: 2022-11-04, 19:50 UTCIn addition, when restarting TC, there is no re-reading of the value and the button may not correspond to the current status if the switch was made in another way, including manual editing of ini files.
Therefore, we will wait for Autorun updates.