UncleLouie909 Posted October 2, 2018 Posted October 2, 2018 Ok lets say I have pies, apples, and bananas. How Can i update a total on console so it doesn't make more lines. ------Console ----- Apples: 5 Pies : 10 whatever: 5 ---Updated Console--- Apples: 11 Pies : 24 whatever: 66 --NOT--- Apples: 5 Pies : 10 whatever: 5 Apples: 6 Pies : 14 whatever: 61 Thanks in advance for help. P.S. The example is i chose is from the fact I am very hungry rn...
Moderators JLogan3o13 Posted October 2, 2018 Moderators Posted October 2, 2018 We have a wonderful forum search function, found this in 10 seconds. $apples = "Apples: " $pies = "Pies: " $whatever = "Whatever: " SendSciTE_Command("menucommand:420") For $a = 2 To 10 Step 2 ConsoleWrite($apples & $a & @CRLF & $pies & $a & @CRLF & $whatever & $a & @CRLF) Sleep(2000) SendSciTE_Command("menucommand:420") Next Func SendSciTE_Command($sCmd) Local $Scite_hwnd = WinGetHandle("DirectorExtension") Local $WM_COPYDATA = 74 Local $CmdStruct = DllStructCreate('Char[' & StringLen($sCmd) + 1 & ']') DllStructSetData($CmdStruct, 1, $sCmd) Local $COPYDATA = DllStructCreate('Ptr;DWord;Ptr') DllStructSetData($COPYDATA, 1, 1) DllStructSetData($COPYDATA, 2, StringLen($sCmd) + 1) DllStructSetData($COPYDATA, 3, DllStructGetPtr($CmdStruct)) DllCall('User32.dll', 'None', 'SendMessage', 'HWnd', $Scite_hwnd, _ 'Int', $WM_COPYDATA, 'HWnd', 0, _ 'Ptr', DllStructGetPtr($COPYDATA)) EndFunc ;==>SendSciTE_Command Thanks goes to Jos for the function. UncleLouie909 1 "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!
UncleLouie909 Posted October 3, 2018 Author Posted October 3, 2018 Thanks man, I'll search harder next time. Will test right meow
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