Jump to content

silly question (variables and memory)


Recommended Posts

Maybe this question is silly, but I'm still experimenting, and there are many things that I'm not sure how they work.

So the question. Functions like WinGetPos - can be used multiple times like this?

Local $variable1 = WinGetPos(something)

Local $variable2 = WinGetPos(somethingelse)

...

?

I mean - will variables remember these selections after the function is re-triggered on something else?

functional testing. multimedia recording. flowstone. mouseclick, hotkeys and modularity in general.

Link to comment
Share on other sites

 I would say the question is only silly because it would have been quicker to just run those lines and check.

Edited by boththose

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

@boththose - few posts ago I had an ambiguous situation with variables, that sometimes worked, sometimes not, although it was wrong at all. Besides reading and understanding are two separate things; not everyone comes from typical programming industry. So I just wasn't sure whether something happens to variable's content when reusing the same function (like WinGetPos) in conjunction with other variables after it. When I want to fill some matrix of variables with different data - I wish these data stay there, and not change.

Thanks for clarification.

functional testing. multimedia recording. flowstone. mouseclick, hotkeys and modularity in general.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...