ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!

Jump to content



Photo

[AutoIT] Send() Issue


  • Please log in to reply
[AutoIT] Send() Issue

#1

Vient
Vient
    Offline
    0
    Rep
    1
    Likes

    Lurker

Posts: 9
Threads: 1
Joined: Apr 06, 2019
Credits: 0
Five years registered
#1

I have a problem with using Send() in my function.

I want to create simple move function with 3 variables:

- Direction

- How many times the key will be pressed

- How much timeout will be between each click

 

I can't figure out how I'm supposed to merge string with a variable inside Send().

Tried different syntax few times but I run out of ideas. I also couldn't find a clue inside documentation of Send function (not telling that there isn't).

Here's how it looked in my last try to give you some insight what I have in mind.

 

aMmDTDv.png


  • 0

#2

tonu96
tonu96
    Offline
    6
    Rep
    40
    Likes

    Addicted

Posts: 211
Threads: 6
Joined: Mar 12, 2019
Credits: 0
Five years registered
#2

I have a problem with using Send() in my function.

I want to create simple move function with 3 variables:

- Direction

- How many times the key will be pressed

- How much timeout will be between each click

 

I can't figure out how I'm supposed to merge string with a variable inside Send().

Tried different syntax few times but I run out of ideas. I also couldn't find a clue inside documentation of Send function (not telling that there isn't).

Here's how it looked in my last try to give you some insight what I have in mind.

 

aMmDTDv.png

 

Based on the documentation at https://www.autoitsc...ctions/Send.htm it looks like you need to add a space before the "down" and "up" strings. Basically, in your example you're telling it to press "{LEFTdown}" and "{LEFTup}" which are invalid.


  • 1

#3

RileyRiet
RileyRiet
    Offline
    1
    Rep
    0
    Likes

    Addicted

  • PipPipPipPipPip
Posts: 174
Threads: 8
Joined: Jan 25, 2020
Credits: 0
Deal with caution
User has an open scam report.
Four years registered
#3

Im afraid you will have to use ENUMS for this one


  • 0

#4

Jeinerma
Jeinerma
    Offline
    0
    Rep
    0
    Likes

    New Member

  • PipPip
Posts: 12
Threads: 0
Joined: Feb 04, 2020
Credits: 0
Four years registered
#4

thanks


  • 0


 Users browsing this thread: