Sign in to follow this  
Followers 0
Jon

V3.0.103 Unstable

114 posts in this topic

#21 ·  Posted

Updated:

http://www.autoitscript.com/autoit3/files/unstable/autoit/

3.0.103 (18th August, 2004) (Beta)

- Added: Assign()

- Added: ConsoleWrite()

- Changed: (Internal) Unified structure stacks (If, Func, Select, While, Do, For)

- Changed: (Internal) Variant rewrite (now handles int32, int64, double, string data)

Significant internal changes again :ph34r:


Uber promo code for money off the first ride: uberautoit

https://www.flickr.com/photos/jonathanbennett/ 

Share this post


Link to post
Share on other sites



#22 ·  Posted (edited)

Updated:

http://www.autoitscript.com/autoit3/files/unstable/autoit/

3.0.103 (18th August, 2004) (Beta)

- Added: Assign()

- Added: ConsoleWrite()...

<{POST_SNAPBACK}>

Very good! :(:lol:

(Suggestion for the Help docs: Maybe, it would have to be specified that the variable must be declared previously...for Assign()) :ph34r:

Edited by josbe

Share this post


Link to post
Share on other sites

#23 ·  Posted

Oops, I thought I put that in the documentation for Assign(), but I must have forgotten.

Share this post


Link to post
Share on other sites

#24 ·  Posted (edited)

Very good! :lol:  :D

(Suggestion for the Help docs: Maybe, it would have to be specified that the variable must be declared previously...for Assign():ph34r:

<{POST_SNAPBACK}>

I thought: "Finally we can create/assign variables on-the-fly in a loop :( "

Too bad you have the declare the variables first :lol:

Edit:

I was thinking of something like this:

For $i = 1 To 10
Assign("Item" & $i, $i * 10)
MsgBox(0, "", "Item" & $i & ": " & Eval("Item" & $i))
Next
Edited by SlimShady

Share this post


Link to post
Share on other sites

#25 ·  Posted (edited)

I thought: "Finally we can create/assign variables on-the-fly in a loop :( "

Too bad you have the declare the variables first :lol:

<{POST_SNAPBACK}>

We thought the same... :ph34r:

...but, the reason is: var's scope. (I believe)

Edited by josbe

Share this post


Link to post
Share on other sites

#26 ·  Posted

The reason is... I was writing to emulate pointers to objects located on the stack (Declared at compile time), not objects created on the heap (dynamically created at run-time via operator new or malloc). That's thinking in C++ terms, of course.

Share this post


Link to post
Share on other sites

#27 ·  Posted

The reason is... I was writing to emulate pointers to objects located on the stack (Declared at compile time), not objects created on the heap (dynamically created at run-time via operator new or malloc).  That's thinking in C++ terms, of course.

<{POST_SNAPBACK}>

mmm..I see.

In spite of this(declaring first) :ph34r: , I believe that it's useful :(

Share this post


Link to post
Share on other sites

#28 ·  Posted

I can't see any reason to not make Assign create the var in local scope if it doesn't already exist? Maybe an extra parameter to tell it whether or not to create the var?

Assign("var" [, flag])

flag = 0 (default) Create local

flag = 1 Create Global

flag = 2 Fail if not already created

?


Uber promo code for money off the first ride: uberautoit

https://www.flickr.com/photos/jonathanbennett/ 

Share this post


Link to post
Share on other sites

#30 ·  Posted

Sounds good :ph34r:

Share this post


Link to post
Share on other sites

#31 ·  Posted (edited)

Could someone give an example of consolewrite??

EDIT: I see now. Will this soon evolve into true console output?

Edited by this-is-me

Who else would I be?

Share this post


Link to post
Share on other sites

#32 ·  Posted

AutoIt doesn't have a console to write to, it is a Windows application. If launched from a console, it can not write to it because AutoIt itself does not know about the console, nor is there any way that I am aware of for it to find that out.

Share this post


Link to post
Share on other sites

#36 ·  Posted

Extremly cool  :ph34r:  :lol:

Great work Jon and Valik (for the new things)  :(

All Valik's.

I might even get around to the WinList function now. Maybe similar to ProcessList so you get choose which components you want back. There will more data to get back for that though so I will probably do it as a multidimension array rather than a stringsplit friendly one. I may add another option to ProcessList to provide a similar multi dim array too.


Uber promo code for money off the first ride: uberautoit

https://www.flickr.com/photos/jonathanbennett/ 

Share this post


Link to post
Share on other sites

#37 ·  Posted

I may add another option to ProcessList to provide a similar multi dim array too.

<{POST_SNAPBACK}>

I thought about doing that, too, but laziness won out :ph34r:.

Share this post


Link to post
Share on other sites

#38 ·  Posted

:ph34r: me likes, me likes...

hehe, what about making a transparent color? Like for example, the pink color would not show up. This way we could have a custom shaped GUI. Heck, we could also combine it with transparency :(

Share this post


Link to post
Share on other sites

#39 ·  Posted

:ph34r: me likes, me likes...

hehe, what about making a transparent color? Like for example, the pink color would not show up. This way we could have a custom shaped GUI. Heck, we could also combine it with transparency :(

<{POST_SNAPBACK}>

That's easy enough to do, however, I don't see how that is useful at all since you can't specify a bitmap as a background "color" for the GUI. Currently, since you can only change the entire color of the background, if you were to make that color transparent, then you'd essentially have floating controls (I think, I've not actually used that particular feature).

If somebody comes along and makes it so that a bitmap can be set as the background "color" of GUI's, then I'll see about enabling the color transparency part (I'm assuming it's as simple as that...)

Obviously I'm assuming you are talking about making AutoIt's GUI stuff shaped via this method and not other applications.

Share this post


Link to post
Share on other sites

#40 ·  Posted

Well, the purpose would be to make some GUI with custom shape. This would be easy with a black and white bitmap to make the 'holes'. However, I'd like to be able to resize the window and keep the borders with the so caleed shape. Something like WindowBlinds but without the need for such app.

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