BJJ Posted February 6, 2009 Share Posted February 6, 2009 Hi i have problem I have w some while and i want end this while after 15 round While 2 MouseClick ( "" , $px1 , $py1 , 1 , 0) Sleep($time1) MouseMove($ox1, $oy1, 0) sleep(500) MouseClick ( "" , $ox1 , $oy1 , 1 , 0) Sleep(1500) MouseMove($px1, $py1, 0) sleep(500) Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 6, 2009 Moderators Share Posted February 6, 2009 Quizzy,If you need to loop for a fixed number of times, use a For...Next loop.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...
rudi Posted February 6, 2009 Share Posted February 6, 2009 Hi. As posted above, for a known number of loops you should use for $i = 1 to 15 ; do your actions nextoÝ÷ Ù.j[(q©î±å¡W¢}ý¶h¬²Ú*ºªê-Ê«Â¥{¥46®¶sbb33c¶Ò §vÆR ²Fò÷W"7Föç0 b33c¶³Ò²æ7&VÖVçBb33c¶ bb33c¶ÒRFVâWDÆö÷¥tVæ@ Regards, Rudi. Earth is flat, pigs can fly, and Nuclear Power is SAFE! Link to comment Share on other sites More sharing options...
sandin Posted February 6, 2009 Share Posted February 6, 2009 you can also set a condition to While: Global $question = True Global $Var = 0 While $question = True $var += 1 Sleep(25) ToolTip($var) if $var >= 100 then $question = False WEnd MsgBox(0, "", "While ended...") Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
BJJ Posted February 6, 2009 Author Share Posted February 6, 2009 Thanks all @Sandin Greate kode 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