sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #43464
[Question #655430]: paste numeric value from excel cell to notepade
New question #655430 on Sikuli:
https://answers.launchpad.net/sikuli/+question/655430
I am new in Sikuli. My code is
import xlrd
file_loc="C:\Users\Samiran_PC\Desktop\excel example\zone-change.xlsx"
workbook=xlrd.open_workbook(file_loc)
sheet=workbook.sheet_by_index(0)
totalrow=sheet.nrows
totalcol=sheet.ncols
celltype=sheet.cell_type(2,0)
value=sheet.cell_value(2,0)
openApp("notepad")
wait(5)
value1=str(value)
paste(value1)
now on the cell (2,0) it contains a 9 digit number without any decimal point. but when it paste the value on note pad it contains a decimal point as 342019852.0 .how can i paste the value without decimal point?
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.