Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
simple code not working, please help
#1
Hi i dont know why the IF blocks are not working correctly

I have a win software that has a sort of a table with rows and colums. The content canot be edited but can be copied to clipboard. I need a macro that reads the content of a cell in that table , if its "1 - Paragony - sprzedaż detaliczna - wpłata" then do some action, else press down arrow going to next cell and check content again.

For example i tried to test it in excel, but it doesnt work:
 
Code:
Copy      Help
str s
int w1=act(win("工作簿3 - WPS Office" "OpusApp"))

'Cc            
s.getclip
out s


if s = "1 - Paragony - sprzedaż detaliczna - wpłata"
    'X
    'D              
else
    'D

Thanks for any imput
#2
I guess the program appends newline characters.

Code:
Copy      Help
str s
int w1=act(win("工作簿3 - WPS Office" "OpusApp"))

s.getsel
s.trim
out s


if s = "1 - Paragony - sprzedaż detaliczna - wpłata"
,'X
,'D
else
,'D
#3
Thanks!


Forum Jump:


Users browsing this thread: 1 Guest(s)