Jump to content
Macro Express Forums

saxobob

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by saxobob

  1. Hi, I know one of my macros contains a command to type the letters THB - how can I find it, there doesn't seem to be a global find? I found it in a text editor in the .mex file, but this also has lots of binary/control characters. Thanks Rob
  2. Ah, thanks - I have the book and will search it out today!
  3. Hello folks, I'm trying to compile a dynamic macro used in conjunction with my voice recognition software. I'd like the macro to present a pop-up list of all the open applications, with the text as it would be shown on the taskbar button. The windows would be numbered, and a particular window could be activated simply by typing (or in my case by using my voice recognition software, saying) that number. e.g. 1 - Invoice - Microsoft Word 2 - Google - Internet Explorer 3 - Untitled - Notepad There is no requirement to determine whether the open applications are maximised, minimised etc, the macro should list everything currently producing a taskbar button. Many thanks in advance Rob
  4. Hi Randall, I started with that command but it's a bit long-winded, I wanted to launch the macro when I'm browsing my hard drive and come across a folder that's in a mess - a shame to be in a place then have to navigate to it again in that little window. Thanks, Rob
  5. Found the answer to my own question - Multiple Choice in Dialogs. Still remain to discover how 'best' to find the path of a selected file in Windows Explorer so I can run the macro in that location. Cheers Rob
  6. Hello, I have a lot of files in a few junk directories which I'd like to reorganise. I have RSI so cutting any keystrokes is a real bonus. Basically I want to create 5 new subdirectories, and then prompt the user (me!) with each filename and the user then types 1, 2, 3, 4 or 5 to move it to that sub-directory I'd like to launch this from an windows explorer window and process files from that 'root' location. So far I have a repeat with folder to get each filename into %T2%, then I've created a separtate move macro for each of the 5 locations. The user is prompted with a pop up menu for each file, but this doesn't include the filename. Also I need to put a pause in to stop all the pop up menus appearing at once. There are far too many key presses required by this stage. Macros are here... From a Windows Explorer window we run this with a HotKey. It gets the path by copying from the address bar which is a bit clunky! <TEXTTYPE:<ALT>D><DELAY:.5><CLIPC><TVAR2:01:03:><DOFILE:01:NN:%T1%>><DOFILE:02:NN:00 AUDIO>><DOFILE:02:NN:01 PROGRAMMING>><DOFILE:02:NN:02 UTILITIES>><DOFILE:02:NN:03 MP3>><DOFILE:02:NN:04 GAMES>><DOFILE:02:NN:05 MUSIC INSTRUCTION>><REP3:07:000002:000001:0002:0:01:%T1%><PAUSE3:T><MACRUN2:Move files><ENDREP> ================== The other items are in the attached file. Is there a more elegant way? Thanks in advance, Rob myexample.mex
  7. Hello, I've been working on a macro to put all ZIP and RAR files from a chosen directory into newly created subdirectories of a max size. However, my variables %N5% and %N6% are always zero (these represent file size and directory size) Can anyone help me out I wonder? There are 2 prompts at the beginning, a Root folder selection to look for ZIP and RAR files, and a max size for each subdirectory before another one is created. Thanks, Rob Here is the macro... <REM2:Choose a root folder><TVAR2:01:10:Choose Directory to Archive><REM2:><REM2:N8 is the max size for a directory><IVAR2:08:02:FHow many Megabytes? (Standard DVD = 4600)FFCenter:Center><NMVAR:03:08:1:0000008:2:1024000><REM2:><REM2: Each file in chosen folder is assigned to the variable T2 in turn><REM2:><IVAR2:01:01:1><REP3:07:000001:000001:0002:0:01:%T1%><REM2:Create a folder called 1 then 2 then 3 etc><IFOTH:10:1:%T1%\%N1%><DOFILE:02:NN:%T1%\%N1%>><ENDIF><REM2:--><REM2:N5 is file size><REM2: N6 is sub directory size><REM2:><VFFILE:1:F:1:F:1:F:1:T:3:%T2%><IFVAR2:1:03:1:T.ZIP><OR><IFVAR2:1:03:1:T.rar><REM2:><IVAR2:05:05:%T2%><REM2:><TBOX4:T:1:CenterCenter000278000200:000:%N5% = file size %N6% = folder size><NMVAR:01:06:1:0000006:1:0000005><REM2: If the file would take the sub directory above the DVD/CD size then break><IFVAR2:5:06:4:N8><NMVAR:08:01:0:0000001:0:0000000><ELSE><DOFILE:07:NN:%T2%>%T1%\%N1%><ENDIF><ENDIF><ENDREP>
  8. Excellent - easier than I thought! I thought I might need to go to a DOS prompt. Many thanks Rob
  9. Hello, Is there a way I can access windows env variables and store them into ME. A useful list of all of them is at... http://kennethhunt.com/archives/000933.html Specifically now I'm looking for Username, but I can imagine needing others in the future. Obviously lots are covered by specific commands, but not all, as far as I can see. Thanks, Rob
  10. Hello folks, I have a macro designed to test my ADSL line by starting a browser, pointing it to Microsoft & checking for a an IE titlebar containing "Corporation" not existing (ie no intenet connection and IE returns a failure page). Should be that if it gets past the condition then the router gets rebooted. Thing is it gets past the If even when the microsoft home page loads ok. Then it doesn't shut the windows either. Can anyone suggest what I'm doing wrong? Here is the macro in Direct format. <LAUNCHNO3:0:0112Internet Explorer<LAUNCH:C:\Program Files\Internet Explorer\iexplore.exe><DELAY:.5><TEXTTYPE:<ALT>d><DELAY:.5><TEXTTYPE:www.microsoft.com<ENTER>><DELAY:5><IFOTH:12:2:Corporation><LAUNCHNO3:0:0112Internet Explorer<LAUNCH:C:\Program Files\Internet Explorer\iexplore.exe><DELAY:.5><DELAY:.5><TEXTTYPE:<ALT>d><DELAY:.5><TEXTTYPE:192.168.2.1<ENTER>><DELAY:1><TEXTTYPE:<ENTER>><REP3:01:000001:000001:00027:0:01:><TEXTTYPE:<TAB>><ENDREP><TEXTTYPE:<ENTER>><REP3:01:000001:000001:00033:0:01:><TEXTTYPE:<TAB>><ENDREP><TEXTTYPE:<ENTER><ENTER><ENTER>><DELAY:40><WCLS:192.168.2.1><WCLS:Cannot find server><ELSE><WCLS:Corporation><ENDIF> Thanks Rob
×
×
  • Create New...