Jump to content
Macro Express Forums

clipboard

Members
  • Posts

    12
  • Joined

  • Last visited

clipboard's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thanks guys. Saving the empty text variable as Paul suggests together with unchecking the "Add Trailing CR/LF" as Kevin proposed worked brilliantly. Thanks again.
  2. Hi.. I suppose this is going to be an easy solution but I've not been able to find an answer yet. I have a program which scapes info from web pages and saves the info to various files in disk. Before I start I have to delete the older stored text inputs (about 25 files of various names) so that the new info can be stored satisfactorily. There doesn't seem to be an "Empty File" option in my ME (v3.7d). Scrolling through the list of files isn't a problem but getting the existing info deleted is proving a problem. I've tried a very simple select all delete save series of text commands but the resultant "empty" files all have a blank first line!! The new text saves all begin at line 2 and because of this my program doesn't work. Any ideas how I can delete the text and start off with a pristine empty file with no blank top lines??? TIA
  3. Look and ye shall find I checked through earlier postings and found my answer... thanks to the forum again. In case anyone else needs it here's a copy <TVAR2:01:04:C:\Test.txt><REP3:08:000001:000002:0001:0:01:0><NMVAR:08:02:0:0000001:0:0000000><IVAR2:01:13:1:DISPATCH><TMVAR2:21:01:00:000:000:DISPATCH><ENDREP><NMVAR:09:02:0:0000001:0:0000000><TBOX4:T:1:CenterCenter000278000200:000:ResultDISPATCH appears %N2% times><DIS:<TEXTTYPE: >
  4. Hi again Here's one which is driving me nuts!!! I have a text file with which I'm using the Text File Begin/End Processes. I'm trying to find a target text amongst the lines and to increment a counter whenever each ocurrence is found. That's OK when there is just the single ocurrence of the target per line but how can I get it to record every instance even when there are several on a line. At the moment ME finds the first match on a line, increments the counter and then loads in the next line. Is there an easy method
  5. With a drop down list box on a web page (with 20+ items) is there any way of just Getting/Capturing the control so that only the highlighted/clicked name is recorded? At the moment when I do a Get/Cap etc, all 20 or so names which were on the list appear in the variable. I just want whatever name was clicked in the box and now which appears at the top. Does that make sense and is it possible? Thanks.
  6. Hi Joe Thanks for your rapid reply. I've tried <control>a but that just copies the entire page... all I need is the name on display at the head of the list box. If I put the list box "text" into a variable and copy that to the clipboard I get all the items on the list..... I don't know if it's relevent but when the name is highlighted I can't right click the mouse and get any "copy/select/paste" commands. It looks as if it's an "all or nothing" situation. God must know that I'm a "little bit at a time" type of guy!
  7. Hi again Why are the "easy" things so darned awkward?? I've a drop down list box (dozens of items) on a page(a). When I select an item from the list its name appears in the top box and because of a few other bits I do the name loses the focus... no problem. I activate my macro which tabs 11 times and viola the name gets the focus again. Question.. how do I now copy this name onto the clipboard?? I've tried Get Control %C1% and Set variable %T1% from %C1% and then paste %T1% to the clipboard but all I get is a load of gobbledook. I think it actually pastes the name of the listbox rather than the text in it. Sorry for being such a dummy... it's late and my brain has just about shut down. Thanks for your help in advance.
  8. Hi Randall Sorry for the delay in getting back to you but.................... I've been spending a lot of time doing cartwheels lately It all works a treat. Thanks a lot. You've saved me hours and your assistance was first class. I am really sold on ME and intend to get the "Explained" book. When that happens I can start practicing my backflips and somersaults Thanks again Best Regards clipboard (keith)
  9. Hi Randall Thanks a lot for all your hard work. I've grabbed the 3 downloads and I'll give them a run. Can't wait. I'll get back to you with the results. Regards clipboard (Keith)
  10. Hi Randall again I use about a dozen different sites but they all have the same access levels. If you can sort out the procedure for this first one I will be able to modify my macros web addresses, etc to suit. One of the main sites I use is "www.futurlec.com". To give you some sort of taster as to my modus operandi ...... click on "components" (top menu), click "LED's/LCD's" (LH menu) and click "LED Displays" (LH menu). This first page I copy and paste 'cos it has all the stock availability and pricing on. Then I click each "more info" tab in turn and use my macro to copy/paste into Notepad and then open the destination folder. The problem as you can see is with the component name. When I type in the "save as" field I often make typos and the comparison prog I use can't find the info 'cos it's got the wrong name!!!! The name "7SEGIRCA_Red Single 7_Segment CA Display" leaves a lot for potential typos (especially after I've done about 250) and this is the name I want my (our) macro to transfer into the "save as" field in Notepad. Hope that gives you some more to work on Appreciate your efforts Best regards clipboard (Keith)
  11. Hi Randall Thanks for your response. Just checked and yes you can "View code" and "Save As" on both pages............ main listing and sub info page. I'm glad to read that you think it should be easy enough . In my limited experience "easy" and "computers" are 2 words which never appear in the same sentence Best regards Clipboard
  12. Hi folks This is my first post and I've a feeling that my level of expertise will readily become apparent. At the moment I use a very small macro to help me highlight and save to disk certain web info. I open a web page and on it is listed a whole load of components. Each component is a link to a seperate page which gives the size, pricing, delivery info for that particular piece which I copy to a text file for future use. THE NAME OF THE COMPONENT IS HIGHLIGHTED IN RED AT THE TOP OF ITS OWN PAGE and all other text is the usual black type. Okay, at the moment I open the main web page and click on a component name. When this second page loads I then hit my macro which selects the entire page, copies it to the clipboard, opens notepad, pastes the info onto the page, opens a destination folder on the HD and clicks on "save as". That's it. I then enter the name of the component, save it and then close notepad, close the component page and click on another component on the list and start all over again. There are sometimes 100's of component infos to save (very time consuming). Just using this small macro to select all, copy and paste has saved me hours of boring repetition. What I would really like is to be able to click the fist name on the list and for everything to be fully macroed from there. As the macro made it's way down the list copying, pasteing and saving I would be doing cartwheels in delight but I will settle for...... ........... I would like to get the macro to enter the name of the component into the notepad "save as" field, save it, close all the windows and return me to the main page. All I have to do is click each item in turn and then hit the macro. Perfect. Any ideas?? I thought that the name of the individual component being in RED TEXT may be pertinent! This is my small macro Text Type;<CONTROL>a Clipboard Copy Program Launch:notepad.exe Clipboard Paste Clipboard Empty Delay 380 ms Mouse Move Window 19,38 Mouse Left Button Down MOuse Left Button Up Mouse Move Window 50,110 Delay 1031ms Mouse Left Button Down MOuse Left Button Up Delay 520ms Mouse Move Window 46,60 Many thanks and apologies for the amateurish approach.
×
×
  • Create New...