Jump to content
Sign in to follow this  

Super Noob. Just want help on a simple script.

Recommended Posts

I just need help with a simple script, I want my left mouse button to automatically click after I press the e button on my keyboard. Can somebody help me with this? Thanks

Share this post

Link to post
Share on other sites

HotKeySet("e", "LeftClick")
HotKeySet('{Esc}', "Exit") ; Press Escape to End the Script

Func LeftClick()

While 1
    $b = True

TD :)

Edited by TheDcoder

A cross-platform implementation of the AutoIt language

My contributions to the AutoIt Community ##AutoIt at freenode, real-time chat



If I have hurt or offended you in anyway, Please accept my apologies, I never (regardless of the situation) intend to do that to anybody.

Share this post

Link to post
Share on other sites

What application are you automating by chance? There could be a better way to click on the element. :)

EDIT: Welcome to the AutoIt forum happyluckbox! :D

Edited by MikahS

Snips & Scripts

My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ


Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...