Jump to content

Phenom

Active Members
  • Posts

    92
  • Joined

  • Last visited

Everything posted by Phenom

  1. How do you use this?
  2. I want to create a Hotkey that when pressed blocks network traffic to Google Chrome. Then when pressed again it will quickly resume traffic. How can this be done? I know how to create the hotkey. It's the part about stopping and starting network traffic that I need to figure out. The reason I want to do this is I want to be able to freeze Chrome. Is there another way to cause this to happen? Also, it doesn't have to block network traffic specifically to a single application. It can block all network traffic if that's easier to do.
  3. I didn't grab whitespace. I added whitespace using imagemagick. Still can't read it. It only works if everything is white except the text I want to read. Is there a way to change the image so that everything except the text is white?
  4. When I try that method in the other post I see in the console this error message: What does that mean? Also, I expanded the image and put some space around it. Would this work?
  5. I already tried Tesseract as well as MODI, and can't read the image. I also tried resizing the image. This is the image.
  6. This is some AutoIt code that I found. Local $sArray[1], $oWord Local $miDoc = ObjCreate("MODI.Document") ConsoleWrite("creating image" & @CRLF) $miDoc.Create($Image) If @error Then ConsoleWrite("failed to create image" & @CRLF) Return SetError(1) EndIf ConsoleWrite("image successfully created" & @CRLF) $miDoc.Ocr(9, True, False) On the last line, I get the following error:
  7. I just put the string all in one line. I notice that you are using _ to split it into multiple lines. That solves the problem, thanks.
  8. How do you call that? Do you just pass the long string? That's the problem. You have to put the long string all in one line.
  9. I have a lot of information I want to display in a tooltip. I requires several lines. I do not want to have to put all of it in one line, because it's long. If I split the command along multiple lines then it's not recognized. How can this be done?
  10. You're right. It does get reset. I was getting a new error due to something else, which I fixed.
  11. Inside a for loop, I check for @error. If an error occurs the first time around the for loop, then throughout the whole for loop @error will be true, even though there wasn't any error. How can I reset @error to 0 at the beginning of the for loop?
  12. That works, but the icon stays in the taskbar. Is there a way to make it go away without having to use the mouse?
  13. Let's say in my script I start another script like this: ShellExecute("foo.au3") Then let's say later on I want to close this script. What's the code to do that?
  14. There is a log file which is constantly being updated. I want to periodically check the last line in this file from an AutoIt script. How can this be done?
  15. I did a search but couldn't figure it out. How can StdoutRead be used to do this? The example script shows it being used in only one program. I need to get information from a different script that is running.
  16. Doesn't using a registry key require writing to disk?
  17. Let's say I have a simple script that looks like this: For $i = 0 to 100 Sleep(1000) Next While this script is running I have another AutoIt script running. I want this other script to periodically check to see what the value of $i is. I want it to be done without writing to disk. What's the code to do that?
  18. Is it possible for an AutoIt script to send information to another AutoIt script or another program without having to resort to writing to disk? Is it possible for another program to access the memory of an AutoIt script to get information? I would like to share information stored in a string variable. I have an AutoIt script whose only purpose is to put information into a string variable. I'd like to run another program concurrently which periodically checks the value in that variable and then does something with it. How can I share this information with the other program without having to write it to disk?
  19. I have a compiled AutoIt program which works sometimes, and sometimes doesn't. When it crashes it says, Line 7749 Error : Subscript used with non-array variable. What are the possible causes for this? It used to work, so I don't think the problem is in the code. I checked the amount of free memory I have and it should be sufficient.
  20. There is a certain program that is always writing to a log file that is in text format. How can AutoIt be used to constantly monitor what is being written to this text file and take certain actions depending on what new output it sees?
  21. Is AutoIt a programming language? What's the difference between a programming language and a scripting language? AutoIt seems quite complex. There are a lot of things you can do in it. The code can even be compiled into an .exe file. So I don't understand why it wouldn't be considered a programming language.
  22. I'm trying to use a script that includes the file Icons.au3, however that file was not installed in my include directory. Where can I get that?
  23. Tidy just rearranges the code. How do you get a report from it?
  24. I know if you press ctrl-j on a function it will take you to that function's declaration. Is there a similar thing for variables?
  25. I mean is there a way if you're at a function definition to visit all the places where that function is called?
×
×
  • Create New...