cjohnjohn Posted September 21, 2010 Posted September 21, 2010 Hi are there anyone know how to write a script that it can continuesly clicking on background window while I am browsing other webpages with other window? Thanks in advance
ALTIN Posted September 21, 2010 Posted September 21, 2010 On 9/21/2010 at 12:45 PM, 'cjohnjohn said: Hiare there anyone know how to write a script that it can continuesly clicking on background window while I am browsing other webpages with other window?Thanks in advanceI think NO WAY!
wakillon Posted September 21, 2010 Posted September 21, 2010 welcome to the forum !What's your background window ?Be more precise... AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts
Tyranlol Posted September 21, 2010 Posted September 21, 2010 I don't hope this is for cheating purposes, but i suppose not. If you meant mouse clicks left, right, middle etc. then this should do the job for ya While 3 Controlclick("YourWindowTitle","","","Right",1) sleep(1000) wend Tyranlol [u]Only by Attempting the Impossible You Can Earn the Remarkable[/u]
ALTIN Posted September 21, 2010 Posted September 21, 2010 (edited) On 9/21/2010 at 12:52 PM, 'ALTIN said: I think NO WAY! Correcting myself: YES, These is a way! On 9/21/2010 at 1:28 PM, 'Tyranlol said: I don't hope this is for cheating purposes, but i suppose not. If you meant mouse clicks left, right, middle etc. then this should do the job for ya While 3 Controlclick("YourWindowTitle","","","Right",1) sleep(1000) wend Tyranlol I knew ControlClick() function but I thought it would not work for background windows, but I just tried it and it works with background windows too. So cjohnjohn you have to use ControlClick() function as Tyranlol suggested... Edited September 21, 2010 by ALTIN
cjohnjohn Posted September 23, 2010 Author Posted September 23, 2010 (edited) I am playing a webpage game, it need to click on certain monster to kill them. But sometimes it is boring to do the same clicking the whole day. So i usually check some other news or other webpages while playing this game, but it is irritating to change back to the game window to click on it and back to my news every 5 seconds. I use pixelSearch to search a certain pixel from the monster and if the monster avaiable on screen, then it will auto click on it. but it only works when the game screen is activate and is to the front screen. if i am browsing other webpage, then it can't perform the click function. this is basic function i wanna do, this is just part of it. $B = PixelSearch($startXY[0], $startXY[1], $endXY[0], $endXY[1], 0xed8681) while 1 if IsArray( $B ) then MouseClick("left",$B[0],$B[1],1,1) SLEEP(5000) endif wend I search the forum, someone say that pixelSearch doesn't work on background. So what i need is, some functions that can search certain pixel and click on it on background window and don't irritate my current window. Is there any function for it. Thanks in advance. Edited September 23, 2010 by cjohnjohn
wakillon Posted September 23, 2010 Posted September 23, 2010 Have you read This ? AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts
Crackeraki Posted May 17, 2012 Posted May 17, 2012 (edited) i think i write all correct, but still i dont see click on window. Do i have to write anything else exept this? ControlClick ("Online support - Google Chrome", "" , "" , "" , 1 , 1026, 716 ) Edited May 17, 2012 by Crackeraki
Moderators Melba23 Posted May 17, 2012 Moderators Posted May 17, 2012 Crackeraki, Please do not necro threads - particularly those that deal with currently prohibited subjects. I would also like to point out that your first 2 posts on this forum have resulted in thread locks - please do not make it a hat-trick or you will find that your ability to continue posting may well suffer. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Reveal hidden contents ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Recommended Posts