Jump to content
LukasRecko

Is It Possible to Change Built in Function Names ?

Recommended Posts

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 ?

 

 

Share this post


Link to post
Share on other sites

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


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

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 ?

 

 

Share this post


Link to post
Share on other sites

LukasRecko,

You have still not explained WHY you want to rename native functions - we go no further unless you do so.

M23


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

LukasRecko,

Fine.

M23


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×
×
  • Create New...