Crafter Posted February 14, 2014 Share Posted February 14, 2014 Hello, I'm new in autoit and i learn new functions everyday. Today i wanted to make 2 loops working at the same time but i have no idea how to make it. It should be working like: - every 10 sec click RMB - every 4 sec click LMB Could you help me, please? Link to comment Share on other sites More sharing options...
JohnOne Posted February 14, 2014 Share Posted February 14, 2014 Adlibregister AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 14, 2014 Moderators Share Posted February 14, 2014 Crafter,Welcome to the AutoIt forum. For something like this I would suggest using Adlib. But if you can give us some more details as to why you need to do this we might be able to offer more focused help. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Crafter Posted February 14, 2014 Author Share Posted February 14, 2014 Hello Melba23. I'm trying to make macro to scan if someone type to me on skype and auto reply on msg but first i need to learn how to make 2 independend loops I found timer function. HotKeySet("{PAUSE}", "Terminate") Dim $nTimer1 = TimerInit() Dim $nTimer2 = TimerInit(), $nTimer2_diff = Random(8000,11000,1) While 1 If TimerDiff($nTimer1) > 120000 Then MouseClick("left") $nTimer1 = TimerInit() EndIf If TimerDiff($nTimer2) > $nTimer2_diff Then Send("{F12}")) $nTimer2 = TimerInit() $nTimer2_diff = Random(8000,11000,1) EndIf Sleep(10) WEnd Func Terminate() Exit 0 EndFunc Does it look good? Link to comment Share on other sites More sharing options...
JayHawkfl Posted February 14, 2014 Share Posted February 14, 2014 Hello Melba23. I'm trying to make macro to scan if someone type to me on skype and auto reply on msg but first i need to learn how to make 2 independend loops That's a really cool idea. I can't work on this at work, but I'll put my mind to this when I get home Thanks for your time Link to comment Share on other sites More sharing options...
JohnOne Posted February 14, 2014 Share Posted February 14, 2014 Does the skype UDF in example scripts not cover this? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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