iverson_est Posted April 4, 2006 Share Posted April 4, 2006 my code #include <IE.au3> $Account = IniRead("C:\Documents and Settings\Taivo\Desktop\Taivo\Au3 scripts\rate uus\settings.ini", "Settings", "Kasutaja", "NotFound") $Password = IniRead("C:\Documents and Settings\Taivo\Desktop\Taivo\Au3 scripts\rate uus\settings.ini", "Settings", "Parool", "NotFound") $o_IE = _IECreate () _IENavigate($o_IE, "http://www.rate.ee/show.php") WinWaitActive("Rate.ee :: Hääletamine - Microsoft Internet Explorer") Sleep(5000) Send("+{TAB " & $Account & "}") Send("{TAB}") Send("+{TAB " & $Password & "}") what have i done wrong. It doesen't type anything, tho it should obviously, ini read is correct, checked it manually and with an aother script. Could it be with the var send? I copied it off the help file... Imo everything should be correct. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 4, 2006 Moderators Share Posted April 4, 2006 (edited) Looks like it's not reading your WinWaitActive title... I've done nothing with IE.au3 unfortunately, but from what I've read and what I remember, doesn't _IENavigate() wait till the page is loaded anyway? Edit: Oh, and It doesn't look like you actually created an Object. Edited April 4, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Developers Jos Posted April 4, 2006 Developers Share Posted April 4, 2006 (edited) Send("+{TAB}" & $Account ) Send("{TAB}") Send("+{TAB}" & $Password) Edited April 4, 2006 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 4, 2006 Moderators Share Posted April 4, 2006 Ha... I didn't even get to Send(), I always over look them! Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
iverson_est Posted April 4, 2006 Author Share Posted April 4, 2006 (edited) it is still the same i just don't understand. It goes to page, idles the sleep and the tabs me one back!? like wtf? You can try it your self, very strange. #include <IE.au3> $Account = IniRead("your pathi", "Settings", "Kasutaja", "NotFound") $Password = IniRead("your path", "Settings", "Parool", "NotFound") $o_IE = _IECreate () _IENavigate($o_IE, "http://www.rate.ee/show.php") Sleep(5000) Send("+{TAB}" & $Account) Send("{TAB}") Send("+{TAB}" & $Password) and the ini [Settings] Kasutaja = test Parool = test it has got to do something with the variable send. I put the flag to 1, it sends the text but not the var ofc cause the flag is 1. So i tried manually and shift tab is back tab which it is excactly doing in my case... But it should just type the variable. Any help please? Edited April 4, 2006 by iverson_est Link to comment Share on other sites More sharing options...
Developers Jos Posted April 4, 2006 Developers Share Posted April 4, 2006 (edited) and the tabs me one back!? like wtf? You can try it your self, very strange.Send("+{TAB}")What does Shift Tab normally do different ?The + stands for Shift so if you want to TAB forward then loose the + Edited April 4, 2006 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
iverson_est Posted April 4, 2006 Author Share Posted April 4, 2006 (edited) i know i know this but the help file said: If you with to use a variable for the count, try $n = 4 Send("+{TAB " & $n & "}") so i replaced the $n with my variable, it should in theory type the var there but it is typing i back tab instead. Or how could i get it to type the variable? edit: Lol, i got it wrong or what, just tried with simple $variables, not like the help said and it worked. Like whatever, anyway, i got working, big thanks to ever1 who cared Edited April 4, 2006 by iverson_est Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 4, 2006 Moderators Share Posted April 4, 2006 That's not what he is saying your doing wrong... $n has is not "+"... #include <IE.au3> $Account = IniRead("your pathi", "Settings", "Kasutaja", "NotFound") $Password = IniRead("your path", "Settings", "Parool", "NotFound") $o_IE = _IECreate () _IENavigate($o_IE, "http://www.rate.ee/show.php") Sleep(5000) Send("{TAB}" & $Account) Send("{TAB}") Send("{TAB}" & $Password) Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Developers Jos Posted April 4, 2006 Developers Share Posted April 4, 2006 i know i know this but the help file said: If you with to use a variable for the count, try $n = 4 Send("+{TAB " & $n & "}")so i replaced the $n with my variable, it should in theory type the var there but it is typing i back tab instead. Or how could i get it to type the variable?The 4 in the example means 4 TABS .... so if you need 4 tabs to get to a input field and then type "TEST" you do:Send("{TAB 4}TEST") SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
iverson_est Posted April 4, 2006 Author Share Posted April 4, 2006 omg now i see If you with to use a variable for the count, try... usual narrow minded me 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