The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Writing string to file from Array.
#1
I am trying to setfile a str.
Not sure why it's not working. Code - output - and file, below:

CODE:
Macro Macro7
Code:
Copy      Help
out
ARRAY(int) a; int i; str sc sn
out "[][9]ALL VISIBLE WINDOWS"
win("" "" "" 0 0 0 a)
for(i 0 a.len)
,sc.getwinclass(a[i])
,sn.getwintext(a[i])
,out "%i '%s' '%s'" a[i] sc sn
,sn.setfile("C:\wn.txt" 0 -1)

OUTPUT:

Start

QM TOOLBAR
Quick Macros - Main - [Macro6]
QM Help
Quick Macros Forum • Index page - Google Chrome
Local Disk (CSmile
UT
OC
Program Manager

FILE:

Program Manager


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)