Jump to content
Sign in to follow this  

Varible = variable?

Recommended Posts


so if i said

$1 = GUIctrlcreatebutton(???)

How would i make my parameters so that i could later say...

$B1 = $1(???)

and how would any parameters come after that?

also, with that on my mind, can i get an indepth explination of

$msg = GUIgetmsg




case $msg[0]

Share this post

Link to post
Share on other sites

Guictrlcreatebutton returns a handle to the button, think of it as a reference number

you can then move that number around like any other number, but you cant use it like a button, you need to pass that number to functions that do the work, like $text = guictrlgettext($1)

$msg = GuiGetMsg() gets another handle, but this time to an event on a control, it returns ( I think ) the handle to the control, so you can do the comparisons. $msg[0] is when you have multiple windows, with controls on each, it allows you to pick your window (1,2,3,etc) then get the msg for that window.


P.S. you need to understand functions, such as GuiCtrlCreateButton(), which RETURN data when you set them to a variable, you cant assign the action that the function does to the variable, just it's return value.

example! it's fake, dont try it, it's just for explanation.

$count = NumberOfProcsInASingleProcessorSystem()

$count will equal 1 :rambo:

Edited by Zacharot

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.