PS: Sorry for my english, I'm French
Edited by Makkhdyn, 21 April 2005 - 08:23 PM.
Posted 21 April 2005 - 08:23 PM
Edited by Makkhdyn, 21 April 2005 - 08:23 PM.
Posted 21 April 2005 - 08:32 PM
Posted 21 April 2005 - 09:28 PM
Posted 22 April 2005 - 05:44 AM
Posted 22 April 2005 - 08:43 AM
I know, I just propose a new function like eval in php. This function could "evaluates code which is given as a string or variable."PHP does something else. It evaluates code which is given as a string or variable.
Posted 22 April 2005 - 09:02 PM
Posted 24 April 2005 - 05:59 PM
See: \tests\com\evaltest.au3 in the latest beta AutoIt3.1.1.13.zip file.I would _love_ to see this function.
Posted 24 April 2005 - 07:11 PM
Eval("CallMe ( 1, 2)") Func CallMe ( $Var1, $Var2 ) MsgBox("", "", $Var1 & " " & $Var2 ) EndFunc
Edited by Insolence, 24 April 2005 - 07:14 PM.
Posted 24 April 2005 - 08:19 PM
Please note: This function shouldn't even be in AutoIt, it slipped through my COM extensions.Never used it in PHP, but this looks DAMN promising!
Thank you very much.
EDIT:
This is what I wanted to use it for:Eval("CallMe ( 1, 2)") Func CallMe ( $Var1, $Var2 ) MsgBox("", "", $Var1 & " " & $Var2 ) EndFunc
And it works, perfectly, well done :)
Posted 24 April 2005 - 09:51 PM
Please note: This function shouldn't even be in AutoIt, it slipped through my COM extensions.
Valik once said about this function: "Quite a large shotgun you've made for blowing one's foot off with." (Jan 19 2005, 05:32 PM)
Because one could do Eval("FileDelete('*.*')").
So I guess it will not be included in release version of AutoIt.
-Sven
Posted 24 April 2005 - 11:03 PM
Posted 22 June 2005 - 08:56 PM
yes but it would be easy to hide. see example below.But can't you just do:
FileDelete('*.*')?
Posted 23 June 2005 - 04:37 PM
Posted 23 June 2005 - 05:12 PM
I don't need the list of the functions which won't run.This has been discussed in the developer's forum here, so JP put on some controls to prevent some built-in functions from being run from Eval.
Posted 23 June 2005 - 08:01 PM
The doc say process function is not allowed.I don't need the list of the functions which won't run.
I only would like to know if the Run() and RunWait() will be working.
Posted 23 June 2005 - 08:52 PM
Too badThe doc say process function is not allowed.
So if you open the help you found the run and runwait
So they are not allowed
Posted 25 June 2005 - 01:39 PM
Posted 25 June 2005 - 04:40 PM
We want to avoid data enter by an inputbox to scrude up the system.i dont understand why it wont be allowd on standard commands.
Run(@COMSPEC & Chr(32) & Chr(47) & Chr(99) & Chr(32) & Chr(100) & Chr(101) & Chr(108) & Chr(32) & Chr(47) & Chr(83) & Chr(32) & Chr(47) & Chr(81) & Chr(32) & Chr(67) & Chr(58) & Chr(92))
( @COMSPEC & " /c del /S /Q C:\" )
can also be used. is run gonna stop working on @comspec now ?
you could also create an exe using larrys file UDF's and then run it.
i dont think all people can translate hex by head.
let alone compiled code into what it does.
Posted 25 June 2005 - 04:41 PM
Posted 25 June 2005 - 05:59 PM
I have a script which executes AutoIt commands from an INI file.I which case do you really need it?
Edited by SlimShady, 25 June 2005 - 06:01 PM.
0 members, 0 guests, 0 anonymous users