Sign in to follow this  
Followers 0
questioner

how do I create auto key strokes?

2 posts in this topic

All I am trying to do is when I click a button say "T" it left mouse clicks and types "0" every second for quite a while until I hit "T" again.

Can anyone help me with this? I searched the FAQ and could find nothing along the lines of where to find the command information to make this happen......

Share this post


Link to post
Share on other sites



If the button is made by you using your own gui, then you can use GuiGetMsg to detect when the button is clicked. If not, you will probably just use _IsPressed() to see if the left mouse is clicked. If it is, then check to see if the correct window is active and the mouse is in the correct spot. If all this is true, the button was pressed. MouseClick() will click the mouse for you and Send() will type stuff for you. All of this is in the help file too. Try this out and come back with your code if you have any questions.


[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

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  
Followers 0