Hello,
I want to update some data fields without user interaction, which means there is a need for some kind of process running aside being able to grab data and update fields or any other objects. Is there a way to do that?
Thank you
Update fields without user interaction
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Update fields without user interaction
Nicolas
LC 7.1 on Windows 8.1 and on MAC OS 10.10.5 Xcode 6.4 - 7.1
LC 7.1 on Windows 8.1 and on MAC OS 10.10.5 Xcode 6.4 - 7.1
Re: Update fields without user interaction
Hi.
It may matter greatly how this new data is acquired. But in the meantime, on a new card, make a field and a button. In the button script:
If you click the button and move the mouse around, you will see the mouseLoc appear in the field every half second. You can escape by holding the optionKey down for just a little while. But is this what you meant by:
Craig Newman
It may matter greatly how this new data is acquired. But in the meantime, on a new card, make a field and a button. In the button script:
Code: Select all
on mouseUp
runFieldUpdater
end mouseUp
on runFieldUpdater
if the optionkey is down then exit runFieldUpdater
put the mouseLoc into fld 1 --this could be anything at all
send "runFieldUpdater" to me in 30
end runFieldUpdater
Anyway, the process runs in the "background" and is not blocking.update some data fields without user interaction,
Craig Newman
Re: Update fields without user interaction
Hi Craig,
Thanks for the code snippet. Yes you're right I should have said how data is acquired. In this case, data is acquired by executing a put URL and then parsing the XML response
Nicolas
Thanks for the code snippet. Yes you're right I should have said how data is acquired. In this case, data is acquired by executing a put URL and then parsing the XML response
Nicolas
Nicolas
LC 7.1 on Windows 8.1 and on MAC OS 10.10.5 Xcode 6.4 - 7.1
LC 7.1 on Windows 8.1 and on MAC OS 10.10.5 Xcode 6.4 - 7.1
Re: Update fields without user interaction
OK.
So does the snippet I give you enough ammunition to proceed with your project?
Craig
So does the snippet I give you enough ammunition to proceed with your project?
Craig
Re: Update fields without user interaction
So far yes. I'll write back if I face difficulties.
Thanks again
Nicolas
Thanks again
Nicolas
Nicolas
LC 7.1 on Windows 8.1 and on MAC OS 10.10.5 Xcode 6.4 - 7.1
LC 7.1 on Windows 8.1 and on MAC OS 10.10.5 Xcode 6.4 - 7.1