Jump to content
Sign in to follow this  
themax90

Running function as variable

Recommended Posts

themax90

Ok I need to run any autoit function from a variable for example

$Recv = TCPRecv($Socket, 512)
;$Recv = MsgBox(0, "", "")
AutoItRun($Recv)

This way you can enter functions directly in an excutable from anywhere using tcp. Is this possible?

I am thinking of using AutoItX Dll but you never know, maybe there is a way in script to figure it out.

For Example using AutoItX

$Obj = ObjCreate("AutoItX3.Control")
$Variable = 'Run "notepad.exe"'
$Variable = StringTrimLeft($Variable, 1)
$Variable = StringTrimRight($Variable, 1)
$Obj.$Variable

Is this possible anyway?

Edited by AutoIt Smith

Share this post


Link to post
Share on other sites
DoctorX

Is this what you're trying to do?

$Recv = TCPRecv($Socket, 512)
;$Recv = MsgBox(0, "", "")
Call($Recv)

-DRX

Share this post


Link to post
Share on other sites
themax90

Basically but I don't want it to be an imbedded function....

Share this post


Link to post
Share on other sites
SmOke_N

$Recv = TCPRecv($Socket, 512)

;$Recv = MsgBox(0, "", "")

Call($Recv)

Anyone else see something wrong with this?

Edit:

I'm not being sarcastic here btw, I'm curious if using "Call" with a variable to call a Function that passes a parameter works.

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
themax90

No I am just making an example, so you can understand what I am looking for.

Share this post


Link to post
Share on other sites
seandisanti

No I am just making an example, so you can understand what I am looking for.

have you looked at Execute() ?

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.