7121 Posted November 8, 2008 Posted November 8, 2008 I'm actually learning a lot using AutoIt. I went from GOTO to using DO..UNTIL, and WHILE..WEND liek it was nothing. Now i got more of a noob question lol.How do i covert a sting to expression?I used this, but it returns it as a zero so yeah...MouseClickDrag("left", 276, 392, 542, 392, 0) Send ( "^c" ) $StringA = ClipGet() $StringB = StringRegExpReplace ( $StringA, "=", "" ) MsgBox (0, "Answer:", $StringB )CLIPBOARD: 11 x 11 (simple multiplication so yeah)
BrettF Posted November 8, 2008 Posted November 8, 2008 Well I have no idea what you mean, because your code doesn't match your post... :| Please post a detail description of what you want and a sample of input, and then a sample of output you wish to have. Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
zerobazar Posted November 8, 2008 Posted November 8, 2008 Have a loot at function "execute" in the help file. Best Regards.
system24 Posted November 8, 2008 Posted November 8, 2008 I'm actually learning a lot using AutoIt. I went from GOTO to using DO..UNTIL, and WHILE..WEND liek it was nothing. Now i got more of a noob question lol. How do i covert a sting to expression? I used this, but it returns it as a zero so yeah... MouseClickDrag("left", 276, 392, 542, 392, 0) Send ( "^c" ) $StringA = ClipGet() $StringB = StringRegExpReplace ( $StringA, "=", "" ) MsgBox (0, "Answer:", $StringB ) CLIPBOARD: 11 x 11 (simple multiplication so yeah)It can't execute the string properly because you use the wrong operators for multiplication. It's supposed to be "*" not "x". MouseClickDrag("left", 276, 392, 542, 392, 0) Send ( "^c" ) $StringA = ClipGet() $StringB = StringRegExpReplace ( $StringA, "=", "" ) $StringB = StringRegExpReplace ( $StringB, "x", "*" ) MsgBox (0, "Answer:", Execute($StringB) ) [center]It's a question of mind over matter, if I don't mind, it doesn't matter.[/center]
7121 Posted November 8, 2008 Author Posted November 8, 2008 (edited) It can't execute the string properly because you use the wrong operators for multiplication. It's supposed to be "*" not "x". MouseClickDrag("left", 276, 392, 542, 392, 0) Send ( "^c" ) $StringA = ClipGet() $StringB = StringRegExpReplace ( $StringA, "=", "" ) $StringB = StringRegExpReplace ( $StringB, "x", "*" ) MsgBox (0, "Answer:", Execute($StringB) ) OMG, thanks ^__^, let see if dis works BTW. SYSTEM 24, for your signature, and icon, what font did u use for the 24? Edited November 8, 2008 by 7121
system24 Posted November 9, 2008 Posted November 9, 2008 SF Square Head. [center]It's a question of mind over matter, if I don't mind, it doesn't matter.[/center]
7121 Posted November 12, 2008 Author Posted November 12, 2008 (edited) SF Square Head.sorry bout for the late replay, thanks I was also wondering, do you if AutoIt could attach to processes to edit its memory? Edited November 12, 2008 by 7121
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