Crafter Posted February 14, 2014 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?
JohnOne Posted February 14, 2014 Posted February 14, 2014 Adlibregister AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Moderators Melba23 Posted February 14, 2014 Moderators 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: Reveal hidden contents 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
Crafter Posted February 14, 2014 Author 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?
JayHawkfl Posted February 14, 2014 Posted February 14, 2014 On 2/14/2014 at 1:23 PM, Crafter said: 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
JohnOne Posted February 14, 2014 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.
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