Jump to content

Please What Have I Missed?


Recommended Posts

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

  • Moderators

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

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

  • Developers

Send("+{TAB}" & $Account ) 
Send("{TAB}") 
Send("+{TAB}" & $Password)

Edited 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

  • Moderators

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

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
Link to comment
Share on other sites

  • Developers

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

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

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
Link to comment
Share on other sites

  • Moderators

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

  • Developers

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...