GoliaX Posted April 26, 2019 Share Posted April 26, 2019 (edited) Hello all, I need to show to end user how much time left is needed to reach next round: Every operation takes 0,02% of the total round and it takes 20sec for every operation. I have a timerinit() and timerdiff() that calculates total operation time taken, its about 20 seconds as stated, it can variate but np since It's stored in an array and variable $timeoperation = timerdiff($example). So i need that the end user, if he makes operations faster or slower, can see if he will take more time or less to get next round showing on live statics on the GUI Func time_to_next_round() Local $total_operations_to_next_round = 100 ;% Local $_%_per_operation = 0,02 ;% Local $time_per_operation = $time_killedmob ;variable from a timer timerinit() Local $a, $b, $result $a = ( $total_operations_to_next_round / $_%_per_operation ) $b = ( $a * $time_per_operation ) $result = ($b / 60 ) Global $total_secs = $result EndFunc This &result should now count down and should change up or down the total downtime if he was faster or slower on his operations, so is it even posible? Thank you in advance Edited April 26, 2019 by GoliaX type error Link to comment Share on other sites More sharing options...
Nine Posted April 27, 2019 Share Posted April 27, 2019 5 hours ago, GoliaX said: $time_killedmob “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted April 27, 2019 Moderators Share Posted April 27, 2019 Moved to the appropriate forum. Moderation Team "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 27, 2019 Moderators Share Posted April 27, 2019 GoliaX, Quote $time_killedmob So you are still trying to write that gamebot. I really dislike it when people lie to me - and I warned you here that you had used up any flex I was prepared to show you. Take a week off to think about how you have behaved since your arrival here - if and when you return you had best be prepared to fit in to the community and respect its rules or the next ban will be permanent. M23 KickStarter15 and FrancescoDiMuro 2 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...
Recommended Posts