Guest loser182 Posted February 28, 2005 Posted February 28, 2005 (edited) 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. Edited February 28, 2005 by loser182
CyberSlug Posted February 28, 2005 Posted February 28, 2005 Send($number) only use quotation marks if you want literal text Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
SlimShady Posted February 28, 2005 Posted February 28, 2005 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)
Guest loser182 Posted February 28, 2005 Posted February 28, 2005 Thanks for the quick replies! Slim shady, the code you posted didn't work, it just opened a mesagbox saying "$number * 10500 = 10500"
SlimShady Posted February 28, 2005 Posted February 28, 2005 It's an example. It shows that AutoIt can solve equations just like Windows Calculator can.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now