Jump to content

hans_schwaebli

Members
  • Posts

    15
  • Joined

  • Last visited

Recent Profile Visitors

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

hans_schwaebli's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. As I said, it is for no bad things.
  2. ; You need to start mIRC and connect it to a server first. ; Then minimize mIRC and run this script. ; Or maximize mIRC, run the script and then switch to another program while script is running. ; The script only works if mIRC is maximized and user doesn't switch program. ; Solution? Opt("SendKeyDelay", 1) Dim $controlID = 32921 Sleep(5000) sendMessages() Func sendMessages() sendMessageToChannels("0") sendMessageToChannels("1") sendMessageToChannels("2") sendMessageToChannels("3") sendMessageToChannels("4") sendMessageToChannels("5") sendMessageToChannels("6") sendMessageToChannels("7") sendMessageToChannels("8") sendMessageToChannels("9") EndFunc Func sendMessageToChannels($message) ControlFocus("", "", $controlID) ControlSend("", "", $controlID, "/join -x {#}alpha11{ENTER}") sendMessage($message) ControlFocus("", "", $controlID) ControlSend("", "", $controlID, "/join -x {#}beta22{ENTER}") sendMessage($message) EndFunc Func sendMessage($message) Sleep(100) ControlFocus("", "", $controlID) ControlSend("", "", $controlID, $message & "{ENTER}") EndFunc
  3. I was happy too early. Basically it works. But it still requires me to have that application in front. If it is in background, the ControlSend commands go into nirvana. Why? I already tried: Opt("SendKeyDelay", 0) Opt("SendKeyDownDelay", 0) And with different values. But same effect. "ControlFocus" didn't work too for my purpose. Any ideas?
  4. Maybe some has tried already and can tell me? I mean, Swing is one of the common GUI APIs.
  5. Can Java Swing GUIs be automated with Auto It in the same way like normal Windows programs? I mean not just moving the mouse and clicking on some coordinates, but something like pressing a button no matter which application is in front or currently has focus. Just like ControlSend, but for Java Swing GUIs.
  6. Thank you. Great that this works.
  7. It is a little bit hard to describe my question, although it must be the most common one. I don't like that I cannot use any other application while an Auto-It script is running. It is because if I do, the keyboard commands are written into another application (the one which is in the foreground and has focus) and not into the one they are inteded for! Lets assume I want to automate mIRC (no flooding). This should be automated: joining channels, writing some commands, change to another channel and so on. While it does this, I want to use another programs on the same computer without disturbing the Auto-It script. I've seen no solution for this in the Auto-It tutorials. This is where I would expect such a documentation in the first place. The automation needs to be independend of which application is in foreground, so that I, as the user, can use any application while the script is running. I hope you understood the problem I tried to describe and the solution I am searching for and most of all that there is a solution for this.
  8. It does not show a scroll bar if there are more characters than 73 in a line. Instead it breaks it to the next line, which I don't want. In the shortcut properties I can set a width and height buffer. Can I do this with a DOS command too?
  9. Okay, here is the recipe for failure: 1. Create a new .cmd file and write just one line in it: pause 2. Create a new shortcut for the new .cmd file. 3. Modify the shortcut properties, changing DOS box' colors, font, size and so on. 4. Try to start that .lnk shortcut file programatically and expect that it a) starts and that it displays the colors, font and size you configured.
  10. It does not work. It starts the shortcut, but doesn't use its settings (colors, buffer and so on of the DOS box).
  11. It does not work if I use: Run("start C:/my.lnk") If the link points to a .cmd file and I configured the link, the cmd file is started, but without the configuration from the lnk file (colors, fonts, buffers etc.)
  12. I can set only some colors in the dos box. I cannot use the many colors which I can by configuring the link. And more important, I cannot change any other things like box size, buffer size and font. I didn't find any solution. So I simly try to start the link programatically so that I get the same effect as if I start it by double clicking the link. I know that I could configure a keyboard shortcut, but that would be another workaround. So is there any programatical solution for such a "simple" thing which everyone of us does dozens of times each day manually: starting a link?
  13. Thank you. But it does not work like I expected it. I tried to start a .cmd file. In the .lnk file I configured color and size of the dos box which appears when I double click the link. But when I start the link with your line, it uses the default colors and sizes. Any idea why that is or a solution?
  14. I want to run a shortcut instead of the cmd file itself. I tried it with Run('C:/aProgram.lnk') But it says Error. How can I run shortcuts, .lnk files?
×
×
  • Create New...