Sign in to follow this  
Followers 0
iverson_est

Please What Have I Missed?

10 posts in this topic

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. :)

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by SmOke_N

[center]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.[/center]

Share this post


Link to post
Share on other sites

Ha... I didn't even get to Send(), I always over look them!


[center]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.[/center]

Share this post


Link to post
Share on other sites

#5 ·  Posted (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? :mellow:

Edited by iverson_est

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#7 ·  Posted (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 by iverson_est

Share this post


Link to post
Share on other sites

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)


[center]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.[/center]

Share this post


Link to post
Share on other sites

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")


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

omg now i see :)

If you with to use a variable for the count, try...

usual narrow minded me :mellow:

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0