Strike21 Posted June 14, 2009 Share Posted June 14, 2009 Hi, i'm german so excuse my poor english skills. I need a script to let autoit press "Tab - F - and a click to my mouse positions" 3 times in a row And this script has to stay active all the time and should do the combination when i press "Q". I wrote this HotKeySet("{ASC 081}", "Terminate") Func Terminate() Exit 0 EndFunc Send("{ASC 070}") MouseClick("left", 125, 67, 2) Send("{TAB}") Send("{ASC 070}") MouseClick("left", 125, 67, 2) Send("{TAB}") Send("{ASC 070}") MouseClick("left", 125, 67, 2) Send("{TAB}") Send("{ASC 070}") MouseClick("left", 125, 67, 2) Send("{TAB}") But i think thats totally wrong and i don't know how to let autoit to make a click at the mouse position or a click in general Can u help me or post a working version of mine? Link to comment Share on other sites More sharing options...
oMBRa Posted June 14, 2009 Share Posted June 14, 2009 replace all {ASC ...} with the key you actually want to send or set an hotkey, to click at the current mouse position use "MouseClick ( "button")" with no x/y coordinates, finally add a loop, check in the help file for "while" Link to comment Share on other sites More sharing options...
GEOSoft Posted June 14, 2009 Share Posted June 14, 2009 Put it in a loop? For $i = 1 To 3 Send("{TAB}{ASC 070}") MouseClick("left", 125, 67, 2) Next George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
Strike21 Posted June 14, 2009 Author Share Posted June 14, 2009 i'm too stupid to make it. how do i set For $i = 1 To 3 Send("{TAB}{F}") MouseClick("button") Next to the hotkey Q? So when i press Q the script makes the combination 3 times and then stops. When I press Q again it has to do it again. Link to comment Share on other sites More sharing options...
CodyBarrett Posted June 14, 2009 Share Posted June 14, 2009 hotkeyset ('q','Function') while 1 sleep (100) wend Func Function () msgbox (0,'','Successfully called!') ;just for testing purposes For $i = 1 To 3 Send("{TAB}{F}") MouseClick("button") Next endfunc is that what you want? [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
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