spiderkayak Posted January 12, 2009 Share Posted January 12, 2009 I need to send a url bariables the $ user, $ pwd, $ msg, etc.. #include <IE.au3> $user = "aaaa" $pwd = "bbbb" $msg = "test" $idclie = "xxxx" $idcuen = "yyyy" $rmt = "autoit" $destino = "5698xxxxxx" Sleep(5000) _IENavigate ( "http://chile.sitmobile.com:8765/MT_ClienteExterno.aspx?Text="&"&Destinations="$destino&"&Login="$user&"&Login="$pwd&"&IdClient="$idclie&"&IdCuenta="$idcuen&"&Remitente="$rmt) could help me please Link to comment Share on other sites More sharing options...
Pain Posted January 12, 2009 Share Posted January 12, 2009 Try with "www" & ".google." & "com" As you can see you need & on both sides, you are only using one. Link to comment Share on other sites More sharing options...
spiderkayak Posted January 12, 2009 Author Share Posted January 12, 2009 Try with "www" & ".google." & "com"As you can see you need & on both sides, you are only using one. errors and still can not run.the errors:D:\Trabajo\SitMobile\Autoit\sit2.au3(19,93) : ERROR: syntax error_IENavigate ( "http://chile.sitmobile.com:8765/MT_ClienteExterno.aspx?Text="&"Destinations="$destino~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^D:\Trabajo\SitMobile\Autoit\sit2.au3(19,184) : ERROR: _IENavigate() called with wrong number of args._IENavigate ( "http://chile.sitmobile.com:8765/MT_ClienteExterno.aspx?Text="&"Destinations="$destino&"Login="$user&"Login="$pwd&"IdClient="$idclie&"&IdCuenta="$idcuen&"Remitente="$rmt)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^C:\Program Files\AutoIt3\Include\IE.au3(303,55) : REF: definition of _IENavigate().Func _IENavigate(ByRef $o_object, $s_Url, $f_wait = 1)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^D:\Trabajo\SitMobile\Autoit\sit2.au3 - 2 error(s), 0 warning(s)!>15:33:11 AU3Check ended.rc:2 Link to comment Share on other sites More sharing options...
Valuater Posted January 12, 2009 Share Posted January 12, 2009 "Destinations="$destinoshould be"Destinations=" & $destinocant see it all8) Link to comment Share on other sites More sharing options...
spiderkayak Posted January 12, 2009 Author Share Posted January 12, 2009 "Destinations="$destinoshould be"Destinations=" & $destinocant see it all8)gracias, arregle la sintaxis, pero aparece un nuevo error, wrong number of argsD:\Trabajo\SitMobile\Autoit\sit2.au3(19,190) : ERROR: _IENavigate() called with wrong number of args._IENavigate ( "http://chile.sitmobile.com:8765/MT_ClienteExterno.aspx?Text="&"Destinations="&$destino&"Login="&$user&"Login="&$pwd&"IdClient="&$idclie&"&IdCuenta="&$idcuen&"Remitente="&$rmt)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^C:\Program Files\AutoIt3\Include\IE.au3(303,55) : REF: definition of _IENavigate().Func _IENavigate(ByRef $o_object, $s_Url, $f_wait = 1)Victor Link to comment Share on other sites More sharing options...
Pain Posted January 12, 2009 Share Posted January 12, 2009 (edited) You are still not doing as I told you. _IENavigate($oIE, "http://chile.sitmobile.com:8765/MT_ClienteExterno.aspx?Text="&"&Destinations="&$destino&"&Login="&$user&"&Login="&$pwd&"&IdClient="&$idclie&"&IdCuenta="&$idcuen&"&Remitente="&$rmt) I don't know if it should be: Text="&"&Destinations If that is correct you can use: Text=&Destinations Because I can't see any variable for Text. Edited January 12, 2009 by Pain Link to comment Share on other sites More sharing options...
spiderkayak Posted January 13, 2009 Author Share Posted January 13, 2009 You are still not doing as I told you. _IENavigate($oIE, "http://chile.sitmobile.com:8765/MT_ClienteExterno.aspx?Text="&"&Destinations="&$destino&"&Login="&$user&"&Login="&$pwd&"&IdClient="&$idclie&"&IdCuenta="&$idcuen&"&Remitente="&$rmt) I don't know if it should be: Text="&"&Destinations If that is correct you can use: Text=&Destinations Because I can't see any variable for Text. Thanks !!! The final code is: $oIE = _IECreate ("http://chile.sitmobile.com",0,1,1) Sleep(5000) _IENavigate($oIE,"http://chile.sitmobile.com:8765/MT_ClienteExterno.aspx?Text="&$text&"&Destinations="&$destino&"&Login="&$user&"&Password="&$pwd&"&IdClient="&$idclie&"&IdCuenta="&$idcuen&"&Remitente="&$rmt) --------------------------------------------------------------------------------------------------------------- to send this information in the url, if any property returns a code on the Internet Explorer window, I would like to save as log. As you can save this code in IE that returns a Log? thanks Victor Link to comment Share on other sites More sharing options...
TheTex Posted January 13, 2009 Share Posted January 13, 2009 Check out _IePropertyget() Link to comment Share on other sites More sharing options...
spiderkayak Posted January 13, 2009 Author Share Posted January 13, 2009 I think what I'm doing is not right, try and not work for me out _IePropertyget(), $oIE = _IECreate ("http://chile.sitmobile.com",0,1,1) Sleep(5000) $out = _IENavigate($oIE,"http://chile.sitmobile.com:8765/MT_ClienteExterno.aspx?Text="&$txtt&"&Destinations="&$destino&"&Login="&$user&"&Password="&$pwd&"&IdClient="&$idclie&"&IdCuenta="&$idcuen&"&Remitente="&$rmtee) Sleep(5000) MsgBox(0, "out log", $out) I could help!!! Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 13, 2009 Share Posted January 13, 2009 I think what I'm doing is not right, try and not work for me out _IePropertyget(), $oIE = _IECreate ("http://chile.sitmobile.com",0,1,1) Sleep(5000) $out = _IENavigate($oIE,"http://chile.sitmobile.com:8765/MT_ClienteExterno.aspx?Text="&$txtt&"&Destinations="&$destino&"&Login="&$user&"&Password="&$pwd&"&IdClient="&$idclie&"&IdCuenta="&$idcuen&"&Remitente="&$rmtee) Sleep(5000) MsgBox(0, "out log", $out) I could help!!! Your $out is only going to be -1 or 0 to indicate if _IENavigate() succeeded. Where are you using _IEPropertyGet()? And what property are you looking for? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
spiderkayak Posted January 13, 2009 Author Share Posted January 13, 2009 Your $out is only going to be -1 or 0 to indicate if _IENavigate() succeeded. Where are you using _IEPropertyGet()? And what property are you looking for? when I run the line: _IENavigate($oIE,"http://chile.sitmobile.com:8765/MT_ClienteExterno.aspx?Text="&$txtt&"&Destinations="&$destino&"&Login="&$user&"&Password="&$pwd&"&IdClient="&$idclie&"&IdCuenta="&$idcuen&"&Remitente="&$rmtee) the response to this line is a code in an Internet Explorer window, code that needs to extract and store it in a log. I would suggest doing so !!! thanks Victor Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 13, 2009 Share Posted January 13, 2009 when I run the line: _IENavigate($oIE,"http://chile.sitmobile.com:8765/MT_ClienteExterno.aspx?Text="&$txtt&"&Destinations="&$destino&"&Login="&$user&"&Password="&$pwd&"&IdClient="&$idclie&"&IdCuenta="&$idcuen&"&Remitente="&$rmtee) the response to this line is a code in an Internet Explorer window, code that needs to extract and store it in a log. I would suggest doing so !!! thanks Victor Have you examined it with a DOM inspector like DebugBar? You might get the body with _IEBodyReadText(), or just what you want with _IEPropertyGet() using "innertext". Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
spiderkayak Posted January 15, 2009 Author Share Posted January 15, 2009 Have you examined it with a DOM inspector like DebugBar? You might get the body with _IEBodyReadText(), or just what you want with _IEPropertyGet() using "innertext". I could show an example, using these sentencesthanksVictor 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