Jump to content

Where I was mistaken?


Recommended Posts

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

Link to comment
Share on other sites

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

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.

Link to comment
Share on other sites

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.

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...