Stihl Posted October 22, 2007 Share Posted October 22, 2007 (edited) I'm trying to make an AutoIt script to run in a minimized program, while I am in a different program. Is there a command line that can accomplish this? I want the script to run in the minimized window of my choice, but leave me able to still operate the computer. Here is a generic script I'm working with: Global $Paused HotKeySet("{ESC}", "Terminate") Opt("MouseClickDragDelay", 100) Sleep(5000) While 1 Sleep(500) ControlClick("Star Wars Galaxies", "", "", "Secondary", 1, 537, 430) Sleep(800) ControlSend("Star Wars Galaxies","","" ,3) sleep(500) ControlSend("Star Wars Galaxies","","" ,2) Sleep(500) ControlSend("Star Wars Galaxies","","" ,4) Sleep(1000) WEnd Func Terminate() Exit 0 EndFunc Edited October 22, 2007 by Stihl Link to comment Share on other sites More sharing options...
Zedna Posted October 22, 2007 Share Posted October 22, 2007 Instead of Send() use ControlSend() Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Stihl Posted October 22, 2007 Author Share Posted October 22, 2007 (edited) Instead of Send() use ControlSend()Okay, fixed Edited October 22, 2007 by Stihl Link to comment Share on other sites More sharing options...
Stihl Posted October 22, 2007 Author Share Posted October 22, 2007 (edited) ControlSend("Star Wars Galaxies","","" ,3) etc. Works correctly but ControlClick("Star Wars Galaxies", "", "", "Secondary", 1, 537, 430) doesn't. I've tried replacing "secondary" with "right" but same results - any idea on this? Edited October 22, 2007 by Stihl Link to comment Share on other sites More sharing options...
Stihl Posted October 22, 2007 Author Share Posted October 22, 2007 (edited) Is there another command that must accompany Controlclick() to make it work properly? ContolSend() works .. MouseClick() works .. But can't get Controlclick() to actually click on anything inside window Edited October 22, 2007 by Stihl Link to comment Share on other sites More sharing options...
slaughter Posted October 22, 2007 Share Posted October 22, 2007 Baisicly autoit have same problem as you if there is no window where you gona click? ControlSend works because it actualy sends button pres to a window. But where you gona click if there is no window? In progress: Windows Server bruteforce GUARD Admin Tools (Remote client control) Bypasing firewall Old stuff: [font="Verdana;"]MD5 Auto Update Calendar XP SS multi usser server & client Autoit Remote Control (ARC)[/font] Link to comment Share on other sites More sharing options...
Stihl Posted October 22, 2007 Author Share Posted October 22, 2007 Baisicly autoit have same problem as you if there is no window where you gona click? ControlSend works because it actualy sends button pres to a window. But where you gona click if there is no window? If you cant send a ControlClick to a window thats not maximized, then why is there a ControlClick command to begin with? I think I'm just missing something Link to comment Share on other sites More sharing options...
Stihl Posted October 23, 2007 Author Share Posted October 23, 2007 Baisicly autoit have same problem as you if there is no window where you gona click? ControlSend works because it actualy sends button pres to a window. But where you gona click if there is no window? Gah .. still cant make it work Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now