Jump to content
Macro Express Forums

saxobob

Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by saxobob

  1. 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

  2. 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

  3. 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>

  4. 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...