Recent

Author Topic: How to do a phone vibration  (Read 673 times)

kristof.project

  • New Member
  • *
  • Posts: 16
How to do a phone vibration
« on: April 23, 2021, 05:26:21 pm »
hello,

I try to create an application for "Shoping". I use to BareCodeScanner without probleme at this time.
Is it possible to have phone vibration on scan result ?
And is there a wiki or pdf for the component ?

Thank for your Help



 
Kubuntu 21.04
LAMW 0.8.06
Lazarus 2.0.10

rsu333

  • Jr. Member
  • **
  • Posts: 52
Re: How to do a phone vibration
« Reply #1 on: April 25, 2021, 08:32:24 am »
Try this code
after  completion of  your desired process you can add following code
self.vibrate( duration in milisec)
Thanks LAMW LAZARUS

kristof.project

  • New Member
  • *
  • Posts: 16
Re: How to do a phone vibration
« Reply #2 on: April 26, 2021, 03:29:57 pm »
thank you

exactly i want.
with sleep, i can do a double if produit found and single for not found.
Kubuntu 21.04
LAMW 0.8.06
Lazarus 2.0.10

rsu333

  • Jr. Member
  • **
  • Posts: 52
Re: How to do a phone vibration
« Reply #3 on: April 28, 2021, 08:41:31 am »
ok,
Actually LAMW and LAZARUS provide us so may things freely ,I like to study LAZARUS and LAMW thoroughly .
THANKS   to LAMW-LAZARUS

 

TinyPortal © 2005-2018