happyluckbox

Super Noob. Just want help on a simple script.

3 posts in this topic

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



#2 ·  Posted (edited)

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

Func LeftClick()
    MouseClick("left")
EndFunc

While 1
    $b = True
WEnd

TD :)

Edited by TheDcoder

AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Spoiler

My contributions to the AutoIt Community

Some messages & Apologizes:

If I hurt you, Please accept my apologies, I never (regardless of the situation) mean to hurt anybody!!!

Also, I am very busy with my project so I will appear in the last row of the online list, if you want to contact me: Email@TheDcoder.xyz

Or you can have a nice chat with me in freenode, I use the same nick on freenode too!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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