LineageIIC3Freak Posted September 19, 2005 Share Posted September 19, 2005 I've been wondering, how in the hell would you click inside a window thats not even visible??? Well i decided that's just a lil bit too complicated for me because im not exactly a wiz at this stuff. I'm all about making macros with Auto It, theres just one problem, i need an Au3 tutor or something lol. Ok on the serious side, if somone could just drop me off some tips here and there (macro related) that would be nice. So back to my problem. I have a huge block when it comes to running things perfectly. ex: Clicking a button on a website and waiting the perfect time and then clicking on the next button without missing etc. So here i'll give you the code i need to be run in an inactive window and you out there can either tell me the commands to do this or hint me off OR completely ignore me and go on to more needy people, its all up to yall. expandcollapse popupHotKeySet("{END}", "Go") HotKeySet("{HOME}", "Stop") While 1 Sleep(1) WEnd Func Go() While 1 Mouseclick("Left", 775, 185, 1, 0) Sleep(4000) Mouseclick("Left", 595, 215, 1, 0) Sleep(4000) Mouseclick("Left", 595, 215, 1, 0) Sleep(4000) Mouseclick("Left", 595, 215, 1, 0) Sleep(4000) Mouseclick("Left", 595, 215, 1, 0) Sleep(4000) Mouseclick("Left", 595, 215, 1, 0) Sleep(4000) Mouseclick("Left", 775, 185, 1, 0) Sleep(4000) Mouseclick("Left", 595, 215, 1, 0) Sleep(4000) Mouseclick("Left", 775, 185, 1, 0) Sleep(4000) Mouseclick("Left", 595, 215, 1, 0) Sleep(4000) Mouseclick("Left", 775, 185, 1, 0) Sleep(4000) WEnd EndFunc Func Stop() Exit EndFunc [quote]I don't like to think, Therefore I ChEaT[/quote] Link to comment Share on other sites More sharing options...
MSLx Fanboy Posted September 19, 2005 Share Posted September 19, 2005 ex: Clicking a button on a website and waiting the perfect time and then clicking on the next button without missing etc. For the website thing, look at the IE Automation Library that works with the beta version.As for clicking a hidden window, look into the Control* functions (i.e. ControlClick, ControlSend, etc) Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate()) Link to comment Share on other sites More sharing options...
LineageIIC3Freak Posted September 19, 2005 Author Share Posted September 19, 2005 Yea see that would be easy enough, but even when using the autoit window info thingy, it still wont give the buttons ControlID... i mean if you have the time you could tell me what im doing wrong.. the web address is www.Shimlar.com. You actually have to log on to see the buttons you need to click. But besides missing the ControlID it would work perfect. [quote]I don't like to think, Therefore I ChEaT[/quote] Link to comment Share on other sites More sharing options...
MSLx Fanboy Posted September 19, 2005 Share Posted September 19, 2005 Blocked by the proxy I'm going through, Category: GamesControlSend does not REQUIRE a control id to send a message, instead it would send to the window you are pointing it at... Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate()) Link to comment Share on other sites More sharing options...
LineageIIC3Freak Posted September 19, 2005 Author Share Posted September 19, 2005 oh crap... yea i need it to be mouseclicks, i cant send a bunch of tabs or even need to send messages while im doing something else... but thanks anyways!!! [quote]I don't like to think, Therefore I ChEaT[/quote] Link to comment Share on other sites More sharing options...
Gaboury Posted September 19, 2005 Share Posted September 19, 2005 (edited) Same type...my question is can we perform actions on inactive windows? (minimized by example or with @sw_hide).... Because it would be useful for some progs if you don't want the person to see what you are opening etc but you are fixing everything... Any ideas? Note: Sorry for using your post but that question is in the same type so I told myself it would be unuseful to create another topic about the same (or almost) question... Edited September 19, 2005 by Gaboury Link to comment Share on other sites More sharing options...
MSLx Fanboy Posted September 19, 2005 Share Posted September 19, 2005 ...Control* Functions In the Help File: AutoIt->Function Reference->Window Management->Controls Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate()) Link to comment Share on other sites More sharing options...
Gaboury Posted September 19, 2005 Share Posted September 19, 2005 ThAnKs Going to c that right now Link to comment Share on other sites More sharing options...
seandisanti Posted September 20, 2005 Share Posted September 20, 2005 ThAnKs Going to c that right now yeah, ControlClick() and ControlSend() will do most of what you want. but the IE.au3 that was linked to above is really the best way to control IE windows 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