Sign in to follow this  
Followers 0
zelaznogsirc

Help a beginner...

6 posts in this topic

Can you guys tell me how to get the variable to tell the Send function how many times?

I got this so far.....

CODE
$times = InputBox( "SRBOT", "How Many Times?" )

Send( "{BROWSER_REFRESH}" )

Should I do This?

CODE
$times = InputBox( "SRBOT", "How Many Times?" )

Send( "{BROWSER_REFRESH $times}" )

Share this post


Link to post
Share on other sites



Can you guys tell me how to get the variable to tell the Send function how many times?

I got this so far.....

$times = InputBox(  "SRBOT", "How Many Times?" )
Send( "{BROWSER_REFRESH}" )

Should I do This?

$times = InputBox(  "SRBOT", "How Many Times?" )
Send( "{BROWSER_REFRESH $times}" )
Try this way:
Send( "{BROWSER_REFRESH " & $times & "}" )

As described in the help file under Send()...

;)


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

Share this post


Link to post
Share on other sites

thanks so much i think its working

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

wait sorry nevermind

i think its refreshing to fast so it doesnt get all of the refreshes is there a way to make it wait like a second between each refresh

I know thers sleep but how would i use it in this situation?

and to stop it could i do

HotKeySet("{END}", "sts")
$times = InputBox(  "SRBOT", "How Many Times?" )
Send( "{BROWSER_REFRESH " & $times & "}" )
Func sts()
    HotKeySet("{END}")
    Send("{END}")
    HotKeySet("{END}", "sts")
EndFunc
Edited by zelaznogsirc

Share this post


Link to post
Share on other sites

wait sorry nevermind

i think its refreshing to fast so it doesnt get all of the refreshes is there a way to make it wait like a second between each refresh

I know thers sleep but how would i use it in this situation?

and to stop it could i do

HotKeySet("{END}", "sts")
$times = InputBox(  "SRBOT", "How Many Times?" )
Send( "{BROWSER_REFRESH " & $times & "}" )
Func sts()
    HotKeySet("{END}")
    Send("{END}")
    HotKeySet("{END}", "sts")
EndFunc
If it's IE you are using, then you would be much better off with _IEAction($oIE, "refresh") followed by _IELoadWait($oIE).

For other browsers you would just have to do it in a loop with sleep:

For $n = 1 To $times
      Send("{BROWSER_REFRESH}")
      Sleep(5000)
Next

;)


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

Share this post


Link to post
Share on other sites

Thanks PsaltyDS....

The Loop script just what i needed...

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