All Activity

This stream auto-updates   

  1. Past hour
  2. I tried to set icon from this file: BatteryFlatIcon.res , but this doesnt work: TraySetIcon(@scriptdir & "\BatteryFlatIcon.res", 1). How to change autoit tray icon?
  3. If the link with the IP works for you and provide the expected data, then get away from IE and just use this 3 lines of code because it's a much more simple/fast/clean way Else if you want to use IE, it's the same approach. The results after entering the ID display in a iframe whose link appears in the source code of the page, and it's this link which is mentioned in my script BTW the link in your code didn't work for me, but this one did : http://www.hajcommittee.gov.in/
  4. Wow, are you amazingly helpful! Thanks! A question, though: In Post 14, he-she (trancexx doesn't like anyone prejudging gender by using specific pronouns) provides the code for a function named _MD5ForFirstFileChunk(). Where the hell does that come from? From Ward? Should I just use the code on that page, or is there some other UDF I should be using in addition to trancexx's UDF?
  5. It works, but GUISetState() is missing to show the GUI on startup
  6. Today
  7. See posts #7 and #14 in that thread for exactly that.
  8. Please also add this link: https://www.w3.org/TR/webdriver/ to GitHub introduction.
  9. @Danp2 what about MS Edge WebDriver : https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/ ? Whether this UDF is compatibile MS Edge ?
  10. New version: You can choose between output to console (default) or output as call tip (needs an property set, see 1st post).
  11. good luck with your scripting. BrewMan had the correct answer first. You just had to WinActivate your Notpad instance and your original code works great. $gGUIDummy = GUICreate("") ;~ MsgBox(1, "", "GUI Windows Handle is: " & $gGUIDummy) Run("notepad.exe") $HWND = WinWait("Untitled - Notepad") WinActivate($gGUIDummy) WinActivate($HWND) ControlSend($HWND, "", 0, "!f") ;control Id 0 is the issue here GUICreate was giving us a valid handle, checked it.
  12. Actually, if you look at my original post, I am sending a zero, not a variable. You are right, we can't expect everything to work no matter what we trow at it. I just wanted to point out an observation. Nothing critical. Regards
  13. Well, people tend to do a "Here, I fixed it..." instead of discussing is it a bag or not
  14. That's awesome, good for you! Edit: If it seems like my reply is less than helpful, that is because your post is less than detailed. Rather than just telling us what you want to do, how about explaining in detail what application you're trying to manipulate, what you have tried on your own, and what problems you are having? Help us help you
  15. @UEZ the GDI master! hahaha nice code
  16. I would like to create a self-contained autoclicker that works by holding down the mouse button
  17. @mikell I don't think so. I had this function also in Windows Screenshooter implemented which can monitor the clipboard but in the core it is the same. To be honest I forgot your post and I posted nothing new or special. Reason is probably that I'm concentrated in coding with FB.
  18. @UEZ Hello Is your code very different - I mean the concept - from this one here ?
  19. Need to add #include 'AutoItConstants.au3' Remarks The shutdown code is a combination of the following values: $SD_LOGOFF (0) = Logoff $SD_SHUTDOWN (1) = Shutdown $SD_REBOOT (2) = Reboot $SD_FORCE (4) = Force $SD_POWERDOWN (8) = Power down $SD_FORCEHUNG (16) = Force if hung $SD_STANDBY (32) = Standby $SD_HIBERNATE (64) = Hibernate Constants are defined in AutoItConstants.au3. Because you used the constant, you need the include that defines said constant. Or you put the number.
  20. i think this is working properly. You can't throw out an un-allocated memory address (pointer) at a function and not expect problems. that variable is just a pointer to memory somewhere.
  21. Sorry, got lost in the haze of the rest of that explanation. Thanks for the clarification.
  22. so add a new variable to track how many times you have been through the process. a switch statement can them be used to know when to actually reboot. write it up and post the code back here if not working for more assistance.
  23. I have scripts that use _Crypt_HashFile() to generate a hash of an entire file, binary or otherwise. But some of these scripts are hashing huge video files, which take a fairly long time, so I'm looking at finding faster alternatives. One obvious alternative would be to only hash a portion of the file in question, and only calculate the hash value of the entire file when collisions occur. _Crypt_HashData() seems to offer a way to do this. I would read in some portion of the file and then call it and save the hash of the partial file in the hash table. Unfortunately, the function does not include a length or size parameter; all the examples of using that function only pass a text string, for which AutoIt always knows the length. But what if I try to use it on binary data? For example, I could have my script initially hash only the first, say, 20 KB of the file. But what happens when the file is only 10 KB long? How would I tell the _Crypt_HashData() function how many bytes to hash? I'm asking here instead of playing with trial and error, since using hashing functions is not trivial. Can anyone help, please? Thanks! ETA: When I look at the relevant article on MSDN, the call does include a length parameter.
  1. Load more activity