Search found 438 matches

by adroege
Tue May 10, 2011 6:15 pm
Forum: Technical / Scripting
Topic: Retrieving text from a minimized window
Replies: 4
Views: 5220

Have you tried

GetControlText>

??

It won't work with every application, but if it works with yours
then problem is solved.

Use the "view system windows" tool while your chat room program is running to help you find the proper parameters to GetControlText
by adroege
Mon May 09, 2011 4:50 pm
Forum: Technical / Scripting
Topic: How to click text after finding it without using MODI?
Replies: 1
Views: 2685

Have you looked at this link? http://www.mjtnet.com/usergroup/viewtopic.php?t=5646&highlight=modi If this is a browser based application, then what I do is to use HTTPRequest to fetch the page initially, or you can script an instance of IE using VBScript. Then using string parsing (like Position>) o...
by adroege
Thu May 05, 2011 4:53 pm
Forum: Technical / Scripting
Topic: How to retrieve process path?
Replies: 4
Views: 4706

something like this should work for you. //Change this variable to what you are looking for Let>TargetProcess=wscntfy.exe Let>k=1 Label>start ReadLn>H:\TEMP\processlist.txt,k,line If>line=##EOF##,finish Position>TargetProcess,line,1,StartPos If>StartPos>0 ExtractFilePath>line,path MessageModal>filep...
by adroege
Wed May 04, 2011 8:36 pm
Forum: Technical / Scripting
Topic: How to retrieve process path?
Replies: 4
Views: 4706

Here is a simple example that should get you going on the right track. You will need to tweak it for your exact needs. //get process commandline Let>RP_WAIT=1 Let>RP_WINDOWMODE=0 Run>WMIC /OUTPUT:C:\ProcessList.txt PROCESS get Caption,Commandline,Processid ReadFile>c:\processlist.txt,processlist Mes...
by adroege
Wed Apr 27, 2011 6:00 pm
Forum: Technical / Scripting
Topic: How to use RegEx to convert CRLF to LF?
Replies: 2
Views: 4167

Do you really need RegEx? or do you just need it to work?

This way works without using Regular Expressions

Code: Select all

StringReplace>SourceString,%CRLF%,%LF%,NewString
by adroege
Thu Apr 21, 2011 9:55 pm
Forum: Technical / Scripting
Topic: Custom trigger
Replies: 3
Views: 4352

Search the online help at mjtnet.com for this. It wasn't in my local help file, but I tried it and it works.
WaitProcessTerminated>myprocessname
by adroege
Tue Apr 19, 2011 3:31 pm
Forum: Technical / Scripting
Topic: Searching for files in specific folders
Replies: 3
Views: 4139

Here is a simple sample which works for me. Let>Folder1=c: Let>Folder2=x: Let>Folder3=I:\TestDeliverables Let>FileSpec=setup.log Let>RP_WAIT=1 Let>RP_WINDOWMODE=0 Let>RP_DISPLAYERROR=1 RunProgram>cmd /c dir %Folder1%\%FileSpec% /s >c:\searchresult.txt RunProgram>cmd /c dir %Folder2%\%FileSpec% /s >>...
by adroege
Tue Apr 19, 2011 12:30 pm
Forum: Technical / Scripting
Topic: Searching for files in specific folders
Replies: 3
Views: 4139

Is there a way to automate searching multiple specific folders rather than searching My Computer? The quick answer is yes. But it requires programming this. One method would be to issue the DOS command dir {file spec} /S >outputfile.txt in each of the respective folders and then parse the outputfil...
by adroege
Thu Apr 07, 2011 8:48 pm
Forum: Technical / Scripting
Topic: Determine Laptop verses Desktop
Replies: 4
Views: 5029

The original script was generated with my machine name
hard coded.

Try changing this line
arrComputers = Array("TEST46TO50-P5")

to

arrComputers = Array(".") a single period in double quotes


That should fix it.
by adroege
Thu Apr 07, 2011 8:23 pm
Forum: Technical / Scripting
Topic: Determine Laptop verses Desktop
Replies: 4
Views: 5029

Try this test program on both your laptop and your desktop and see what are the differences. Then it is easy to convert this VBScript to run inside of Macro Scheduler for your purpose. Run it with this command line cscript //E:VBScript //NoLogo temp_script.sm create a file on disk with the name "tem...
by adroege
Wed Apr 06, 2011 9:16 pm
Forum: Technical / Scripting
Topic: Branching out of a Subroutine Error
Replies: 1
Views: 2997

Look in the help file for SkipLabel See the following example GoSub>DoNotDoThis GoSub>DoThisInstead SRT>DoNotDoThis Let>a=1 Let>b=2 If>a=1 Goto>Exit Endif END>DoNotDoThis SRT>DoThisInstead Let>a=1 Let>b=2 If>a=1 SkipLabel>Exit Endif END>DoThisInstead Label>Exit
by adroege
Tue Apr 05, 2011 10:22 pm
Forum: Technical / Scripting
Topic: Grab telnet window text
Replies: 12
Views: 16505

I think the point of my example was missed. MessageModal>TELNET_SESSIONLOG Look at the help for the telnet stuff. Macro Scheduler already keeps a log of everything happening in the telnet session in the TELNET_SESSIONLOG variable. Why try to automate another external program when this capability is ...
by adroege
Tue Apr 05, 2011 8:14 pm
Forum: Technical / Scripting
Topic: Grab telnet window text
Replies: 12
Views: 16505

Why not use the built-in telnet capabilities of Macro Scheduler like this example illustrates? TelnetConnect>my.domain.com,23,hTN TelnetWaitFor>hTN,Press any key to continue,5,r TelnetSend>hTN,a TelnetWaitFor>hTN,login,5,r TelnetSend>hTN,administrator%CR% TelnetWaitFor>hTN,password,5,r TelnetSend>hT...
by adroege
Sat Apr 02, 2011 10:16 pm
Forum: Beginners
Topic: Need to load specific file name into 'blinking' text field
Replies: 1
Views: 3666

Well I'm not sure what is your problem, so here are a few thoughts: 1.) Most "load a file" dialogs I've encountered, have a button to click in order to browse the file system to find the file. It's usually on this dialog where you can simply type in the file you want to load. 2.) Many times "PushBut...
by adroege
Fri Apr 01, 2011 7:56 pm
Forum: Technical / Scripting
Topic: Can't ClickTag with WebRecorder
Replies: 8
Views: 8234

This also works for me and is very simple.

Code: Select all

VBSTART
VBEND

Input>result,Enter a calculation

VBEval>Escape("%result%"),result
StringReplace>result,+,%2B,result

Let>URL=http://www.wolframalpha.com/input/?i=%result%
ExecuteFile>URL
Sign up to our newsletter for free automation tips, tricks & discounts