FastHelper Posted June 7, 2008 Share Posted June 7, 2008 how can i show my msgBox near system Tray ? default is like this: MsgBox(4096, "Test", "This box will time out in 10 seconds", 10) sorry for my spelling mistakes. its due to be fast !!! Link to comment Share on other sites More sharing options...
d4rk Posted June 7, 2008 Share Posted June 7, 2008 i first think of WinMove but the script will be stopped until the messagebox is replied. so i suggest making a gui, it's easier to set the positon [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
rudi Posted June 7, 2008 Share Posted June 7, 2008 (edited) how can i show my msgBox near system Tray ? default is like this: MsgBox(4096, "Test", "This box will time out in 10 seconds", 10) I'd use a GUI instead. Look up in the help file: GUIcreate() GUIctrlcreatelabel() GUICtrlCreateButton() To calc your position, see @desktopwidth @desktopheight Regards, Rudi. [edit] corrected typos. Edited June 7, 2008 by rudi Earth is flat, pigs can fly, and Nuclear Power is SAFE! Link to comment Share on other sites More sharing options...
FastHelper Posted June 7, 2008 Author Share Posted June 7, 2008 (edited) I'd use a GUI instead. Look up in the help file: GUIcreate() GUIctrlcratelabel() GUICtrlCreateButton() To calc your position, see @desktopwidth @desktopheight Regards, Rudi. thanks rudi for you help. can you tell me how can i call this function in my script Func _ReduceMemory($i_PID = -1) ; Code Goes Here... EndFunc;==> _ReduceMemory() like _ReduceMemory() or _ReduceMemory($i_PID = -1) or _ReduceMemory(@AutoItPid) which will work perfectly? Edited June 7, 2008 by FastHelper sorry for my spelling mistakes. its due to be fast !!! Link to comment Share on other sites More sharing options...
ChrisL Posted June 7, 2008 Share Posted June 7, 2008 Move a message box and if you want change the button text. >> http://www.autoitscript.com/forum/index.php?showtopic=27507 [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
FastHelper Posted June 7, 2008 Author Share Posted June 7, 2008 Move a message box and if you want change the button text. >> http://www.autoitscript.com/forum/index.php?showtopic=27507 will this UDF work if i want to move the message box when user tries to click on it? expandcollapse popup;=============================================================================== ; ;~ Function: _MsgBoxChangeButtons() ;~ Desctiption Changes the position of and button text of a MsgBox() ;~ Version: N/A ;~ Original UDF's HerewasPlato and Smoke_N ;~ Author: ChrisL ;~ Parameter(s): ;~ $iMBFlag = Icon and or Flags (Type of buttons) ;~ $MBTitle = Title of MsgBox() ;~ $MBText = Text for the Body of the MsgBox() ;~ $MBButton1 = Text to change the first button ;~ $MBButton2 = Optional Param: Text to change the second Button if applicable ;~ $MBButton3 = Optional Param: Text to change the third Button if applicable ;~ $iMBTimeOut = Optional Param: MsgBox() Time out ;~ $xMBpos = Optional Param: X coordinate to move to. Default no move is "" ;~ $yMBpos = Optional Param: y coordinate to move to. Default no move is "" ;~ Requirement(s): AutoIt Beta 3.1xx ;~ Example: ;~ _MsgBoxChangeButtons(36, 'My Title', 'My Text', 'Button 1', 'Button 2', '', 3,100,20) ;~ Example Result: Will turn out a MsgBox() instead of Yes and No button will be Button 1 and Button 2 with a time out of 3 seconds at x 100 and y 20 ;~ Return Value(s): Will return the value that was clicked in the MsgBox() ;~ Return Value -1 incorrect parameter see @error for details ;~ @error 1 $iFlag is not numerical ;~ @error 2 $iMBTimeOut is not numerical ;~ @error 3 $xMBpos is not numerical ;~ @error 4 $yMBpos is not numerical ; ;=============================================================================== Func _MsgBoxChangeButtons($iFlag, $sTitle, $sText, $sButton1, $sButton2 = '', $sButton3 = '', $iMBTimeOut = 0, $xMBpos = "", $yMBpos = "") If Not IsNumber ($iFlag) then Seterror (1 ) Return -1 ElseIf Not IsNumber ($iMBTimeOut) then Seterror (2 ) Return -1 ElseIf $xMBpos <> "" and IsNumber ($xMBpos) = 0 then Seterror (3 ) Return -1 ElseIf $yMBpos <> "" and IsNumber ($yMBpos) = 0 then Seterror (4 ) Return -1 Endif Local $MBFile = FileOpen(@TempDir & '\MiscMMB.txt', 2) Local $MBLine0 = '' Local $MBLine1 = '#NoTrayIcon' Local $MBLine2 = 'Opt("WinWaitDelay", 0)' Local $MBLine3 = 'WinWait("' & $sTitle & '")' Local $MBLine4 = 'ControlSetText("' & $sTitle & '", "", "Button1", "' & $sButton1 & '")' Local $MBLine5 = 'ControlSetText("' & $sTitle & '", "", "Button2", "' & $sButton2 & '")' Local $MBLine6 = 'ControlSetText("' & $sTitle & '", "", "Button3", "' & $sButton3 & '")' Local $MBline7 = 'WinMove("' & $sTitle & '", ""' & ', ' & $xMBpos & ', ' & $yMBpos & ')' Local $MBline8 = '$pos = WingetPos("' & $sTitle & '", "")' Local $MBline9 = 'WinMove("' & $sTitle & '", ""' & ', ' & $xMBpos & ',$pos[1])' Local $MBline10 = 'WinMove("' & $sTitle & '", ""' & ', $pos[0], ' & $yMBpos & ')' If $sButton2 = '' Then FileWrite(@TempDir & '\MiscMMB.txt',$MBLine0 & @crlf & $MBLine1 & @CRLF & $MBLine2 & @CRLF & $MBLine3 & @CRLF & $MBLine4) ElseIf $sButton2 <> '' And $sButton3 = '' Then FileWrite(@TempDir & '\MiscMMB.txt',$MBLine0 & @crlf & $MBLine1 & @CRLF & $MBLine2 & _ @CRLF & $MBLine3 & @CRLF & $MBLine4 & @CRLF & $MBLine5) ElseIf $sButton2 <> '' And $sButton3 <> '' Then FileWrite(@TempDir & '\MiscMMB.txt',$MBLine0 & @crlf & $MBLine1 & @CRLF & $MBLine2 & @CRLF & _ $MBLine3 & @CRLF & $MBLine4 & @CRLF & $MBLine5 & @CRLF & $MBLine6) EndIf If $xMBpos <> "" and $yMBpos <> "" then FileWriteLine(@TempDir & '\MiscMMB.txt', @crlf & $MBLine7) ElseIf $xMBpos <> "" and $yMBpos = "" then FileWriteLine (@TempDir & '\MiscMMB.txt', @crlf & $MBLine8) FileWriteLine (@TempDir & '\MiscMMB.txt', @crlf & $MBLine9) Elseif $xMBpos = "" and $yMBpos <> "" then FileWriteLine (@TempDir & '\MiscMMB.txt', @crlf & $MBLine8) FileWriteLine (@TempDir & '\MiscMMB.txt', @crlf & $MBLine10) Endif $MBPID1 = Run(@AutoItExe & ' /AutoIt3ExecuteScript ' & EnvGet('TEMP') & '\MiscMMB.txt') $MBBox = MsgBox($iFlag, $sTitle, $sText, $iMBTimeOut) FileClose($MBFile) Do FileDelete(@TempDir & '\MiscMMB.txt') Until Not FileExists(@TempDir & '\MiscMMB.txt') Return $MBBox EndFunc sorry for my spelling mistakes. its due to be fast !!! Link to comment Share on other sites More sharing options...
ChrisL Posted June 7, 2008 Share Posted June 7, 2008 Nope and I don't like where this is going.. you'll be asking how to hide your process next [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
FastHelper Posted June 7, 2008 Author Share Posted June 7, 2008 Nope and I don't like where this is going.. you'll be asking how to hide your process nexti want this for a game which gathers point if user will successfully click on message box. and for this i dont need to hide my process. i hope now you know where this is going. sorry for my spelling mistakes. its due to be fast !!! Link to comment Share on other sites More sharing options...
ChrisL Posted June 7, 2008 Share Posted June 7, 2008 OK lets say that what you are doing is legitimate.. so far you want to know how to email, how to reduce memory usage and how to move a message box when someone tries to click on it. And you never post your code only example code that has nothing to do with what your trying to do. You must see how suspect that looks don't you? [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
FastHelper Posted June 7, 2008 Author Share Posted June 7, 2008 OK lets say that what you are doing is legitimate.. so far you want to know how to email, how to reduce memory usage and how to move a message box when someone tries to click on it. And you never post your code only example code that has nothing to do with what your trying to do. You must see how suspect that looks don't you?is it necessary to post my code for help? as i know you can tell me without seeing the code. sorry for my spelling mistakes. its due to be fast !!! Link to comment Share on other sites More sharing options...
ChrisL Posted June 7, 2008 Share Posted June 7, 2008 i know you can tell me without seeing the code.Well I would say clearly not as your still asking how to use _ReduceMemory() You want to know how to use it and you were told how in your other Topic, then you want to know where to put it. How can anyone tell you where to put it in your Secret Squirrel Script if you don't post your code?I and others on here will try to help but your not helping us to help you. If you wanted to move a message box from the user why not ask that in the first place, you asked to place it in a specific position not play a game where it moves everytime they try and click on it. All I am saying to you is that by hiding what your doing and asking a question which then changes in to something else which could be used maliciously is all seeming a bit underhand.I hope that you will prove me wrong thanks rudi for you help. can you tell me how can i call this function in my scriptCODE: AutoItFunc _ReduceMemory($i_PID = -1) ; Code Goes Here...EndFunc;==> _ReduceMemory()like _ReduceMemory() or _ReduceMemory($i_PID = -1) or _ReduceMemory(@AutoItPid)which will work perfectly? [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
rudi Posted June 7, 2008 Share Posted June 7, 2008 (edited) thanks rudi for you help. can you tell me how can i call this function in my script [some question 100% out of the original scope] which will work perfectly? It will work perfectly easy after you dropped your code here so that we can see what it's about. See the FAQ, Q18, A2 Regards, Rudi. Edited June 7, 2008 by rudi Earth is flat, pigs can fly, and Nuclear Power is SAFE! 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