brucejohn22 Posted September 25, 2008 Share Posted September 25, 2008 Please help here is my code: #include <IE.au3> $oIE = _IEAttach ("site name") $oForm = _IEGetObjById ($oIE, "MainForm") $oRCDEmail = _IEGetObjById ($oForm, "RCD_cboEmail") ;customer email MsgBox( 0, "Form Element Value", _IEFormElementGetValue ($oRCDEmail)) Here is what I get: 10000|sample.email@email.com|10 10000 = the number email I am in the data base sample.email@email.com = actual email address 10 = the type of email I think the problem lies more with the site because it has hidden data that appears with this email address I would like to know if there is a way to pull the email address with out the other data. Is there any way to do this please if you can point me in the right direction or give me an example I would greatly appreciate it. Link to comment Share on other sites More sharing options...
Szhlopp Posted September 25, 2008 Share Posted September 25, 2008 Please help here is my code: #include <IE.au3>$oIE = _IEAttach ("site name")$oForm = _IEGetObjById ($oIE, "MainForm")$oRCDEmail = _IEGetObjById ($oForm, "RCD_cboEmail") ;customer emailMsgBox( 0, "Form Element Value", _IEFormElementGetValue ($oRCDEmail))Here is what I get: 10000|sample.email@email.com|1010000 = the number email I am in the data basesample.email@email.com = actual email address10 = the type of emailI think the problem lies more with the site because it has hidden data that appears with this email address I would like to know if there is a way to pull the email address with out the other data. Is there any way to do this please if you can point me in the right direction or give me an example I would greatly appreciate it.StringSplit with the delimiter "|" is the easiest. Also you could do StringRegularExpressions, but that's alot harder... RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+' Link to comment Share on other sites More sharing options...
brucejohn22 Posted September 25, 2008 Author Share Posted September 25, 2008 StringSplit with the delimiter "|" is the easiest. Also you could do StringRegularExpressions, but that's alot harder...Should it look something like this? Or am I way off base: $oEmailSend = _StringSplit ($oRCDEmail, "|") Link to comment Share on other sites More sharing options...
Richard Robertson Posted September 25, 2008 Share Posted September 25, 2008 StringSplit is a built in function. No underscore. You were calling it correctly otherwise. $oEmailSend will equal the array [3, "10000", "sample.email@email.com", "10"] in your example here. Link to comment Share on other sites More sharing options...
brucejohn22 Posted September 26, 2008 Author Share Posted September 26, 2008 StringSplit is a built in function. No underscore. You were calling it correctly otherwise. $oEmailSend will equal the array [3, "10000", "sample.email@email.com", "10"] in your example here. Thank you for the help so far but I know I am not doing something right or maybe I just don't have the right grasp on this. I am so confused. Any one have any examples they could point me to? #include <IE.au3> $oIE = _IEAttach ("site name") $oForm = _IEGetObjById ($oIE, "MainForm") $oRCDEmail = _IEGetObjById ($oForm, "RCD_cboEmail") ;customer email $oSplitEmail = StringSplit ($oRCDEmail, "|") MsgBox( 0, "Form Element Value", _IEFormElementGetValue ($oSplitEmail) Link to comment Share on other sites More sharing options...
Pain Posted September 26, 2008 Share Posted September 26, 2008 StringSplit returns an array so to get the elements you would have to use oSplitEmail[0] etc. Link to comment Share on other sites More sharing options...
Richard Robertson Posted September 26, 2008 Share Posted September 26, 2008 $oRCDEmail = _IEGetObjById ($oForm, "RCD_cboEmail") ;customer email$oSplitEmail = StringSplit ($oRCDEmail, "|")This won't work. You can't call a string function on an object like that. You need to get the value from the object, then perform a string split on that. 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