Jump to content

Help a beginner...


Recommended Posts

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

Link to comment
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
Link to comment
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
Edited by zelaznogsirc
Link to comment
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
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...