sksguy Posted November 30, 2005 Share Posted November 30, 2005 For whatever reason I cant seem to get my script to send a variable using the SEND command $count = 1 Send ("$count") $count = $count+1 yadda yadda Could someone help me with why it types the actual characters ($count) instead of the variable 1 Link to comment Share on other sites More sharing options...
Valuater Posted November 30, 2005 Share Posted November 30, 2005 (edited) send($count) its a variable... thus no quotes For $x = 1 to 10 $count = 1 Send ($count) $count = $count+1 Sleep(100); slow it down a little Next 8) Edited November 30, 2005 by Valuater Link to comment Share on other sites More sharing options...
sksguy Posted November 30, 2005 Author Share Posted November 30, 2005 Worked......thank you One more question. How do I pause a script until a webpage is fully loaded? I tried WinWaitActive to pause it but it only pauses until the window is physically there, not until the content is finished loading. I used a sleep command for now, but it not efficient at all this way. Thanks in advance... This is my first steps into this exciting world and Im loving it already Cheers all Link to comment Share on other sites More sharing options...
Valuater Posted November 30, 2005 Share Posted November 30, 2005 yea... i ued winwaitactive... then a sleep also 8) Link to comment Share on other sites More sharing options...
Skuller74 Posted December 1, 2005 Share Posted December 1, 2005 send($count) its a variable... thus no quotes For $x = 1 to 10 $count = 1 Send ($count) $count = $count+1 Sleep(100); slow it down a little Next just sayin... doing the $count = $count+1 doesnt do anything you need to make $count = 1 BEFORE the For statement... like $count = 1 For $x = 1 to 10 Send ($count) $count = $count+1 Sleep(100); slow it down a little Next if you didnt already know that Link to comment Share on other sites More sharing options...
LxP Posted December 1, 2005 Share Posted December 1, 2005 Welcome to the forums! One more question. How do I pause a script until a webpage is fully loaded?The browser probably displays something along the lines of 'Done' when the page has finished loading. Perhaps something like this will do the trick: WinWait('Title of web page', 'Done') When you want to get more advanced, Dale's IE automation UDF library will help you achieve this more seamlessly. Link to comment Share on other sites More sharing options...
sksguy Posted December 2, 2005 Author Share Posted December 2, 2005 Thanks everyone. Dales little gem has helped me figure out the problem perfectly. Link to comment Share on other sites More sharing options...
poisonkiller Posted December 2, 2005 Share Posted December 2, 2005 But if you want wait loading page in FireFox, then im using PixelGetColor(). Im getting color from "Stop" button in my browser, and while "Stop" button is red, my script sleeps... I hope you understand my text, because my english is very bad 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