Jump to content
Sign in to follow this  
snowman533

[solved] how to call a function

Recommended Posts

snowman533

how exactly do i "call a function"?

tried using search but none of the entries answered my question, and i am still a noob on this

tried the help file, but that didnt answer my question either, there were no good examples to work off

how would i go about calling this function?

Func randomnumber()
$LowerLimit = 1
$UpperLimit = 5500

$RandomNumber = Random($LowerLimit,$UpperLimit,1)

MsgBox(0,"Random Number",$RandomNumber)
EndFunc

btw this is for a GUI button

Edited by snowman533

Intermediate AutoIt/Autohotkey User

Share this post


Link to post
Share on other sites
Dampe

;Call the function
randomnumber()

Func randomnumber()
$LowerLimit = 1
$UpperLimit = 5500

$RandomNumber = Random($LowerLimit,$UpperLimit,1)

MsgBox(0,"Random Number",$RandomNumber)
EndFunc


Share this post


Link to post
Share on other sites
snowman533

Thankyou :D

solved


Intermediate AutoIt/Autohotkey User

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.