paditepred Posted April 23, 2008 Share Posted April 23, 2008 Hi, can you help with this? I need to do 2 mousemoves Send "1" And then 2 other mousemoves It should repeat but with "2" and then "3"... until "10" and then stop. MouseMove("left", 200, 200, 1) MouseMove("left", 220, 220, 1) MouseMove("left", 400, 400, 1) MouseMove("left", 420, 420, 1) What code should I put in the middle? Link to comment Share on other sites More sharing options...
spudw2k Posted April 23, 2008 Share Posted April 23, 2008 Try a For Loop For $x = 1 to 10 ///code Next Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
paditepred Posted April 23, 2008 Author Share Posted April 23, 2008 Try a For LoopFor $x = 1 to 10 ///codeNextThank you. I tried for days, I can't. Link to comment Share on other sites More sharing options...
martin Posted April 23, 2008 Share Posted April 23, 2008 Hi, can you help with this? I need to do 2 mousemoves Send "1" And then 2 other mousemoves It should repeat but with "2" and then "3"... until "10" and then stop. MouseMove("left", 200, 200, 1) MouseMove("left", 220, 220, 1) MouseMove("left", 400, 400, 1) MouseMove("left", 420, 420, 1) What code should I put in the middle? Before you write anything in the middle get the outsides right From the parameters you have used I assume you mean MouseClick not MouseMove For $x = 1 To 10; for the 10 values you want to send MouseClick("left", 200, 200, 1) MouseClick("left", 220, 220, 1) Send($x);even though you normally use a string for Send, the function is smart enough to convert it for you MouseClick("left", 400, 400, 1) MouseClick("left", 420, 420, 1) Next Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
paditepred Posted April 23, 2008 Author Share Posted April 23, 2008 Before you write anything in the middle get the outsides right From the parameters you have used I assume you mean MouseClick not MouseMove For $x = 1 To 10; for the 10 values you want to send MouseClick("left", 200, 200, 1) MouseClick("left", 220, 220, 1) Send($x);even though you normally use a string for Send, the function is smart enough to convert it for you MouseClick("left", 400, 400, 1) MouseClick("left", 420, 420, 1) Next I can't believe my eyes. Thank you. Link to comment Share on other sites More sharing options...
paditepred Posted April 23, 2008 Author Share Posted April 23, 2008 (edited) Try a For LoopFor $x = 1 to 10 ///codeNextYeah you actually told the same thing, I'm dumb. Edited April 23, 2008 by paditepred 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