Medic873 Posted September 1, 2016 Share Posted September 1, 2016 So I have a question I have never needed to cross this bridge but it finally came up at work today. I need to execute some code that is going be inputed from a inputbox. For example [script] msgbox("Hello", "Hello"); $code = inputbox("hello", "hello"); ;Then right here it would take the variable $code and run its code that was just entered through the input box. Does tamake sense. [/script] Link to comment Share on other sites More sharing options...
JohnOne Posted September 1, 2016 Share Posted September 1, 2016 Execute($code) AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Medic873 Posted September 1, 2016 Author Share Posted September 1, 2016 Wow never saw that command in the help file. Thanks so much Link to comment Share on other sites More sharing options...
Gianni Posted September 1, 2016 Share Posted September 1, 2016 Here also another way: Local $sCommand = InputBox("Execute by '/AutoIt3ExecuteLine'", "Enter one line of AutoIt code", 'MsgBox(0, "hello", "hello")') $sCommand = '"' & StringReplace($sCommand, '"', '""') & '"' Run(@AutoItExe & ' /AutoIt3ExecuteLine ' & $sCommand) Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... 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