JohnGarziglia Posted February 1, 2006 Report Share Posted February 1, 2006 This is more of a Microsoft Internet Explorer question rather than an ME question but I am asking it here because (1) I cannot figure this one out for numerous ME macros I am running and (2) this question would not arise but for automated operation under ME. In order to place the text on a web page into a text variable, I am using the "Edit" / "Select All" or a "Control-A" command which blocks an entire web page for the "copy [to clipboard]" function. My question is: OTHER than using a left mouse click, is there any way to then de-select the text on the web page? I am now using a left mouse click but that is problematic as depending upon where the mouse cursor is on a web page, it sometimes activates an unwanted link (i.e. the mouse cursor is unexcpectedly over an active link and that link is activated taking the macro to an unwanted web page). I have tried every conceivable keystroke I could find to "Deselect All" once "Select All" is used. I have been unable to come up with any way to Deselect All other than by using a left mouse click which as I note above has proved to be problematic. Any assistance with this is greatly appreciated. Thanks. John Quote Link to comment Share on other sites More sharing options...
randallc Posted February 1, 2006 Report Share Posted February 1, 2006 H, Alt-Left , then alt-right?..... if you don't mind leaving the page for a bit! [or, better, "F5" for refresh!] Randall Quote Link to comment Share on other sites More sharing options...
lemming Posted February 1, 2006 Report Share Posted February 1, 2006 I occasionally have a need to do a select all/deselect in IE. For a deselect, I just click on position 1,1 in the control called Internet Explorer_Server. That's the web content area in IE, the area below the explorer bar, toolbars, etc. Position 1,1 is the upper left-hand corner in this area, which is unlikely to contain any links. I've included a demo macro with this posting. If it doesn't work, you'll need to find out what the control is called on your PC. It could be different depending on IE version or OS version. You can do this via the Get Control Utility which is avail under the Get Control command. -Lemming. select_deselect_IE.mex Quote Link to comment Share on other sites More sharing options...
JohnGarziglia Posted February 2, 2006 Author Report Share Posted February 2, 2006 Lemming, This worked great and was what I needed. Many thanks! An ancillary benefit is that your solution caused me to look closely at the "Get Control" commands which up until now I had not learned about. I really appreciate your advice on this. John Quote Link to comment Share on other sites More sharing options...
JohnGarziglia Posted February 4, 2006 Author Report Share Posted February 4, 2006 One of my partners came up with another solution which I pass along. It is to do a "find", search for a space, and then escape out of the find dialog. His description: Ctrl+F -- Initiate find [space] -- Search for space [Enter] -- Initiate search [Escape] -- Dismiss find dialog This works, but has the downside of the moving the link cursor to the very next link past the found "space", no matter where it was previously on the page. Thought I would pass it along. John Quote Link to comment Share on other sites More sharing options...
randallc Posted February 4, 2006 Report Share Posted February 4, 2006 Hi, What about you [loop] move 2 pixels to the right, and test for mouse cursor being an arrow (safe to click)? Randall <REP3:08:000002:000001:0001:1:01:T1><IFMOUSE:1><LCLK><EXITREP><ENDIF><MMP2:2,0><ENDREP> Quote Link to comment Share on other sites More sharing options...
JohnGarziglia Posted February 7, 2006 Author Report Share Posted February 7, 2006 Randall, This also appears like it would keep a web link from being executed and is very helpful. I had not considered what the "If Mouse Cursor ... " command could do and it looks like it could be useful for a number of things so I appreciate you suggesting how it can be used. Thanks! John Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.