ZuccMarkerberg Posted June 24, 2018 Report Posted June 24, 2018 when i use GamesPlayed for idling games, once it starts idling other code stops executing, i want to automatically call exit when reaches x time but i wasn't able to do that, i tried editing library but no luck Quote
Dr. McKay Posted June 24, 2018 Report Posted June 24, 2018 You're most certainly doing something wrong, nothing "blocks code from executing". Quote
ZuccMarkerberg Posted June 25, 2018 Author Report Posted June 25, 2018 You're most certainly doing something wrong, nothing "blocks code from executing".sry couldn't find better word for it, code executes fully but once hour boost starts, loop doesn't start over again so i can't set timer to automatically exit Quote
Dr. McKay Posted June 25, 2018 Report Posted June 25, 2018 You're doing something wrong in your code. Quote
ZuccMarkerberg Posted June 25, 2018 Author Report Posted June 25, 2018 You're done something wrong in your code.const logOnDetails = {'dontRememberMachine': false,'accountName': 'username','password': 'password','twoFactorCode': SteamTotp.getAuthCode('shared_secret')} client.on('loggedOn', details => { client.getNicknames(() => { console.log(`Logged into Steam as '${client.accountInfo.name}' ${client.steamID.getSteam3RenderedID()}`); client.setPersona(SteamUser.EPersonaState.Busy); client.gamesPlayed(idleList, true, function(){console.log('test')}); console.log(`Idling`) })})// Some error occurred during logonclient.on('error', e => console.log(e));client.logOn(logOnDetails)i think you still don't understand xD idle works perfectly, but once idling starts, other code stops executing,"idling" gets printed only once, even if i put anything anywhere it executes once, then idling starts and it's just blinking square Quote
Dr. McKay Posted June 25, 2018 Report Posted June 25, 2018 Yeah, it only gets printed once because you never told it to do anything beyond that point. Quote
ZuccMarkerberg Posted June 25, 2018 Author Report Posted June 25, 2018 (edited) Yeah, it only gets printed once because you never told it to do anything beyond that point.i already said "even if i put anything anywhere it executes once"'finished' is printed out only once, what i'm trying to do here is to automatically exit code when 1 day of idling is reached, i'd set timer to do that but it's executed only once which is not enough Edited June 25, 2018 by ZuccMarkerberg Quote
Dr. McKay Posted June 25, 2018 Report Posted June 25, 2018 It executes once because you only told it to execute once. Quote
ZuccMarkerberg Posted June 25, 2018 Author Report Posted June 25, 2018 (edited) oh shit i just realised how dumb my question was... sry xD and thanks Edited June 26, 2018 by ZuccMarkerberg Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.