Jump to content
Sign in to follow this  
Guest loser182

'sending' a variable.

Recommended Posts

Guest loser182

First heres the code:

$number = InputBox("Darkwars help", "Please type in how much money you want to spend and click OK")

run("calc.exe")

WinWaitActive("Calculator")

Send("$number")

Send("{*}")

send("10500 {enter}")

What it I'm using it for,

One of those online rpg type games, I was trying to make it where it would tell how many of the main item you can buy. but when I try to get it to "send($number") I get an error because instead of send $number's value, it's send the actual word.

Any help would be greatly appreciated.

:lmao:

Edited by loser182

Share this post


Link to post
Share on other sites

Change: Send("$number")

to: Send($number)

Tip:

Use AutoIt to solve equations.

I'll use your script to show you.

$number = InputBox("Darkwars help", "Please type in how much money you want to spend and click OK")
MsgBox(64, "Test", "$number * 10500 = " & $number * 10500)

Share this post


Link to post
Share on other sites
Guest loser182

Thanks for the quick replies!

Slim shady, the code you posted didn't work, it just opened a mesagbox saying "$number * 10500 = 10500"

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...