FranklinZero Posted September 5, 2014 Share Posted September 5, 2014 #include <_ProcessListProperties.au3> Func NWMemoryUKiller () $nwPLP = _ProcessListProperties ("GameClient.exe") $nwPnum = 1 ;Define 1 como número base do processo atual While $nwPnum <= $nwPLP[0][0] if $nwPLP[0][0] >= $nwPnum Then If $nwPLP[$nwPnum][7] > 1328196 Then Do ProcessClose ($nwPLP[$nwPnum][1]) Until Not ProcessExists ($nwPLP[$nwPnum][1]) EndIf EndIf $nwPnum = $nwPnum + 1 Sleep (100) WEnd EndFunc While ProcessExists ("FullyAutoToD.exe") NWMemoryUKiller () Sleep (100) WEnd That code is running the "ProcessClose ($nwPLP[$nwPnum][1])" even when "If $nwPLP[$nwPnum][7] > 1328196 Then" doesnt match. Can anyone help me? Link to comment Share on other sites More sharing options...
JohnOne Posted September 5, 2014 Share Posted September 5, 2014 Show this function "$nwPLP = _ProcessListProperties ("GameClient.exe")" 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...
FranklinZero Posted September 5, 2014 Author Share Posted September 5, 2014 is that one Link to comment Share on other sites More sharing options...
JohnOne Posted September 5, 2014 Share Posted September 5, 2014 Try.. If Number($nwPLP[$nwPnum][7]) > 1328196 Then 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...
FranklinZero Posted September 5, 2014 Author Share Posted September 5, 2014 Still running the event. =/ Link to comment Share on other sites More sharing options...
JohnOne Posted September 5, 2014 Share Posted September 5, 2014 Never heard of AutoIt getting maths wrong. 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...
FranklinZero Posted September 5, 2014 Author Share Posted September 5, 2014 I never faced one until now. =/ Link to comment Share on other sites More sharing options...
JohnOne Posted September 5, 2014 Share Posted September 5, 2014 How exactly are you determining that it is getting it wrong? 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...
FranklinZero Posted September 5, 2014 Author Share Posted September 5, 2014 Hes closing the process even when the process wont get memory over the amount, in this case 1,26 GB Link to comment Share on other sites More sharing options...
JohnOne Posted September 5, 2014 Share Posted September 5, 2014 How are you certain about that, tell exactly how you are making your calculations, because it is much more likely that yours are at fault. 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...
FranklinZero Posted September 5, 2014 Author Share Posted September 5, 2014 1328196 / 1024 / 1024 = 1,266666412353516 GB The code is if the process reach that memory used then kill him. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted September 5, 2014 Moderators Share Posted September 5, 2014 FranklinZero,You have been a member here for over 3 years - and yet it seems that you still have not realised that there are some Forum rules (there is also a link at bottom right of each page) that we ask posters to respect. Among them is the following: Do not ask for help with AutoIt scripts, post links to, or start discussion topics on the following subjects:[...]Launching, automation or script interaction with games or game servers, regardless of the gameso posting a script containing the line:$nwPLP = _ProcessListProperties ("GameClient.exe")is not really a very good idea. Please go and read the rules carefully before you post again. JohnOne, Show this function "$nwPLP = _ProcessListProperties ("GameClient.exe")"A visit to the opticians might be good idea. M23 MikahS 1 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