Jump to content
Macro Express Forums

Strathos

Members
  • Posts

    32
  • Joined

  • Last visited

Strathos's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hello You can try getting the Html code from "http://www.dailyfx.com/"'>http://www.dailyfx.com/" then use Find to look for "story" Shift + Ctrl + Right arrow. Clipboard copy Send to text variable and delete from the " ' " to the end then just load the page "http://www.dailyfx.com/Tn" Good luck!
  2. Hello again Forget about the sample I posted before, its too messy. If the Folder that Contains the Subfolders is NOT inside the folder that contains the Files, this macro should work. Just run it, no need to change anything. <CLEARVAR1:T:20:21><REM2:Get Main Folder 1 and 2 Path from Registry><REGRSTR:20:HKEY_CURRENT_USER\Folder F><REGRSTR:21:HKEY_CURRENT_USER\Folder S><REM2:Select Main Folder and save it to Registry (First Time Run)><IFVAR2:1:20:1:><TVAR2:20:10:~ Please Select the Folder that contains the Files ~><REGWSTR:20:HKEY_CURRENT_USER\Folder F><ENDIF><IFVAR2:1:21:1:><TVAR2:21:10:~ Please Select the Folder that contains the Subfolders ~><REGWSTR:21:HKEY_CURRENT_USER\Folder S><ENDIF><DIS:<TBOX4:T:1:000373000269000409000157:000:Folder F S%T20% - %T21%><REM2:Get Full File Path (T10)><REP3:07:000002:000001:0010:0:01:%T20%><REM2:Get File Name (T1)><REP3:07:000001:000001:0001:0:01:%T20%><DIS:<TBOX4:T:1:000373000269000409000157:000:-%T10% - %T1%><IFVAR2:4:10:7:T1T><BREAK><ENDIF><ENDREP><REM2:Get First Word (Folder Name) from T1 to T2><IVAR2:01:13:1: ><TMVAR2:10:02:01:001:N01:><TMVAR2:13:02:00:000:000:><TMVAR2:01:02:00:000:000:><DIS:<TBOX4:T:1:000373000269000418000173:000:Done%T10% - %T1% - %T2%><REM2:Move File><IFOTH:02:1:%T21%\%T2%><AND><IFOTH:09:2:%T21%\%T2%\%T1%><DOFILE:07:NN:%T10%>%T21%\%T2%\%T1%><ENDIF><ENDREP> What will this macro do: It will take the First word of every file that are inside the "Files Folder" and move them to the Folder that contains the Subfolders (Excel, Word, PDF, Access, whatever) that matches the said word. It will move only those files whose first filename word matches with an existing folder. It will NOT watch for files that already are inside the Folder that Contains the Subfolders. Uhm.. lets say: · You have a Folder that contains the files: "Word data.doc" and "PDF guide.pdf" · You have another folder that contains the subfolders: "Word" and "PDF" ME will take the two Files and move them, based on the first word of each one, to the Folders. It was fun to make it. If it works for you, you can learn some looking at the Script. Good luck! PS: IF you want to be asked Again for those 2 folders, use this macro: <REGDELVAL:HKEY_CURRENT_USER\Folder F><REGDELVAL:HKEY_CURRENT_USER\Folder S> PS2: hope you can understand me better than I do .
  3. Here is a simple sketch of the macro you need 1) First you should use "Repeat with Folder" with Return: Files "Full File Path" selected "Process Subfolders" ON and choose the Main Folder wich contains the other subfolders: Excel, Word, etc. This will, one by one, place on a variable (lets say T10) the Full File Path of all the files inside the Main Folder (including those wich are inside the subfolders Excel, Word and the others) 2) Now you need to get the File Name wich is placed at the last part of the Full Path. Something like this should work: <IVAR2:10:12:10><REP3:08:000007:000001:0001:0:01:\><NMVAR:09:10:0:0000001:0:0000000><TMVAR2:10:01:10:N10:9999:><ENDREP><TMVAR2:21:01:00:000:000:\> T1 will contain the File Name now. 3) The next step is to retrieve the first word of the File-Name from T1 to T2 You should use the command "Get Position of Text in a Text Variable" as Joe said. 4) Finally, use Switches and Cases to read T2 and move the file. Here is a base example: <SWITCH:T2><CASE:excel><DOFILE:07:NN:%T10%>Main Folder Path\%T1%><ENDCASE><ENDSWITCH> Hope this helps some.
  4. What about changing to a better web explorer like Opera?
  5. You're welcome! It works for me at least Note that you should uncheck "Hide file extensions for known file types" at "Folder Options" to change the attachment extension properly. PD: despite the weird "strathos" sounds in english, im a man
  6. The command "Get Pixel Color" will do that. It's placed under the Commands Category "System".
  7. I don't know if anyone knew this but you can get the attachments doing... Right click in the attachment Click "Save as" You will probably get a file called "index.htm" Once it is downloaded go where the file is saved and change it's name as the one shown in the post.
  8. Hello I think you would need to use Switches and Cases. Here it is an example: Switch (T3) // Cases are like "If Variable = X Case: ADABAS Delay 200 Milliseconds Text Type: CSC.CPH.GPES.DBA.ADABAS End Case Case: 8781 Delay 200 Milliseconds Text Type: CSC.Cph.Ops.Data.Tsmd End Case // If any of the others: Default Case Delay 200 Milliseconds Text Type: XXXXXXXXX End Case End Switch If T3 it is only contains the triggering text (eg: T3 = "abcText ADABAS") you could try something like this: Variable Set Integer %N1% to 0 If Variable %T3% contains "ADABAS" Delay 200 Milliseconds Text Type: CSC.CPH.GPES.DBA.ADABAS Variable Set Integer %N1% to 1 End If If Variable %N1% = 0 Delay 200 Milliseconds Text Type: XXXXXXXXX End If
  9. Have you tried to use "Ctrl + Space" (In the mouse move window)? "Press Ctrl+Space to save the current mouse coordinates." You could try using a macro like this one.. Get Mouse Position Screen: %N1%, %N2% Text Box Display: %N1% and %N2%
  10. The pop-up window is not separated from the web browser then? Guess you can't use Controls neither. Does the pop-up appear always in the same place? I don't see why the script you posted wouldn't work. It checks the color before the popup appears, but it will only click if the pixel color becomes 3421493..
  11. Hello MGuyM Do the pop-up windows's name have a word in common? In that case you could simply use Wait For Window Title: "Pop-Up"
  12. Here is how it would work: - Mail from celular to pc with a command - Computer checks mail every 1 minute - When mail arrives email client runs a macro wich uses controls to get the command - The macro recognizes the command (eg: If Variable %T1% contains "Restart") - The commnd is done - An email is sent to the celular to inform the command was done. I use POP Peeper (http://www.poppeeper.com/) with the "Chime" Plugin (http://www.poppeeper.com/Plugins/notify.php) Some Cmds I have: · Word translator · Encyclopedia · Restart/Turn off PC · Run a program · Send weather prognostic · Inform about downloads finished
  13. Hello I know this is not a Visual Basic Script forum, but I was wondering if someone with knowledge could give me a hand with a very simple macro/script. This is how it would be in ME: Repeat Until %N1% <> %N1% If Window Title "Main battery Full" is on top Macro Stop End If Wait For Window Title: "Main battery low" Window Close: "Main battery low" Repeat End This is what I have done so far for x=1 to 100 Window.WaitWindow (Main battery low) Window.CloseWindow(?) "Main battery low" next %> Of course it won't work. I have no idea what to do with the "Sub Main", "Call main" and "functions" I'm reading a tutorial, but I dont think I will ever do a VBScript again Long Life to Macro Express!
  14. Hello Try with "Variable Set Integer" "Set value from current window Width" "Set value from current window Height"
  15. Hi again, Pete Could you find the solution? I think I might have one: Its a Freeware Website Copier with Command-Line Support Program: http://www.httrack.com/ Command-Line Help: http://www.httrack.com/html/fcguide.html I also attach a dll that you need to run the Command Line (httrack.exe) msvcr71d.zip
×
×
  • Create New...