Jump to content

LoWang

Active Members
  • Posts

    255
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

LoWang's Achievements

Universalist

Universalist (6/7)

1

Reputation

  1. Hello, please advise how and if can I fix this. This code worked for several months but seems like something has changed on the server (cipher version maybe?) and it doesn't return anything now. I see that $oHTTP.Status contains 401. $oHTTP = ObjCreate("winhttp.winhttprequest.5.1") $oHTTP.Open("GET","https://www.duolingo.com/2017-06-30/users?username=Marecustitus", False) $oHTTP.Send() consolewrite($oHTTP.ResponseText&@crlf) consolewrite("http error: "&$oHTTP.Status&@crlf)
  2. Hello, so I see there are some functions in EventLog.au3, but it looks quite limited. _EventLog__Read seems to be reading only the last or first event and I don't see a way to read more events and then somehow filter through them or read an event with a certain eventid. Am I right about this? Is there maybe an alternate UDF for this?
  3. I am using AutoIt for many years already, but seems like Scite has problems with Windows 10. I just cannot type czech characters ě č ř. They get changed to e c r instead. Interestingly I CAN type these in Koda form designer, but in Scite they appear as ìèø, so apparently it has wrong encoding. Where do I set it to cp1250 or should it rather be UTF8?
  4. So guess what - I am trying to make this work, but I am getting Created Paste: Bad API request, use POST request, not GET something has changed somewhere which broke this I suppose?
  5. Mr Moderator I wrote "corporate environment". I think that pretty much implies, that you just cannot change some security settings and have to live with them somehow 😏 I would not bother with some crazy workaround if I could change those values. It is set to 10minutes which is crazy short, but try to explain it to your manager and his manager and his and his manager and then some security architect somewhere who got this silly idea Anyway I will check with him what exactly is shown in rsop.msc...
  6. Hello, so I am again thinking about this never ending issue - how to keep RDP session alive in a corporate environment. One way is to have some script on client side which periodically switches to RDP window, moves mouse and switches back. I have it and it works fine. I am using _Timer_GetIdleTime() in a loop and do the mouse movement only if idletime is above some time, so it does not interrupt normal work. I wonder how is RDP session timeout checked on the server side however, because I made a script which moves a mouse and presses some key and run it inside RDP session and it DOES reset the idletimer (I show it on screen via Tooltip function), but seems like it DOES NOT prevent session from getting disconnected/logged out (depengind on your company security settings). So it seems like there is some other hidden value which controls this and it cannot be influenced by any scripting running on the server side. Am I right? My friend has Linux and connects to windows server, so I tried to work around his RDP session logout problems form the server side, but it seems impossible.
  7. I am sorry I have read the whole thread quickly and it wasn't clear from it. I guess many other people might get confused by that, so good that it was clarified now. BTW is it in the helpfile maybe?
  8. Here we are 5 years later and this still haven't been fixed or am I missing something? My compiled EXEs have all this default windows 10 white rectangle with smaller blue rectangle inside, instead of the AutoIt logo icon, unless I specify a custom icon via #AutoIt3Wrapper_Icon. Why is that?
  9. ok that switch with comma separated values would be similar actually I see
  10. OK, but I believe readability of a code is also important. If a relatively simple function is so long that it does not fit on a screen then it's harder to understand it (load it into a brain memory) and work on it especially if I revive old code or somebody else starts working on it. Anyway I think both my question and example are clear, so there is no need to challenge it's validity ;-)
  11. I just wanted to make the code more compact because using switch would generate many lines. Some other languages allow a coder to use similar syntax, so I wondered if AutoIt knows it too. But maybe I found a compact way like this: #include <Array.au3> local $possibleChars[]=["h","m","s"] $k=_ArraySearch($possibleChars,$myChar) ;$k is not needed but must be there if @error then msgbox(16,"ERROR","invalid char") BTW I know this thread is old but I don't see a reason to fragment topics because some things don't change
  12. I tried and failed obviously. Why would I ask if it worked? ;-) There is a possibility I just use wrong syntax and there is a way to write it similar to this and that is why I ask
  13. Can't I write something like if($mylongvariablenameOrExpression in ("h","m","s")) then something ?
  14. OK so I guess this is simply impossible...
  15. Hello, I have made myself a RDP assistant tool. It connects via hostname to a server. I want it also to be able to detect if the session for that server is already opened and if so activate that window and type password in case it's locked. For that I need some way of detecting if the RDP session is locked or not to prevent typing password to whatever is on the screen there. Any ideas?
×
×
  • Create New...