zxc3 0 Posted May 31, 2005 Where I was mistaken?The program #1- good work,and #2-not work.;#program 1AutoItSetOption ("WintitleMachMode",1)WinActivate("The page","")Send("{BROWSER_REFRESH}");#program 2AutoItSetOption("WinTitleMatchMode", 1)$handle =WinGetHandle("The page", "")ControlSend("","",$handle,"{BROWSER_REFRESH}") Share this post Link to post Share on other sites
jpm 93 Posted May 31, 2005 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. Share this post Link to post Share on other sites
zxc3 0 Posted May 31, 2005 (edited) Thanks for the help, but it does not help - in the program №2 window with Internet Explorer is not refreshed.;#program 2AutoItSetOption("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 May 31, 2005 by zxc3 Share this post Link to post Share on other sites
upnorth 0 Posted May 31, 2005 (edited) does this work? $handle = WinGetHandle( "The page") ControlSend( $handle, "", "Internet Explorer_Server1", "{F5}") Edited May 31, 2005 by UP NORTH Share this post Link to post Share on other sites
zxc3 0 Posted June 1, 2005 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] ) Parameterstitle 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. Share this post Link to post Share on other sites
jpm 93 Posted June 1, 2005 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] ) Parameterstitle 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. Share this post Link to post Share on other sites