Sign in to follow this  
Followers 0
snowman533

[solved] how to call a function

3 posts in this topic

#1 ·  Posted (edited)

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



;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

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  
Followers 0