Jump to content

Recommended Posts

Posted

  On 1/23/2013 at 9:22 AM, 'water said:

It's quite easy to decide which include you need: Function name _AD* => adfunctions; function name: _AD_* => AD.au3

Do you know an easy way to make an alias function? like

func myfunc()
msgbox(0,"","do something cool")
endfunc

myfunc2() = myfunc()

call("myfunc2")

for example

C0d3 is P0etry( ͡° ͜ʖ ͡°)

Posted

#include <Constants.au3>

Func Example()
    MsgBox($MB_SYSTEMMODAL, '', 'Example')
EndFunc   ;==>Example

Func SomeFunc()
    Return Example()
EndFunc   ;==>SomeFunc

Call('SomeFunc')

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

I knew there had to be a way (not sure why I didnt think about that... Water, how about just that one little addition to AD, this way, AD.au3 can completely replace ADFunctions

C0d3 is P0etry( ͡° ͜ʖ ͡°)

Posted (edited)

Call has its uses, this wouldn't be one of them. What's wrong with going through your code and using 'search & replace'?

Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

  On 1/23/2013 at 4:30 PM, 'Kovacic said:

I knew there had to be a way (not sure why I didnt think about that... Water, how about just that one little addition to AD, this way, AD.au3 can completely replace ADFunctions

Because the design of this two UDFs is completely different. adfunctions.au3 connects to Active Directory as soon as the script is started. With AD.au3 you need to call _AD_Open and _AD_Close to connect/disconnect to/from AD.

So it's more than just name changes.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

  On 1/23/2013 at 4:57 PM, 'water said:

Because the design of this two UDFs is completely different. adfunctions.au3 connects to Active Directory as soon as the script is started. With AD.au3 you need to call _AD_Open and _AD_Close to connect/disconnect to/from AD.

So it's more than just name changes.

Ahhhhh.. ok... I got you now... I will replace the script then... I am going to pull ADFunk too because I found some other inconsistencies.

C0d3 is P0etry( ͡° ͜ʖ ͡°)

Posted (edited)

  On 1/23/2013 at 4:57 PM, 'water said:

Because the design of this two UDFs is completely different. adfunctions.au3 connects to Active Directory as soon as the script is started. With AD.au3 you need to call _AD_Open and _AD_Close to connect/disconnect to/from AD.

So it's more than just name changes.

Ok, in light of that, I removed ADFunk (although I did like the name) from the forum.

Edited by Kovacic

C0d3 is P0etry( ͡° ͜ʖ ͡°)

  • Moderators
Posted

Kovacic,

In which case, I am sure you will not mind..... ;)

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:

  Reveal hidden contents

 

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...