mohitag19 Posted August 20, 2014 Posted August 20, 2014 Hi. I want to automate the clicking on a given coordinate on multiple tabs or windows displaying a similar page. I will prefer multiple tabs over windows, as I think switching tabs would be faster (since the clicking can't be exactly simultaneous, so switching time could be a major problem). Please help me finding the right snippet available or any direction to solve this problem. Thanks.
JohnOne Posted August 20, 2014 Posted August 20, 2014 There is no simple way to automate a java application. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
mohitag19 Posted August 20, 2014 Author Posted August 20, 2014 So my best bet is to press "ctrl+tab" continuously and click meanwhile? I estimated the switching time from one tab to another in chrome to be roughly 50ms (if ctrl+tab is pressed continuously). So, clicking on say 10 tabs, will at least (assuming some minor delay due to clicking) give me a delay of 500ms between 1st and the 10th tab. Is there any way to reduce this number?
JohnOne Posted August 20, 2014 Posted August 20, 2014 Can you not use Internet explorer? It is much easier to control that. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
mohitag19 Posted August 20, 2014 Author Posted August 20, 2014 I have no constraint on browsers. The only thing I am concerned about is to reduce the time between switching tabs.
junkew Posted August 20, 2014 Posted August 20, 2014 Whats the goal of simultaneous clicks in different windows? Solutions I can think of 1.with multiple virtual machines it should be possible a. each virtual machine configured with an autoitscript server listening for commands and then broadcast the click command b. from 1 machine client you broadcast to all listeners in the virtual machine 2. maybe easier is to insert with a bookmarklet thru addressbar a small javascript that clicks when a certain timemoment is reached with functions like setTimeout() in javascript its possible to do things like that. 3. If all windows on desktop can be made visible with the coordinate you want to click on almost simultaneously it should not be very hard 4. Multitouch will probably not work for what you want http://msdn.microsoft.com/en-us/magazine/ee336016.aspx 5. Run virtual desktops FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
mohitag19 Posted August 20, 2014 Author Posted August 20, 2014 (edited) Hi junkew.. I like point 3. For this particular part, if I have multiple windows, then displaying the necessary coordinate manually is tedious. Can I automate it? i.e. Any way to resize a window around the given coordinate, and also getting the new coordinate of the "shrink"ed window? Winmove can resize and place the window according to my need, but it will be displaying a random part of the window, and i'll have to manually adjust (scroll horizontally and vertically) to show the button in this small window, if it can't be automated. I hope you get my problem. Edited August 20, 2014 by mohitag19
Bert Posted August 20, 2014 Posted August 20, 2014 (edited) Seeing your new, please forgive me - I have to ask - is this for a game? If yes, then that is against forum rules. If not, then would you be so kind in saying what app this is for? I would like to learn how this concept could also be used. Thanks. Edited August 20, 2014 by MBALZESHARI The Vollatran project My blog: http://www.vollysinterestingshit.com/
junkew Posted August 21, 2014 Posted August 21, 2014 Microsoft Virtual Desktop Manager can probably help you out in not having to resize yourself De windows magnifier maybe can help out to (press windowsbutton in combination with minus or plus key) FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
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