Jump to content

Recommended Posts

Posted

Where I was mistaken?

The program #1- good work,

and #2-not work.

;#program 1

AutoItSetOption ("WintitleMachMode",1)

WinActivate("The page","")

Send("{BROWSER_REFRESH}")

;#program 2

AutoItSetOption("WinTitleMatchMode", 1)

$handle =WinGetHandle("The page", "")

ControlSend("","",$handle,"{BROWSER_REFRESH}")

Posted

When you use the $handle it has to be the first parameter

ControlSend($handle,"","","{BROWSER_REFRESH}")

not sure if the third parameter can be empty.

Posted (edited)

Thanks for the help, but it does not help - in the program №2 window with Internet Explorer is not refreshed.

;#program 2

AutoItSetOption("WinTitleMatchMode", 1)

$handle =WinGetHandle("The page", "")

ControlSend($handle,"","","{BROWSER_REFRESH}")

How to send the command " {BROWSER_REFRESH} " not active at present to a window, not making active him if his name and the text change during job.

Edited by zxc3
Posted (edited)

does this work?

$handle = WinGetHandle( "The page")
ControlSend( $handle, "", "Internet Explorer_Server1", "{F5}")
Edited by UP NORTH
Posted

does this work?

$handle = WinGetHandle( "The page")
ControlSend( $handle, "", "Internet Explorer_Server1", "{F5}")

<{POST_SNAPBACK}>

Many thanks is works, but I have not found in AutoIt Help file the description of the used command. Where to find it is more than information?

ControlSend ( "title", "text", controlID, "string" [, flag] )

Parameters

title The title of the window to access.

text The text of the window to access.

controlID The control to interact with. See Controls.

string String of characters to send to the control.

flag [optional] Changes how "keys" is processed:

flag = 0 (default), Text contains special characters like + to indicate SHIFT and {LEFT} to indicate left arrow.

flag = 1, keys are sent raw.

Posted

Many thanks is works, but I have not found in AutoIt Help file the description of the used command. Where to find it is more than information?

ControlSend ( "title", "text", controlID, "string" [, flag] )

Parameters

title The title of the window to access.

text The text of the window to access.

controlID The control to interact with. See Controls.

string String of characters to send to the control.

flag [optional] Changes how "keys" is processed:

  flag = 0 (default), Text contains special characters like + to indicate SHIFT and {LEFT} to indicate left arrow.

  flag = 1, keys are sent raw.

<{POST_SNAPBACK}>

did you click on ?

controlID The control to interact with. See Controls.

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
×
×
  • Create New...