Jump to content
Macro Express Forums

ells

Members
  • Posts

    6
  • Joined

  • Last visited

ells's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi Floyd, I've used notepad for an example in this. It saves a file called c:\test.txt. Warning! it also deletes file c:\test.txt each time it is run so if u have a file called that it will be deleted! (thought I'd better be sure!) <IFOTH:01:2:c:\test.txt><DOFILE:08:NN:C:\test.txt>><ENDIF><TVAR2:01:01:c:\test.txt><TMVAR2:16:01:00:000:000:><TBOX4:F:6:CenterCenter000278000200:020:Block input><ACTIVATE2:- Notepad><TEXTTYPE:<ALTD>fa<ALTU>><WAITWIN2:000010:000000:Save As><TEXTTYPE:%T1%<ALTD>s<ALTU>><WAITWLF2:000010:000000:Save As> If you open notepad and press 5 on the numeric keypad (with numlock on) it will run the macro. If you then go slightly mad as the macro is running and press lots of keys on the numpad, text is written onto the notepad file and the filename can be changed from C:\test.txt. So it doesn't seem to block any text at all! What am I doing wrong? Again, thanks for your help so far.
  2. Grrr! I've tried the text box trick but can't seem to get it to work. It makes no difference if it's there or not. I'm creating a Floating Box until "Close Box" called Block input and have set it to Always on top but not to Keep focus. Once it's displayed, I activate the window that I want to save the file of (it takes focus when it's displayed), then use a text type "CTRL f a" to get to file - save as. I wait for the window title "Save As" to appear then paste the file path and name from a variable then do Alt s to save it. I wait for Window Lose Focus "Save As" then close the Text box "Block Input" If anyone can tell me what I'm doing wrong I would really appreciate it. Ells
  3. Hi Derfel, Am afraid I have not tried it without a password protected macro but it should work with the built in command "Macro" "Load New Macro File". To check to see if there is a newer macro file available at startup, I would make a playable macro file (make the macro in the editor, then right click it in Macro Explorer and click Export - Export as playable macro). To actually perform the check, one method that may work (I do not think Macro Exp actually has the ability to check when a file was created) is to have a text file in your network path with the latest macro version. Inside that text file would be the latest version number of your macros. Similarly, each machine would have a text file containing its current version of macros. Then by putting the two values of the text files into variable and comparing them, if they do not match then run the "Macro" "Load New Macro File" command. (First I would copy over the latest macro file to a set directory on the computer though). Put a shortcut to this macro into startup and then everytime the machine is started it will run this macro and perform the check and update your macros to the latest version. Sorry for the long winded reply - hope it helps you a bit! (if it even works at all!!) Ells
  4. Hi Derfel - I'm afraid this isn't an solution - just a bump for your question. I'd also like the ability to update a macro (and one that is password protected for editing at that!) using another macro. I tried it a few weeks ago but when you get to the stage of entering the password for the updated macro, my update macro freezes so I assumed there was no way of doing it. Would it be possible to write an "update macro" function for future releases that allows you to hard code the edit and run passwords in? I know this doesn't help for now but I think it would be a very useful addon. Let's hope someone knows of a solution!
  5. Thank you for the replies floyd and paul. I will try the text box trick today! Thinking about it, it should work perfectly for what I want it to do. Again, many thanks!
  6. Hi all, Is there anyway to block the input of the keyboard using Macro Express while still being able to paste from the clipboard? I have a macro that saves a text file from an application to a specific directory from the typical "File" "Save As" menus. I desperately need to bullet proof this saving method because at present if the user presses a key while my desired filename and directory path are being "text typed" or "clipboard pasted" then it upsets the path that the file should be saved to. I can effectively block the keyboard input for the rest of the time by telling Macro Express to have the Alt and Ctrl keys pressed down but you cannot paste from the clipboard while these keys are pressed. I wish there were "keyboard block" and "keyboard unblock" commands that still allowed text to be pasted! Please help! Ellis
×
×
  • Create New...