Office(R)Tool Project

Discussion in 'Microsoft Office' started by Dark Dinosaur, Nov 6, 2021.

?

Change brand name or not ?

Poll closed Dec 26, 2021.
  1. No, keep it like that

    148 vote(s)
    75.1%
  2. Yes, officeRTool need fresh name

    49 vote(s)
    24.9%
  1. Windows 10 User

    Windows 10 User MDL Guru

    Feb 2, 2017
    2,005
    122
    90
    Yes.
     
  2. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    4,168
    5,978
    150
    I will send you sample script to check something.. later
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    4,168
    5,978
    150
    start -> run -> conhost
    copy / paste this command .........
    Code:
    mode con cols=88 lines=23
    now open terminal,
    manual change Terminal windows size to
    first conhost windows, so they will match
    copy / paste this command .........
    Code:
    mode con
    print here the result
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    4,168
    5,978
    150
    I need the result, like this.

    upload_2022-12-22_21-28-54.png

    upload_2022-12-22_21-29-8.png
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    4,168
    5,978
    150
    #1325 Dark Dinosaur, Dec 22, 2022
    Last edited: Dec 22, 2022
    (OP)
    @Windows 10 User

    for now, open settings file, search forceConHost, change to 0
    until I manage to find better way to deal with this -
    terminal window size s*
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Windows 10 User

    Windows 10 User MDL Guru

    Feb 2, 2017
    2,005
    122
    90
    #1327 Windows 10 User, Dec 22, 2022
    Last edited: Dec 23, 2022
    After pasting the first code in run, the window opens and closes in a second. Maybe it's because NTLite removed something or so did its Remove Reinstalls feature, which removes files CUs reinstall because the latter detect those files were removed (by NTLite, in this case). After pasting the second in Windows Terminal, I have this:

    upload_2022-12-22_23-32-39.png

    If I change "ForceConhost" to 0, I don't have this problem.

    Like I previously said, I have another problem regarding the OfficeRTool Settings file. If I run OfficeRTool from my location which has a diacritic in its name, it creates an empty Settings, so I have this window problem again. If I run OfficeRTool from inside a location which doesn't have a diacritic, the created Settings file isn't empty, so I can change "ForceConhost" to 0 to not have this window problem.

    What I did was moving OfficeRTool from this location to another one which doesn't have a diacritic, run it, let it create the non-empty Settings file, change "ForceConhost" to 0 to not have the window problem, move OfficeRTool back to the mentioned location which has a diacritic and run it. I didn't have the window problem but unless you change OfficeRTool I'll always have to do this when a new version is out when running the program from this location to not have this window problem.

    Also, when running OfficeRTool from this location, it states it couldn't open OfficeRTool, but still proceeds anyway and I can access its menu settings, which is odd.

    What do you mean by "windows size s*"?
     
  7. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    4,168
    5,978
    150
    #1328 Dark Dinosaur, Dec 23, 2022
    Last edited: Dec 23, 2022
    (OP)
    Mode con not work on terminal
    So you need to use API to change terminal size
    And this API don't accept 88 as lines, the number are way higher
    So lines=88 need some math calculate to figure out -
    The right value for terminal window
    I think I managed to fix it, and the scaling problem too,
    But if it still fail ... Forceconhost
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Windows 10 User

    Windows 10 User MDL Guru

    Feb 2, 2017
    2,005
    122
    90
    Will you release a new version with the changes?
     
  9. ashish1989

    ashish1989 MDL Addicted

    Sep 20, 2013
    502
    97
    30
    Task scheduler method worked fine, deleted the entry, now not getting annoying popup on restart
     
  10. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    4,168
    5,978
    150
    until today, most of the settings was saved inside the script
    now settings file will be out … as template
    plan to made another file defaults,
    the default values will be saved there too

    upload_2022-12-23_12-24-5.png
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    4,168
    5,978
    150
    will add some safe guards,
    if set-size fail on terminal,
    automatically switch to conhost
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. Windows 10 User

    Windows 10 User MDL Guru

    Feb 2, 2017
    2,005
    122
    90
    Will one have problems if OfficeRTool is run from inside a location with a diacritic?
     
  13. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    4,168
    5,978
    150
    For now .....
    Need to upload fixed version
    If fail to set-size will auto switch -
    To conhost
    Need to test it couple times,
    Before upload it
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. Windows 10 User

    Windows 10 User MDL Guru

    Feb 2, 2017
    2,005
    122
    90
    #1336 Windows 10 User, Dec 23, 2022
    Last edited: Dec 23, 2022
    The task created by OfficeRTool previous versions was removed in the latest one but it still states it's creating it even though it doesn't create it any longer. Also, OfficeRTool still creates an empty Downloads folder called in the root of the C drive.
     
  15. Windows 10 User

    Windows 10 User MDL Guru

    Feb 2, 2017
    2,005
    122
    90
    #1337 Windows 10 User, Dec 23, 2022
    Last edited: May 16, 2023
    Here's the Debug log.
     

    Attached Files:

    • log.txt
      File size:
      115.6 KB
      Views:
      2
  16. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    4,168
    5,978
    150
    found the reason, it already fixed in next version i going upload

    default path is '%SystemDrive%\Downloads'
    test the new version, hope will work, weird chars ... still
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. Windows 10 User

    Windows 10 User MDL Guru

    Feb 2, 2017
    2,005
    122
    90
    Now it's even worse. It closes itself even if run from a location with no "weird chars".
     

    Attached Files:

  18. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    4,168
    5,978
    150
    #1340 Dark Dinosaur, Dec 23, 2022
    Last edited: Dec 23, 2022
    (OP)
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...