Jump to content

AutoChris

Active Members
  • Posts

    367
  • Joined

  • Last visited

About AutoChris

  • Birthday April 18

Profile Information

  • Member Title
    Scripting with AutoIt since 2003
  • Location
    California

Recent Profile Visitors

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

AutoChris's Achievements

Universalist

Universalist (7/7)

0

Reputation

  1. Thanks for the reply. I suppose I could have figured out there was a bug in the TCPConnect had a done a search. I guess I will have to find some way around it, or even use another method to get the message sent. Thanks again.
  2. I have created a program which sends out a message via TCPSend to every computer in the building. If the computer has the client application running which listens to a specific port, everything works great. However, if a computer does not have the client running, the TCPConnect takes 20 seconds before it fails. I have about 300 computers I need to connect to with this program so 20 seconds for each failed computer is a long time to wait. (This application is meant to send emergency notifications) Is there a way to change the timeout period for TCPConnect, or any way to skip a computer if it is not listening to that particular port? Opt(TCPTimeout) is already set for 100 milliseconds by default (and I have adjusted it lower) so I am not sure how to make the TCPConnect fail faster if it cannot send to that port. Obviously, if the client is running on each and every computer, this would not be a problem; however, even just 10 computers without the client running could really slow things down. Any ideas?
  3. Yes, I tried to use ShellExecute as well, but it did not work either. I also thought that it may just be AutoIt on my computer that was having problems so I tried the same script on another computer and I had the same problem. The program I am trying to get to run hidden is called DriverMax, which is a program to back up all of the drivers on your computer. However, I tried to run Firefox hidden as well--as a test--and it does not run hidden either.
  4. I don't know if this is a new issue or not because I do not recall ever having this problem before. I have been trying to run non-MS programs (Internet Explorer and the command prompt work fine) using the @SW_HIDE option and they are not running in hidden mode. I can wait until they are open and then WinSetState(..., ..., @SW_HIDE) and it works fine. However, my goal is not to hide the window after it appears, but to run it hidden. Any ideas? Is anybody else having this problem?
  5. As soon as you click on a window, it becomes active.
  6. o = object s = string f = boolean i = integer
  7. Look up Send(), MouseMove() and MouseClick() in the help file. If, after reading the help file, you still need help, PM as many people on this forum as you can and offer them $5 to write the script for you.
  8. Rather than just putting Sleep() to wait for something to load, use WinWait() to wait for a particular window to load, including any unique text. Try to be as specific as possible for each window that loads to avoid any confusion as to which window you are waiting to load.
  9. First, please be more descriptive in your title. Second, use the AutoIt Window Info Tool to find out the real title of the window (sometimes has leading spaces) and the control names. Then you can use something like ControlClick("Window Title", "", "Button1") to close the pop-up after you use the WinWait("WindowTitle") to look for the window. <edit> However, the best thing to do would be to use AdAware and/or SpyBot S&D to search for whatever malware/crimeware/spyware is on your computer making the pop-up in the first place.
  10. Run("C:\winaudit.exe /r=gos /o=PDF", "", @SW_HIDE)
  11. Don't put your functions inside a While...WEnd loop. Just do something like... While 1 Sleep(100) WEnd ...and put your functions elsewhere.
  12. Change: $var = 1 to $var = 0. The problem is that $var starts out as 1 and then becomes 2 at the first loop so it never equals one when the variable is checked for its value. Therefore, it keeps running since it will never equal 1.
  13. That is because you do not have enough posts yet. The admins got tired of new users posting help questions in the Example Scripts section. Apparently the post count needed is more than 14 posts.
  14. You could throw up a GUI or a SplashText to cover the close button until after you are done testing.
×
×
  • Create New...