How to script an auto clicking program in AppleScript with multiple mouse locations

I have no experience in scripting but I want to make an auto clicking program where it click in 3 different locations on the screen in a sequence. Is this possible with to do with apple scripts? I am using a MacBook Pro (15-inch, Mid 2012) OSX Yosemite.

This is a python script wrapped in an Applescript.
See the 3 mouseclick(x, y); commands near the end that clicks 3 positions on the menu bar.
do shell script "
python <<-END
import sys
import time
from Quartz.CoreGraphics import *
def mouseEvent(type, posx, posy):
        theEvent = CGEventCreateMouseEvent(None, type, (posx,posy), kCGMouseButtonLeft)
        CGEventPost(kCGHIDEventTap, theEvent)
def mousemove(posx,posy):
        mouseEvent(kCGEventMouseMoved, posx,posy);
def mouseclick(posx,posy):
        mouseEvent(kCGEventLeftMouseDown, posx,posy);
        mouseEvent(kCGEventLeftMouseUp, posx,posy);
time.sleep(2);
ourEvent = CGEventCreate(None);
currentpos=CGEventGetLocation(ourEvent); # Save current mouse position
mouseclick(5, 10);
time.sleep(2);
mouseclick(200, 10);
time.sleep(2);
mouseclick(300, 10);
time.sleep(2);
mousemove(int(currentpos.x),int(currentpos.y)); # Restore mouse position
END

Similar Messages

  • If you have many tabs open (in my case 30 tabs), you cannot click every single tab with your mouse, you can only reach them by opening the tab list at the right

    If you have many tabs open (in my case 30 tabs), you cannot click every single tab with your mouse, you can only reach them by opening the tab list at the right.

    You can create a folder with the home pages by using "Bookmark All Tabs" to open a specific page.
    You can place that folder on the bookmarks toolbar or use the Bookmarks menu button that you can find in the toolbar palette to get access to that folder easily.
    * Open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout"
    * "Bookmark All Tabs" can be accessed via the right-click context menu of a tab on the tab bar.
    * "Bookmark This Page" can be accessed via the right-click context menu of that browser page.

  • How do i disable auto-click in the bookmarks bar?

    I recently went to FedEx to track a package and I save the link in the bookmarks bar. When I show all bookmarks the display for the bookmarks bar shows a column between the name and the url. The title of the column is "Auto-Click".
    How did this happen and, more importantly, how do I get rid of the Auto-Click column?
    This is on an iMac (intel) running OS X Lion. The Safari version is 6.0.3.
    Bill aka VMS Mangler

    Settings -> General -> Keyboard -> Auto-Correction -> OFF.
    But this is a global setting, not just for the Mail app.

  • How to use BAM to start an XI message with multiple occorrences

    Hi:
    I am trying to use BAM to send some data to XI. It is working fine when I have a message that has only header information. I am able to do the binding and the message is being sent properly.
    The problem is when I have a XI message with multiple occurrences. This message creates a complex proxy structure like the sample bellow:
    -ZTSTPROXY (Header)
        -Header_Field1
        -Header_Field2
        -Occurrences (Items)
         -Item_Field1
         -Item_Field2
    It is possible to pass data the he Header fields separately on BAM, but I have no access to the line fields on BAM binding screen (it shows me only the name “Occurrence” but no field).
    So, I assumed that I have to pass the whole structure, not the fields separately. Then I tried to create a method on my Business Object that will return the same structure as my proxy, but this field cannot be used on BOR. I am receiving the message OL403 (Data Type cannot be used for methods).
    Ok, I would not give up. I tried to use an Abap Class instead of a Business Object. By using the class I can define an attribute with the same data type generated by the proxy and it is possible to do the bind on BAM (directly to the “output” field, not to the specific fields on the structure).
    But, when I raised the event, the message created on XI is empty. Only part of the tags were there and no field values.
    Debugging on the event, I found that the problem is when it is trying to assign the container element on the method EVAL_ABAP_ASSIGN_CODE on the class CL_SWF_EXP_EXPRESSION. The program is raising the exception CX_SWF_EXP_DYN_ASSGIN_FAILED. Probably because the proxy structure is not allowed on the container.
    Has anybody tried to pass a multi-line element to an XI message through BAM? How can this be done (if possible)?
    Best Regards,
    Flavio.

    Hi,
    why don't you use an internal list for your question if you are from Oracle? JDeveloper 11 and OC4J11 related questions for the public technology preview have their own forum:
    JDeveloper and OC4J 11g Technology Preview
    My suggestion is to get in contact with the BAM group internally to ask for documents.
    Frank

  • How can I convert string to the record store with multiple records in it?

    Hi Everyone,
    How can I convert the string to the record store, with multiple records? I mean I have a string like as below:
    "SecA: [Y,Y,Y,N][good,good,bad,bad] SecB: [Y,Y,N][good,good,cant say] SecC: [Y,N][true,false]"
    now I want to create a record store with three records in it for each i.e. SecA, SecB, SecC. So that I can retrieve them easily using enumerateRecord.
    Please guide me and give me some links or suggestions to achieve the above thing.
    Best Regards

    Hi,
    I'd not use multiple records for this case. Managing more records needs more and redundant effort.
    Just use single record. Create ByteArrayOutputStream->DataOutputStream and put multiple strings via writeUTF() (plus any other data like number of records at the beginning...), then save the byte array to the record...
    It's easier, it's faster (runtime), it's better manageable...
    Rada

  • Powershell script to get all the AD accounts with multiple primary SMTP addresses

    I require a script to be run in powershell for Win Server 2008 R2, to look to AD accounts with multiple primary SMTP addresses ?
    Description: In my Organization, there can be a configuration error which might have resulted in multiple primary SMTP addresses to be assigned to a user. I want to get the list of these AD accounts which have multiple primary SMTP addresses

    Hi,
    You can use the PowerShell command given below to get the AD User name and primary smtp address in a OU,
    Get-ADuser -filter {proxyAddresses -like "*"} -searchbase "ou=testOU,dc=MyDomain,dc=local" -properties * | select name,proxyaddresses | fl
    NOTE: proxyAddresses attribute in AD User matches the primary SMTP address.
    Regards,
    Gopi
    JiJi
    Technologies

  • Where/ how do I set SNP to create Planned orders with multiple line items?

    Hi
    Currently our SNP is generating planned orders on a daily basis, it creates a single order with a single line item per location.
    Where/ how do set SNP to create planned orders on a daily basis to generate a single order with multiple line items per location, so therefore one planned order with multiple line items for a single location.
    Thanx
    Keegan

    Hi Keegan,
                   In SNP (APO) it is not possible to create order with multiple line items.
    But you can do some settings so that while planning system can do aggregation and disaggregation.
    But your requirment should be set on Aggregation/Dis-aggregation logic.
    Please follow the follwing links:
    http://help.sap.com/saphelp_scm2007/helpdata/en/2c/c557e9e330cc46b8e440fb3999ca51/content.htm
    Aggregation:
    http://help.sap.com/saphelp_scm2007/helpdata/en/42/f731d078e73ee4e10000000a1553f6/content.htm
    Disaggregation:
    http://help.sap.com/saphelp_scm2007/helpdata/en/a6/ebefaf32e22e468355da304cc59387/content.htm
    Please be sure that the setting of this logic will be at planning area level.
    You can't change aggregation/disaggregation logic further.
    Regards,
    Santosh

  • Thinkpad S1: Can't left-click some web elements with trackpad/mouse but can click with touchscreen?

    Hey so this is a strangely specific problem.
    For some websites I cannot click some drop-down menus with my cordless mouse, the trackpad, or trackpoint buttons, but am able to when I press on the touchscreen. Same with some online games I used to play like: http://shape.method.ac/
    In the website above, I can't click and drag where it says to "Drag to get started' (For anyone else maybe experiencing the same problem) with my mouse, but pressing and dragging on the touchscreen works just fine.
    Stylus doesn't work either.
    Other items are still clickable.
    I can open and close windows just fine, most links work, but it's these graphic elements that I can't interface with. I can't tell if this is an OS problem, browser, or something like HTML5 causing it.
    It happens consistently though. Any help would be most appreciated.

    I'm having this exact same problem but it doesn't seem related to sleeping. It just happened randomly, and restarting hasn't helped.

  • How to achieve no-downtime solution deployment on farms with multiple WFEs and LB

    Taking SharePoint Solution Deployer, my opensource PowerShell deployment script, to the next level,
    Bill Simser got me the idea of making the deployment even more smooth on farms with multiple WFEs and load balancer in order to achieve a no-downtime deployment
    The basic idea is to deploy the solutions on each WFEs one-by-one by
    1. Taking one WFE offline
    2. Installing the solution with the -local switch
    //Solution deployment
    Install-SPSolution -Identity <solutionname>.wsp –GACDeployment –CASPolicies –Local
    // Solution upgrade
    Update-SPSolution -Identity <solutionname>.wsp -LiteralPath LocalPathOfTheSolution.wsp -GacDeployment -Local
    3. Run post-deployment actions on the WFE (ie. restart services, recycle apppools or IIS reset, warmup server), which my script already does for each server
    4. Take WFE online again
    5. Repeat step 1-4 for all other WFEs
    I am struggling with three things here:
    1. The whole deployment process could be quite risky when something goes wrong in between. And in order to roll back I would require the original solution if it was already deployed before (which I can back up of course before I replace
    it)
    Anything which involves changing the content dbs should of course be done after the solutions is deployed to the whole farm, so this should not hurt in this case.
    Anyway MSDN says that the "DeployLocal" method (which I assume is the same as the -local switch in PS ) should be only used
    for
    troubleshooting purposes.
    So it would be great to hear about anyones experiences with it
    2. As there can be different types of load balancers (hardware, software) which might not be configurable through my script I assume that taking out the WFE from the the load balancer may not always be possible.
    So I thought about just taking the server offline.
    I haven't found an option yet to take only one server in the farm offline (without removing it from the farm of course), so maybe I miss something. Any ideas?
    3. Before taking a single WFE offline, I would like to assure that this server does not have any open sessions, operations of users ongoing. Unfortunately I found only the possibility to quiesce the whole farm, but not a single
    server. Am I missing something?
    Appreciate any ideas which might point me in the direction to solve the overall goal!
    SharePoint Architect, Speaker, MCP, MCPD, MCITP, MCSA, MCTS, Scrum Master/Product Owner
    Blog: www.matthiaseinig.de, Twitter:
    @mattein
    CodePlex: SharePoint Software Factory,
    SharePoint Solution Deployer

    Hi Mike, 
    unfortunately not. I tried several different approaches but didn't really success reliably with any of them. So eventually I gave up on it.
    Interesting idea though that Eric Hasley is commenting on the blog post you mentioned.
    "There is another approach that has worked for me in the past.  Because the deployment to each server is handled through a timer job,
    by stopping the timer service in a controlled fashion you can rollout your solution without incurring any user outage."
    It could work like that (in theory).
    Stop the SPTimerV4 on all servers in the farm apart from one.
    Take out the one to deploy to from the NLB
    Wait until it has no connections
    Deploy the solutions on it in the ordinary way (eg. with my
    SharePoint Solution Deployer ;))
    Put it back into the NLB and take the others out
    Wait until they have no connections left
    Activate the timer service on the others servers and let them deploy
    Put them back into the NLB
    No clue if this is actually working and you still have the problem with the NLB, so it could take a while.
    Also I am not certain what happens in state 5 if users use different versions of your solutions at the same time (old version on the remaining open connections, new version on the updated server)
    I do not have a suitable farm at hand to play with it though, so can't test it.
    Cheers
    Matthias
    Matthias Einig, CEO, SharePoint MVP
    Blog: www.matthiaseinig.de, Twitter:
    @mattein
    Projects: SharePoint Code Analysis Framework (SPCAF),SharePoint Code Check (SPCop),
    SharePoint Software Factory,
    SharePoint Solution Deployer

  • How to script a button click on a warning dialog in Keynote

    I am scripting an import of a PowerPoint file into Keynote ('08), and I encounter this dialog about reviewing warnings. I need to just click one of the buttons, "Don't Review", but I don't know how to do that. I've tried application clicks and window 1 clicks, but they do not work. I couldn't find a way to suppress warnings anywhere. Suggestions, anyone? Thanks.

    Hi Cole and welcome to the forum
    You could try using UI Browser
    http://prefabsoftware.com/uibrowser/
    download version 1.4.1, very handy application for GUI scripting
    oh, and dont forget to turn on "Enable access for assistive devices" in the universal access prefs pane.
    Budgie

  • How do I resolve installation of programs not compatible with OS X 10.8 (Mountain Lion)?

    Is there anyway to resolve this incompatibility without having to downgrade my OS to a 10.6 (or lower) or replacing my CD (containing the incompatible program)?

    If your machine already had Snow Leopard before and you have space space available at the bottom of your boot hard drive (SSD if you have enough space) and you have the 10.6 installer disks, then you can create a Snow Leopard partition on the machine, provided BootCamp/Windows hasn't taken it yet.
    If you don't have the 10.6 disks, then you can research this user tip about getting the correct 10.6 disks and if the 10.6 white ones will work for you or not.
    How to reformat a used Mac
    1: First backup your users file and make a bootable clone of your present OS X drive. This is bootable and you can use it to repair, erase and reverse clone if something messes up.
    Most commonly used backup methods
    2: Open Disk Utility click on your boot drive and the partition tab. Attempt to create a second partition below your main OS X one and notice the size it will allow, if it's not good enough for your needs (like you need more of the available free space) then exit without applying the change.
    See this user tip:
    BootCamp: "This disc can not be partitioned/impossible to move files."
    How to safely defrag a Mac's hard drive
    3: If you have a hard drive, use the Disk Utility > Erase Free Space > Zero on the boot drive and wait for it to complete, it will map off any bad sectors that will prevent formatting or installing of OS X Snow Leopard.
    4: Once you have created a second partition below your first one (named:  Snow Kitty), you want to change it's format to OS X Extended Journaled and apply.
    5: Next is the fun part, you follow these instructions below to install Snow Leopard (+ Rosetta for PPC apps), but you apply them to the Snow Kitty partition and you DON'T erase the entire drive or you will lose Mountain Lion partitions as well etc.
    How to erase and install Snow Leopard 10.6
    6: Optionally you apply the software tweaks and such here to maximize Snow Leopard performance
    For Snow Leopard Speed Freaks
    7: Oh, to boot into Snow Leopard or  Lion you hold the option/alt key down for Startup Manager and select which one you want.
    If your always in Snow Leopard or the other Lion, you can set either as a Startup Disk in System Preferences and it will tell the firmware which one to boot from so no need to hold the option key down.
    Now there is a hack over at MacRumors that will run a virtual machine of Snow Leopard in later OS X versions.
    This sort of explains virtual machines and what they do.
    Windows in BootCamp or Virtual Machine?
    Hope that works for you here's a free Cs2 for Snow Leopard.
    https://www.adobe.com/downloads/cs2_downloads/index.html

  • How can I get a click box to interact with a text entry box on the same page?

    I'm creating a tutorial on using a specific system and trying to recreate what the end user would actual do in the system.  On one slide, the end user must enter text into a field, then press a button (click box) to advance to the next slide.  I want to be able to have the click box validate if the text entry is correct before advancing to the next slide.  Is there a way to get the click box to validate the text entry?  Not sure how to get the two objects to "talk" to each other rather than function independently.
    Literally, I want the end user to enter the data in the text entry box, then click on the Get button.  I need the Get button (click box) to both validate that the data entered in the text entry box is correct and, if it is, advance to the next slide.  If the data is incorrect, I need the Get button (click box) to show the failure caption and have the end user re-enter the data correctly.
    How do I get the objects to work together?

    Hi there
    You need to delete the Click Box. Yes, you heard me. Delete the puppy.
    I  know it sounds weird. But bear with me. After you delete it, double-click the Text Entry Box. Then click the Options tab. See that option called Show Button? Click it and click OK to dismiss the TEB properties.
    Now you have the button you want. If you don't want a button, double-click it and set it as transparent. Remove the text. Position as desired where the Click Box was before.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • How did my iPhone auto reply to a message with "Who is this"?

    My iPhone4S auto responded to text messages today.  I didn't touch the phone and yet it replied "Who is this" three different times to incoming text messages.  When one person texted back their name, it auto responded "Jason who".  How is this possible?  I was with another person in a meeting and they saw the phone (seemingly) do this on its own as well so I know I'm not crazy.  Hope someone has heard of this.  Thanks.

    This could happen if someone else is using the same Apple ID for iMessage.  When you do this you end up getting each other's messages.  The other person's device may have received a message meant for you, then responded asking who it was, and you received the response making it appear that the response was "automatically" sent from your phone.

  • How will the Adobe Certified Expert program be managed with the shift to Creative Cloud?

    I am presently studying to certify as an Adobe Certified Expert/Adobe Certified Instructor in Photoshop, Illustrator, and InDesign. My studying has been based upon the CS6 versions.
    How will the ACE program work once we switch to CC? Should I wait for more changes to the program before taking my exams?
    Thank you!

    Hi Dreia, denniR,
    We will offer CC exams and keep the existing CS6 exams available while Adobe continues to sell and support our Creative Suite 6 product line. Creative Suite 5 exams will be retired as the new CC offerings are released.
    I know there are a lot of questions that will come up as our ACEs begin to work with CC and prep for the new certifications. To coordinate with the CC certifications, the exams will now be based on time periods. Meaning your certification will be valid for a pre-specific length of time and  will be required to recertify to maintain the CC product certifications. We will begin posting the specifics around the timeframes, policies, etc. in advance of the CC exam launches. Feel free to reach out to us at [email protected] with questions and comments.
    Thanks,
    Tiffany

  • Script for auto select of subtitle stream with 16:9 or 4:3 display

    I have an anamorphic 16:9 project that is set for 16:9 letterbox display. It is letterboxed in anamorphic for a 2.35:1 aspect ratio. I have 2 subtitle streams both identical in content. One stream is positioned for 16:9 displays with subtitles in the lower movie frame. The other stream is positioned for 4:3 displays with subtitles completely in the lower letterbox.
    I would like to create a script that can choose the appropriate stream depending on the user's setup (either 16:9 or 4:3). I would like the non-appropriate subtitle stream to appear non existent to the user. Basically, I don't want the user to have access to both of the streams. If they push the subtitle button on their remote, I would like to have just the proper one available. Can this be done in DVDSP? I'm not a total idiot with authoring, just not that experienced with scripting, so it's a little intimidating.
    I've gone as far to look in the manual and have found that SPRM 14 seems to be the key to display prefs. Could someone map out how to create such a script? Thank you.

    In general this script should work:
    mov GPRM0, SPRM14
    and GPRM0, 3072
    Set System Stream St(Subtitle Stream 1) (On) if GPRM 0 = 3072)
    Set System Stream St(Subtitle Stream 2) (On) if GPRM 0 != 3072)
    Jump Track 1
    The value of 3072 is returned when 16:9 value is stored in SPRM14.
    However some players may disregard this script as they might look for the presentation information in IFO files or in the video stream itself.
    The better approach is to flag one subtitle stream as 16:9 and the other as 4:3 in DVD After Edit if you have an access to it.
    MacPro 2.66, G5 DP 2.7   Mac OS X (10.4.9)   TASCAM DA-88, DigiBeta, DeckLink HD Extreme, Cinemacraft Encoder

Maybe you are looking for

  • How can I initialize all TabNavigator Tabs upon a state change?

    Here's the basic goal. I want to provide two views to the user that display the same panels. I configured each view as a separate state but I am having trouble initializing each of the tab views since they are only created by Flex when the user first

  • How to get the list of installed maps in OviMaps 3...

    Is it possible somehow to get the list of maps which are downloaded and installed to OviMaps 3.03? Map loader seems not to help

  • Vendor debit/credit memo

    Can anyone one help me in the following with T code. Make the three way matching verification                     find difference between PO & Invoicel                Make an invoice claims                Create a debit or credit MEMO           I wil

  • CURSOR Inside select statement

    Hi, I am trying to generate reports in XML Publisher using PL/SQL Procedure. Following is my procedure: PROCEDURE XXDL_PO_VEN_SUMMARY_BY_VEN (ERR_BUFF VARCHAR2,                     RETCODE VARCHAR2,                in_vendor_number IN VARCHAR2,       

  • Starting a Cisco call manager express

    I have a cisco 2651 with Cisco call manager express. I have too 15 IP telephones 7902G The configuration is in factory default. Ì have to create an IP pbx and extensions of a municipality with that components. I's like that anybody helps me in the st