Jump to content
Sign in to follow this  
acgarlick

How do I convert this?

Recommended Posts

acgarlick

Found this code from Autohotkey but I'm not sure how to make it work for autoit?

SendInput, %MyNumber%

if (MyNumber < 12000) {

MyNumber += 1

} else {

MyNumber = 10000

Thank you

Share this post


Link to post
Share on other sites
boomingranny

I have never used autohotkey,

What is it meant to do?

Edited by boomingranny

Share this post


Link to post
Share on other sites
JLogan3o13

Hi, acgarlick, welcome to the forum. We tend to take the "teach a man to fish" philosophy around here, rather than just writing your code for you. Take a look at your code below, and the relative areas in the Help file. Once you have given it a go, feel free to come back and ask questions if you get stuck ;)

SendInput, %MyNumber% <--Check our Send and ControlSend in the Help file. Also take a look at the Variables section for creating variables and assigning value.

if (MyNumber < 12000) {

MyNumber += 1

} else { <--Check out the If...Then and If..Then...ElseIf...Else...EndIf topics in the Help file.

MyNumber = 10000


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
AlmarM

Global $iMyNumber = InputBox("", "Please enter your number.")

Send($iMyNumber)

If ($iMyNumber < 12000) Then
    $iMyNumber += 1
Else
    $iMyNumber = 10000
EndIf


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

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  

×