zxc3 Posted May 31, 2005 Share 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}") Link to comment Share on other sites More sharing options...
jpm Posted May 31, 2005 Share 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. Link to comment Share on other sites More sharing options...
zxc3 Posted May 31, 2005 Author Share 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 Link to comment Share on other sites More sharing options...
upnorth Posted May 31, 2005 Share 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 Link to comment Share on other sites More sharing options...
zxc3 Posted June 1, 2005 Author Share 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. Link to comment Share on other sites More sharing options...
jpm Posted June 1, 2005 Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now