Jump to content

Kapli

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by Kapli

  1. Yeah I just thought of that, downloading as we speak
  2. Well, did it work? ;P
  3. Servers are down now so I can't get a screenshot but I remember doing it earlier and most of it was empty except the Handle and ExStyle that's what I remember. Edit: Ok I just checked, the control tab is empty except Handle.
  4. Any idea of what I should fill in thougH?
  5. Send() and Mouseclick() works fine, but I want to be able to do other things while it runs in the background. So I tried $hWin = WinGetHandle("[CLASS:SFMainWindow; TITLE:Darkfall Online]") While 1 ControlSend ($hWin, "", "", "{SPACE}") Sleep(2000) ControlSend ($hWin, "", "", "r") Sleep(2000) ControlSend ($hWin, "", "", "6") Sleep(2000) ControlClick ($hWin, "", "", "left") Sleep(5000) ControlSend ($hWin, "", "", "5") Sleep(2000) For $i = 13 To 1 Step -1 ControlClick ($hWin, "", "", "left") Sleep(3000) Next Sleep(2000) ControlSend ($hWin, "", "", "6") Sleep(2000) ControlClick ($hWin, "", "", "left") Sleep(5000) ControlSend ($hWin, "", "", "5") Sleep(2000) ControlClick ($hWin, "", "", "left") Sleep(3000) ControlClick ($hWin, "", "", "left") Sleep(3000) ControlClick ($hWin, "", "", "left") Sleep(3000) ControlClick ($hWin, "", "", "left") Sleep(3000) ControlSend ($hWin, "", "", "r") Sleep(2000) ControlSend ($hWin, "", "", "7") Sleep(2000) ControlClick ($hWin, "", "", "left") Sleep(150000) WEnd Could anyone tell me what I did wrong? Thanks in advance.
  6. Nevermind, I just used Send("{ALT}") Sleep(3000) Send("{SPACE}") Sleep(3000) Send("N") Got my program working perfectly, thanks for the help
  7. Ah thank you, that made the show normally again Well see I want to have the program in the tray because I might want to open it. And if i click on the minimize button in the program it minimizes to tray. So I need AutoIt to click on the minimize button so it gets minimized to tray and I can open it back up later.
  8. Yes, that was it! Works almost perfectly now, only thing is that the minimize isn't exactly what I thought it would be. It seems it just minimizes it to nowhere or something I'm not sure. See with the program I have, when I click the minimize button it minimizes to tray, so I wan't AutoIt to do the same. Also, just wondering. Let's say I use AutoIt to launch a game and then programs after it, will the game minimize when those other programs are launched and AutoIt does stuff with them or will everything run smoothly in the background while I play the game? Edit: Ah crap, the program is like weird now. If i maximize it it shows up on the whole screen but if i try to restore it to normal its just gone, and I can't change the size or anything of it's gone now and I can't get it back to normal even if I restart the program :S
  9. Right, so what I want to do is run 3 programs. One of them is a bat program, one is a normal program that has a minimize button in the top right corner as a normal program has, and the third doesnt have a minimize like the second program but has a button that has the class Button and Instance 3. Of course I've used the AutoIt window tool to find the titles which i use in WinSetState and ControlClick. It works pretty well except that the two last functions i mentioned doesn't work. It doesn't minimize program2 and it doesnt click the button in program3. Could anyone point me in the right direction? Btw I just started with AutoIt 10min ago, I was thinking of doing all this in a bat file but yeah then someone told me I had to use AutoIt Thanks in advance. Run("C:\Users\Bla\Desktop\wc3\Program1.exe") WinActivate("C:\Users\Kim\Desktop\wc3\Program1.exe") Sleep(5000) WinClose("C:\Users\Bla\Desktop\wc3\Program1.exe") Run("C:\Program Files\WC3Banlist\Program2.exe") WinSetState("Program2", "", @SW_MINIMIZE) Sleep(15000) Run("C:\Users\BlaDesktop\wc3\Program3.exe") WinActivate("C:\Users\Bla\Desktop\wc3\Program3.exe") ControlClick("Program3","","Button3")
×
×
  • Create New...