thimker Posted January 2, 2005 Share Posted January 2, 2005 1. I have the following loop to send ctrl-r to active window, to make a browsed page refresh / update. --- While 1 send ("{CTRLDOWN}") send ("{r}") send ("{CTRLUP}") Sleep(1000) WEnd --- Is there a better syntax? I found several that are wrong, such as {^r}. 2. How could I send ctrl-r to a background window? I'd like to do other things in foreground. I don't yet understand how to get the title or handle for a window that I have not yet opened with a script. BTW: The worst way to do it is have {CTRLDOWN} before the loop, not know that {CTRLUP} was needed, and find reboot was necessary. thnx Link to comment Share on other sites More sharing options...
Insolence Posted January 2, 2005 Share Posted January 2, 2005 (edited) It's ^r I think, not {^r}. Use ControlSendPlus for the background window thing, search around for the function. Edited January 2, 2005 by Insolence "I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar. Link to comment Share on other sites More sharing options...
DirtyBanditos Posted January 2, 2005 Share Posted January 2, 2005 (edited) 1. I have the following loop to send ctrl-r to active window, to make a browsed page refresh / update.---While 1 send ("{CTRLDOWN}") send ("{r}") send ("{CTRLUP}") Sleep(1000)WEnd---Is there a better syntax? I found several that are wrong, such as {^r}.2. How could I send ctrl-r to a background window? I'd like to do other things in foreground. I don't yet understand how to get the title or handle for a window that I have not yet opened with a script.BTW: The worst way to do it is have {CTRLDOWN} before the loop, not know that {CTRLUP} was needed, and find reboot was necessary. thnx<{POST_SNAPBACK}>Hi i use this i hope this help you out) Send("^c") Edited January 2, 2005 by DirtyBanditos Link to comment Share on other sites More sharing options...
thimker Posted January 2, 2005 Author Share Posted January 2, 2005 (edited) Thanks to both of you for fast and good responses. BTW "ControlSendPlus" is not in HELP. Did you mean to search forum? -- Yep, you did. Sorry. Ok, found a few posts. But I am not interested in "Diablo II", or similar. Just want to send ctrl-r or other simple strings to background window, such as I now enjoy in foreground. I also need something that is well documented, or I will sink. Edited January 2, 2005 by thimker Link to comment Share on other sites More sharing options...
DirtyBanditos Posted January 3, 2005 Share Posted January 3, 2005 (edited) Thanks to both of you for fast and good responses.BTW "ControlSendPlus" is not in HELP. Did you mean to search forum?--Yep, you did. Sorry.Ok, found a few posts. But I am not interested in "Diablo II", or similar. Just want to send ctrl-r or other simple strings to background window, such as I now enjoy in foreground. I also need something that is well documented, or I will sink.<{POST_SNAPBACK}>Hi look on The Autoit forum Gui.Beta or look in the Gui.au3 wat for Comand He have))^^ Or Post your Probs on the Gui.Beta forum any look and help you out)I go in my Bed cue Edited January 3, 2005 by DirtyBanditos Link to comment Share on other sites More sharing options...
Insolence Posted January 3, 2005 Share Posted January 3, 2005 It isn't specific to Diablo II... there is a ton of documentation on it, let me link ya:http://www.autoitscript.com/fileman/users/pekster/pekster%27s%20scripting%20index.htmlComes with a nice help file and such. "I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar. Link to comment Share on other sites More sharing options...
thimker Posted January 3, 2005 Author Share Posted January 3, 2005 It isn't specific to Diablo II... there is a ton of documentation on it, let me link ya:http://www.autoitscript.com/fileman/users/pekster/pekster%27s%20scripting%20index.htmlComes with a nice help file and such.<{POST_SNAPBACK}> Aaah. Thank you. Link to comment Share on other sites More sharing options...
Insolence Posted January 3, 2005 Share Posted January 3, 2005 No problem ofcourse "I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar. 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