LukasRecko Posted January 27, 2016 Share Posted January 27, 2016 Hi Is It Possible to Change Built in Function Names ? In Now there are 2* Possible Solutions $Numb1 = 10 $Numb2 = 11 $MSG = MsgBox if $Numb1 < $Numb2 Then $MSG(0,"","Woks") The Second Solution Doesn't work. Local $aResult = DllCall("AutoItX3.dll", "NONE", 'ProcessClose()', "", 0, "taskmgr.exe", "", "", 0) Is there Another way of doing it ? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 27, 2016 Moderators Share Posted January 27, 2016 LukasRecko, In your other thread I asked why you needed to access the DLL from within a script - now I see that you want to hide a function name (and looking to use ProcessClose on taskmgr.exe to boot) I am becoming suspicious of your motives. A suitable explanation please before either thread goes any further. M23 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...
LukasRecko Posted January 27, 2016 Author Share Posted January 27, 2016 Task Manager is just a Example dont understand me wrong I just wont to ReName the Buildin Function ... $Numb1 = 10 $Numb2 = 11 $MSG = MsgBox if $Numb1 < $Numb2 Then $MSG(0,"","Woks") This method is not a Solution ..... If im Right A Build in Function is just a Pointer to a Adress in Memory Local $tMode = DllStructCreate('int') Local $pMode = DllStructGetPtr($tMode) ; set value with DllStructSetData($tMode, 1, 'value') ; get value with Local $getValue = DllStructGetData($tMode, 1) This Method just woks with Variable ... Creating a dllstr that Point to a Pointer ? The Problem is How can i find out The Address of the Func ? This might be the Solution ! https://www.autoitscript.com/autoit3/docs/functions/DllCall.htm Can Someone Explain me , How could i use it to Invoke a Built In Func ? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 27, 2016 Moderators Share Posted January 27, 2016 LukasRecko, You have still not explained WHY you want to rename native functions - we go no further unless you do so. M23 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...
LukasRecko Posted January 27, 2016 Author Share Posted January 27, 2016 Neh Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 27, 2016 Moderators Share Posted January 27, 2016 LukasRecko, Fine. M23 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