lionfaggot Posted February 16, 2011 Share Posted February 16, 2011 sort of like, i put autoit code in a txt file, can a compiled autoit exe execute the code? and also, how would i go about this in a secure manner, it creates possible code injection vulnerabilities Link to comment Share on other sites More sharing options...
Gideon Posted February 16, 2011 Share Posted February 16, 2011 You will need the compiler or write your own compiler. You can make your own script with autoitscript. So yes, it's possible. Many times you need to think like hobby-bob:') Link to comment Share on other sites More sharing options...
lionfaggot Posted February 16, 2011 Author Share Posted February 16, 2011 not what i meant, i saw another post on here some time ago asking a similar question and it got answered. at the time i didnt care but now i wanna do something with it and cant find the post LOL Link to comment Share on other sites More sharing options...
Gideon Posted February 16, 2011 Share Posted February 16, 2011 What you mean then? You want to make a kind of macro's, instead of compile it to .exe? So in example you make a text file called "code.txt". In "code.txt" is written "msg: hello world". And you want to make a msgbox with "hello world" from your compiled script. Many times you need to think like hobby-bob:') Link to comment Share on other sites More sharing options...
lionfaggot Posted February 16, 2011 Author Share Posted February 16, 2011 no, i want to have a compiled exe read from a file msgbox(0,"poop","poop") and execute the code Link to comment Share on other sites More sharing options...
Gideon Posted February 16, 2011 Share Posted February 16, 2011 (edited) So you will have something like this: #include <file.au3> Dim $aRecords If Not _FileReadToArray("C:\code.txt",$aRecords) Then MsgBox(4096,"Error", " Error reading log to Array error:" & @error) Exit EndIf For $x = 1 to $aRecords[0] If StringRegExp($aRecords[$x],'(?i)MsgBox') Then MsgBox(0,"test","regexp true") EndIf Next Edited February 16, 2011 by Gideon Many times you need to think like hobby-bob:') Link to comment Share on other sites More sharing options...
ChrisL Posted February 16, 2011 Share Posted February 16, 2011 Do you mean this? Run("anyCompiledAutoitExe.exe /AutoIt3ExecuteScript C:\MyAutoitScriptInATextFile.txt" ) [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
Gideon Posted February 16, 2011 Share Posted February 16, 2011 Do you mean this? Run("anyCompiledAutoitExe.exe /AutoIt3ExecuteScript C:\MyAutoitScriptInATextFile.txt" ) That's a lot better:) I'm trying to help, but not know everything, Sorry Many times you need to think like hobby-bob:') Link to comment Share on other sites More sharing options...
lionfaggot Posted February 16, 2011 Author Share Posted February 16, 2011 thanks, youre awesome Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now