Search found 15 matches
- Fri Feb 10, 2017 2:52 pm
- Forum: Technical / Scripting
- Topic: JSONParse - JSONPath help
- Replies: 4
- Views: 7130
Re: JSONParse - JSONPath help
Thank you Marcus, I see that will work. I will add code to alter that response after I get it and give the array a name like you demonstrated. Thanks for your help!
- Thu Feb 09, 2017 3:33 pm
- Forum: Technical / Scripting
- Topic: JSONParse - JSONPath help
- Replies: 4
- Views: 7130
JSONParse - JSONPath help
I am receiving a json response formatted exactly in this manner: [{"usr_uid":"000","usr_name":"admin"},{"usr_uid":"127","usr_name":"bot"},{"usr_uid":"269","usr_name":"fred"}] I can't seem to find the proper way to reference the nodes in this structure via the JSONParse command. I've checked the onli...
- Tue Mar 03, 2015 10:29 pm
- Forum: Technical / Scripting
- Topic: Midstr alternative method (or enhancement)
- Replies: 3
- Views: 4249
Re: Midstr alternative method (or enhancement)
Thanks Jerry and Marcus, will use your suggestions.
- Mon Mar 02, 2015 8:23 pm
- Forum: Technical / Scripting
- Topic: Midstr alternative method (or enhancement)
- Replies: 3
- Views: 4249
Midstr alternative method (or enhancement)
Looking for a good way to return the remaining characters from a string just given a starting point... For instance, to return 'End', I know I can use: Let>string=BeginEnd MidStr>string,6,3,result1 Let>result2={copy(%string%,6,3)} But using these methods require me to provide a length for the substr...
- Mon Dec 01, 2014 3:20 pm
- Forum: Technical / Scripting
- Topic: Issue with ReadLn and lines with quotes
- Replies: 7
- Views: 7892
Re: Issue with ReadLn and lines with quotes
Thanks for looking into this Marcus. I thought it might be a bug. I will try the alternate method you suggested as well.
- Wed Nov 26, 2014 9:51 pm
- Forum: Technical / Scripting
- Topic: Issue with ReadLn and lines with quotes
- Replies: 7
- Views: 7892
Issue with ReadLn and lines with quotes
Using 14.2.01 on a windows 7 box... I copy and run the code from Help file for ReadLn: Let>k=1 While>line<>##EOF## ReadLn>c:\temp\test.txt,k,line If>line<>##EOF## MessageModal>line Endif Let>k=k+1 EndWhile Here is my test.txt file: 010003000^1^00^NONE "020072000"^1^04^UNIT AIR 020126001^1^04^UNIT AI...
- Wed Aug 25, 2010 4:07 am
- Forum: Technical / Scripting
- Topic: RenameFile bug in XP?
- Replies: 1
- Views: 4022
RenameFile bug in XP?
The following 1 line script is working for me on a windows 7 machine: RenameFile>RiceGroup1\RiceGroup1_4999.pdf,RiceGroup1\testing123.pdf It is failing for me on a windows xp (sp3) machine. On XP it is leaving the 'RiceGroup1_4999.pdf' file in the 'RiceGroup1' folder and making a copy file called 'R...
- Tue Jul 20, 2010 7:05 pm
- Forum: Technical / Scripting
- Topic: Run Program> question
- Replies: 1
- Views: 3412
Run Program> question
Having a problem with running a command line... I use gawk all the time from a command prompt window - syntax is: gawk.exe -f [script file] [input file] > [output file] ( the '>' is there to send the output to the output file and overwrite if it already exists, a '>>' can be sent to append - like ba...
- Tue Jul 20, 2010 3:26 pm
- Forum: Technical / Scripting
- Topic: GetEnvVar>Path not working on 64 bit Win 7
- Replies: 24
- Views: 28532
I've run the same two lines and get nothing back as well. I'm running Windows 7 (32 bit however) and MS 12.0.5. I can retrieve other environment variables (OS, ComSpec, PathExt ...) but for some reason, not PATH - just comes back blank. FWIW, my actual path contains: D:\Programs\Cisco\Unified Commun...
- Sat Jul 03, 2010 9:30 pm
- Forum: Technical / Scripting
- Topic: GetDialogProperty - working properly?
- Replies: 1
- Views: 2966
GetDialogProperty - working properly?
Playing with new v12 dialogs and tried a few things. Using the 'Dialogs - Simple Modal' sample script included with MS as follows: Dialog>Dialog1 object Dialog1: TForm Left = 666 Top = 271 HelpContext = 5000 BorderIcons = [biSystemMenu] Caption = 'Simple Modal Dialog' ClientHeight = 140 ClientWidth ...
- Mon Jun 28, 2010 3:23 pm
- Forum: Technical / Scripting
- Topic: intercept key press
- Replies: 2
- Views: 4331
Thanks Marcus - this morning I was able to get this working flawlessly by using a different route. This is a perfect example of using macros/scripting available in different applications to help get the desired end results with Macro Sheduler. The emulator program supports its own macros - so I made...
- Fri Jun 25, 2010 7:08 pm
- Forum: Technical / Scripting
- Topic: intercept key press
- Replies: 2
- Views: 4331
intercept key press
I've been playing around with the OnEvent>KEY_DOWN command. I have a question for the experts around here... What I am trying to accomplish is this: I am filling in information on an Emulator screen connected to an AS400. I have an OnEvent>KEY_DOWN waiting for the Enter key to be pressed. The Enter ...
- Fri May 07, 2010 3:05 pm
- Forum: Technical / Scripting
- Topic: I'm stuck because my macro seems to be also...
- Replies: 9
- Views: 10599
Thank you so much JRL - works perfectly. Brilliant... a 'sub' macro that sits there and waits for the message to appear, clears it, stops running, and deletes itself. Any idea what is so special about the message window that comes up? What is different about that message so that I can't hook into it...
- Fri May 07, 2010 2:18 pm
- Forum: Technical / Scripting
- Topic: I'm stuck because my macro seems to be also...
- Replies: 9
- Views: 10599
Thanks, I've tried the RP_WAIT=0 and it's still not working. On my machine, immediately after hitting the OK button to disconnect I get a message opening: http://www264.pair.com/earthspn/message.gif Then the macro stops at this message and I can't seem to hook into the message or find it, anything. ...
- Thu May 06, 2010 10:33 pm
- Forum: Technical / Scripting
- Topic: I'm stuck because my macro seems to be also...
- Replies: 9
- Views: 10599
I'm stuck because my macro seems to be also...
Hello, I'm trying to write a macro that will disconnect a network share that is incorrect. Once I select the drive to disconnect and hit the OK button my script just hangs there and I can't seem to hook into the message box that comes up. The message box is titled 'Disconnect Network Drive' and the ...