02-10-2020, 12:01 PM
Ultimately what I needed was the url put into a str var. I used this code to accomplish that, if there is another (better) solution let me know please.
str s10 s11
_s="curl https://image.groupme.com/pictures -X POST -H ''X-Access-Token: 2lN1UI55cjT2yFKU8icjlIIZ4gNDnV9nfQeP5kd'' -H ''Content-Type: image/jpeg'' --data-binary @C:\Users\jim\Pictures\GroupMe\example.png"
RunConsole2(_s s10 "" 0x200)
if s10
findrx(s10 "''url'':''(.+)'',''(.+)''" 0 0 s11 1)
else
out "error"
out s11
str s10 s11
_s="curl https://image.groupme.com/pictures -X POST -H ''X-Access-Token: 2lN1UI55cjT2yFKU8icjlIIZ4gNDnV9nfQeP5kd'' -H ''Content-Type: image/jpeg'' --data-binary @C:\Users\jim\Pictures\GroupMe\example.png"
RunConsole2(_s s10 "" 0x200)
if s10
findrx(s10 "''url'':''(.+)'',''(.+)''" 0 0 s11 1)
else
out "error"
out s11