LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

AutoIT Keypress Unstable

Hi all,

I am trying to create a program to help me book a transportation through a website.

In order to automate the process, i use AutoIT to help me complete the key press and complete the booking.

 

However, i found that the AutoIT keypress send is sometimes unstable. For example, when i want to press down for 3 times, i send {DOWN 3} but what i have seen is it clicked 16 times instead of 3 sometimes.

 

I have attached my source code here. Can anyone please advise on how to avoid this condition from happening? Thanks in advance.

0 Kudos
Message 1 of 3
(2,199 Views)

"When your Only Tool is a Hammer, Every Problem is a Nail".  This sounds like a situation where some other language than LabVIEW, a Laboratory Visual Instrument Engineering Workbench, would be better suited.  There is no Laboratory, no Visual Instrument, and no Engineering Workbench in this problem.  Sorry ...

 

Bob Schor

0 Kudos
Message 2 of 3
(2,174 Views)

I have used AutoIT within LabVIEW successfully for years.

Not sure if this makes a difference but I write an ".ahk" file dynamically within LabVIEW and then execute that file via the System Exec.vi.

0 Kudos
Message 3 of 3
(2,160 Views)