home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Mammon_ / copy.idc < prev    next >
Text File  |  2000-05-25  |  859b  |  22 lines

  1.  
  2. //------------------------------------------------------------------------------------------------------
  3. //copy.idc (rev 3.09): Outputs selected text to an .asm file
  4. //Usage: Select text with mouse or cursor, hit F2 and type copy.idc, enter a filename when prompted
  5. //       and the selected text will be written to that file.
  6. //Future Plans: Make this output to the Windows clipboard. I may have to patch IDA for this....
  7. //
  8. // code by mammon_ All rights reversed, use as you see fit.....
  9. //------------------------------------------------------------------------------------------------------
  10. #include <idc.idc>
  11.  
  12. static main(){
  13.     auto filename, start_loc, end_loc;
  14.     start_loc = SelStart();
  15.     end_loc = SelEnd();
  16.     filename = AskFile( "asm", "Output file name?");
  17.     WriteTxt( filename, start_loc, end_loc);
  18.     return 0;
  19. }
  20.  
  21.  
  22.