iJodix Posted May 6, 2016 Share Posted May 6, 2016 How am i supposed to remove KeyListener that i added onStart when i stop script ? Sadly there is no onStop method anymore, helpplz. Quote Link to comment Share on other sites More sharing options...
Token Posted May 6, 2016 Share Posted May 6, 2016 You mean the onExit() method? 1 Quote Link to comment Share on other sites More sharing options...
FrostBug Posted May 6, 2016 Share Posted May 6, 2016 Sadly there is no onStop method anymore, helpplz. TzTop-Kek 4 Quote Link to comment Share on other sites More sharing options...
iJodix Posted May 6, 2016 Author Share Posted May 6, 2016 You mean the onExit() method? Thanks, didn't know it was renamed to onExit() Quote Link to comment Share on other sites More sharing options...
Tom Posted May 6, 2016 Share Posted May 6, 2016 Its ok, this happens to everyone. 1 Quote Link to comment Share on other sites More sharing options...
FrostBug Posted May 6, 2016 Share Posted May 6, 2016 Thanks, didn't know it was renamed to onExit() It wasn't 2 Quote Link to comment Share on other sites More sharing options...
iJodix Posted May 6, 2016 Author Share Posted May 6, 2016 It wasn't Tell me, how am i supposed to make it so that if the client is minimzed it'll still listen to keys ? Right now i have to have client in focus so that it'll listen to keys, welp. Quote Link to comment Share on other sites More sharing options...
FrostBug Posted May 6, 2016 Share Posted May 6, 2016 Tell me, how am i supposed to make it so that if the client is minimzed it'll still listen to keys ? Right now i have to have client in focus so that it'll listen to keys, welp. I think the first question is, what did you do to make it not listen to keys when unfocused. The bot runs fine minimized by default Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted May 6, 2016 Share Posted May 6, 2016 Thanks, didn't know it was renamed to onExit() been like this for past 2 years ... Quote Link to comment Share on other sites More sharing options...
iJodix Posted May 6, 2016 Author Share Posted May 6, 2016 I think the first question is, what did you do to make it not listen to keys when unfocused. The bot runs fine minimized by default What i am trying to achieve here is that when i press a key, it'll perform something. So for example if i have 10 bot clients open, not minimized but on screen and i press a key, i want all 10 to listen to the key. Quote Link to comment Share on other sites More sharing options...
FrostBug Posted May 6, 2016 Share Posted May 6, 2016 (edited) What i am trying to achieve here is that when i press a key, it'll perform something. So for example if i have 10 bot clients open, not minimized but on screen and i press a key, i want all 10 to listen to the key. That is not possible EDIT: Not on windows anyway, but I dont think on linux either. Edited May 6, 2016 by FrostBug Quote Link to comment Share on other sites More sharing options...
iJodix Posted May 6, 2016 Author Share Posted May 6, 2016 That is not possible EDIT: Not on windows anyway, but I dont think on linux either. Quote Link to comment Share on other sites More sharing options...
Tom Posted May 6, 2016 Share Posted May 6, 2016 You could probs have an external program that sends the key to all bot instances you have added to it. I'm not sure how you would do it, but thats a start. 1 Quote Link to comment Share on other sites More sharing options...
Keven Posted May 6, 2016 Share Posted May 6, 2016 TzTop-Kek fight cave memes (whens it coming out?!!!) Quote Link to comment Share on other sites More sharing options...
Solution Posted May 7, 2016 Share Posted May 7, 2016 You'd have to create something seperate to listen to key input. Seen people do it before with stuff like taskbar notifications, you just create it in the first script that you start and the others after that simply communicate with it. I'm not sure if it's possible for osbot as well, but I don't see why it wouldn't be :P Quote Link to comment Share on other sites More sharing options...