my problem is that i have some accounts on mega.nz/pcloud.com/mediafire.com gmail.com/outlook.com/yahoo.com & i want to login every some time or else i lost the account/data for mega now i use megatools+Easy Macro Recorder but i need something quicker & more easy thnx
300+ accounts are realy much if i understand you right, you want only login and then logout to avoid loosing your account. is it right ? in this case you can use JDownloader2 for most of your accounts (from type webspace) you can add such type of account and uncheck the activate checkbox by default from time to time go to account management and anable the account for a short time that would be the simplest thing that comes to mind first
i do it also with autoit but the way to do it is the folow 1. you need to know the login process for each of the 300+ accounts (have fun) 2. for easch login prozedur you must create a Cookie handling 3a. create "WinHttpRequest.5.1" object ($o_HttpReq) 3b. i manage the header with a "Scripting.Dictionary" object $dH - it is more easy Code: Global $o_HttpReq = ObjCreate("WinHttp.WinHttpRequest.5.1") ; create the request object Global $dREQHEADER = ObjCreate('Scripting.Dictionary') ; request header backup object If @error Then Exit 1 With $dREQHEADER .add('Host', $Host) .add('Referer', 'https://my.visualstudio.com') .add('Content-Type', 'application/json') .add('Accept', 'application/json;api-version=4.0-preview.1;excludeUrls=true') .add('X-VSS-ReauthenticationAction', 'Suppress') .add('X-Requested-With', 'XMLHttpRequest') .add('Accept-Language', 'en-us') ;.add('Accept-Encoding', 'gzip, deflate') ;we dont want encoded response !!! .add('Connection', 'Keep-Alive') .add('Cache-Control', 'no-cache') If IsString($aVSCOOKIE[0][1]) Then .add('Cookie', $aVSCOOKIE[0][1]) EndWith 3c. fill the header of the "WinHttpRequest.5.1" object compleatly (some part can be fixed, som part must be variable) Code: ;eg fixed part With $o_HttpReq .SetTimeouts(60000, 60000, 60000, 60000) ;set timeouts .Option(0) = "Mozilla/5.0 (Windows NT 6.1; rv:54.0) Gecko/20100101 Firefox/54.0" ; .Option(4) = 13056 ;set ssl ignore errors "WinHttpRequestOption_SslErrorIgnoreFlags" .Option(6) = True ;set redirects "WinHttpRequestOption_EnableRedirects" .Option(12) = True ;allow http to redirect to https "WinHttpRequestOption_EnableHttpsToHttpRedirects" .Open($Typ, $URL, false) ;make the request, http verb (method), url, false to force syncronous EndWith ;variable part For $key in $dH.Keys() $o_HttpReq.SetRequestHeader($key, $dH.Item($key)) Next ; Finally we can send the Request, this is being done with the Send method. $o_HttpReq.Send($sSend) 4. after $o_HttpReq.Send method you must manage the status and the response header of the $o_HttpReq object .... and so on the way is is not complicated but 300+ accounts need 300+ $o_HttpReq object with 300+ different header settings by the way the jear have 265/266 days - have fun HTTP / JSON protocol is the .add('Content-Type', 'application/json') .add('Accept', 'application/json;api-version=4.0-preview.1;excludeUrls=true') .add('X-Requested-With', 'XMLHttpRequest') off the $dREQHEADER wich is addet later to the $o_HttpReq header --> this is what web-pages typical do to log in @LostED lets talk privat if you realy want to go this way
You should have noticed that it is only code-snipset and no complete functions. i keep the compleat function for me (because of Member like you) have fun with your notes