jameslatham123 Posted August 22, 2019 Share Posted August 22, 2019 Can I change the window title from the command line? Need to do this to help with my bot management program I’m writing, thanks. Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted August 22, 2019 Share Posted August 22, 2019 (edited) Not sure about that but I know you can do it in the script for (Frame frame : Frame.getFrames()) { if (frame.isVisible() && frame.getTitle().startsWith("OSBot")) { SwingUtilities.invokeLater(() -> frame.setTitle("YOUR TITLE HERE")); break; } } Edited August 22, 2019 by Khaleesi Quote Link to comment Share on other sites More sharing options...
jameslatham123 Posted August 22, 2019 Author Share Posted August 22, 2019 44 minutes ago, Khaleesi said: Not sure about that but I know you can do it in the script for (Frame frame : Frame.getFrames()) { if (frame.isVisible() && frame.getTitle().startsWith("OSBot")) { SwingUtilities.invokeLater(() -> frame.setTitle("YOUR TITLE HERE")); break; } } Thankyou. Can probably do this from my Java application itself Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted August 22, 2019 Share Posted August 22, 2019 1 hour ago, jameslatham123 said: Thankyou. Can probably do this from my Java application itself Goodluck! ^^ Quote Link to comment Share on other sites More sharing options...
Czar Posted August 22, 2019 Share Posted August 22, 2019 Nice, got a few users saying it helps with getting not detected too, don't forget to change the icon to match the OSRS launcher icon if you are heading that route ^^ Quote Link to comment Share on other sites More sharing options...
Kiji Posted August 22, 2019 Share Posted August 22, 2019 1 hour ago, Czar said: Nice, got a few users saying it helps with getting not detected too, don't forget to change the icon to match the OSRS launcher icon if you are heading that route ^^ Hey Czar, Can you give any recommendations about how to accomplish this? I'm also interested in knowing how to do this via command line if anybody can suggest how to do so. I was using 3rd party tool, but it's not automatable as easily. Quote Link to comment Share on other sites More sharing options...
jameslatham123 Posted August 22, 2019 Author Share Posted August 22, 2019 3 hours ago, Kiji said: Hey Czar, Can you give any recommendations about how to accomplish this? I'm also interested in knowing how to do this via command line if anybody can suggest how to do so. I was using 3rd party tool, but it's not automatable as easily. Use Khal's given code in a java program to change the window title. Loop it and assign IDs to clients' titles that you change. 1 Quote Link to comment Share on other sites More sharing options...