editcheck Posted January 13, 2019 Posted January 13, 2019 (edited) Hi, after years of use autoit i am tired to type all time: msgbox('','','Hi') So, wanna mod the function for set default values... or some more changes. where is the function? or there are another modes for debug messages that i do not knowed ? XD [just wanna like alert('text')] And is there any place for all integrates functions ? Thank. Sry my english =E Edited January 13, 2019 by editcheck
Developers Jos Posted January 13, 2019 Developers Posted January 13, 2019 This is an internal function, so use write your own Func to wrap the MsgBox() function, should be a piece of cake when you code for years. Jos FrancescoDiMuro 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Earthshine Posted January 13, 2019 Posted January 13, 2019 (edited) I There are already some very nice debugging and logging UDFs Edited January 13, 2019 by Earthshine My resources are limited. You must ask the right questions
TheXman Posted January 14, 2019 Posted January 14, 2019 2 hours ago, editcheck said: Hi, after years of use autoit i am tired to type all time: msgbox('','','Hi') So, wanna mod the function for set default values... or some more changes. @editcheck If you use the SciTE4AutoIt3 editor, then you create all the default MsgBoxes that you want with the Abbreviation Manager. You can read more about it in the SciTE4AutoIt3 editor documentation under "Extra Utilities". It looks like this: editcheck 1 CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman
editcheck Posted January 14, 2019 Author Posted January 14, 2019 @Jos I have, but wanna not have to add the #include all time. Some time i need just one time the msgbox for a simple script. @Earthshine Yes, i know, but do not like the debugger interface xD (talking about debugger v0.47 or there is any better ?) @TheXman Thanks. But some time i do not use the scite (use notepad2mod and some register modify for the association). But your solution is good. So, can not modify the internal function. Thank to all for the replies =)
RTFC Posted January 14, 2019 Posted January 14, 2019 (edited) 11 hours ago, editcheck said: where is the function? MsgBox (and its A/W variants) are windows OS functions in user32.dll/user32.lib; AutoIt just wraps these. Edited January 14, 2019 by RTFC editcheck 1 My Contributions and Wrappers Spoiler BitMaskSudokuSolver BuildPartitionTable CodeCrypter CodeScanner DigitalDisplay Eigen4AutoIt FAT Suite HighMem MetaCodeFileLibrary OSgrid Pool RdRand SecondDesktop SimulatedAnnealing Xbase I/O
TheSaint Posted January 14, 2019 Posted January 14, 2019 Here is something I made many years ago. Dialog Maker.au3 It uses magic numbers and is untested with more recent AutoIt. However, I recall guinness modifying it at one point, a version of which you might find with a search. In any case, should be easy for an experienced coder to modify to suit. Make sure brain is in gear before opening mouth! Remember, what is not said, can be just as important as what is said. Spoiler What is the Secret Key? Life is like a Donut If I put effort into communication, I expect you to read properly & fully, or just not comment. Ignoring those who try to divert conversation with irrelevancies. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)
FrancescoDiMuro Posted January 14, 2019 Posted January 14, 2019 (edited) 21 minutes ago, TheSaint said: It uses magic numbers Spoiler @guinness's face: Edited January 14, 2019 by FrancescoDiMuro supraaxdd 1 Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
Developers Jos Posted January 14, 2019 Developers Posted January 14, 2019 10 hours ago, editcheck said: @Jos I have, but wanna not have to add the #include all time. Some time i need just one time the msgbox for a simple script. What can I say other than that this sounds pretty silly. 10 hours ago, editcheck said: So, can not modify the internal function. Thank to all for the replies =) No. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Trong Posted January 14, 2019 Posted January 14, 2019 (edited) _MsgBox("It Is A Message !") Func _MsgBox($text = "", $title = "", $flag = 262144, $timeout = 0, $hwnd = "") Local $Return If IsHWnd($hwnd) Then $Return = MsgBox($flag, $title, $text, $timeout, $hwnd) Else $Return = MsgBox($flag, $title, $text, $timeout) EndIf Return SetError(@error, 0, $Return) EndFunc ;==>_MsgBox Edited January 14, 2019 by VIP Beautify code Enjoy my work? Buy me a 🍻 or tip via ❤️ PayPal
Earthshine Posted January 14, 2019 Posted January 14, 2019 sounds like a Homer Simpson programmer, can't someone else do it? My resources are limited. You must ask the right questions
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