Administrators Jon Posted August 18, 2004 Author Administrators Share Posted August 18, 2004 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 Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Josbe Posted August 18, 2004 Share Posted August 18, 2004 (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! (Suggestion for the Help docs: Maybe, it would have to be specified that the variable must be declared previously...for Assign()) Edited August 18, 2004 by josbe AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
Valik Posted August 18, 2004 Share Posted August 18, 2004 Oops, I thought I put that in the documentation for Assign(), but I must have forgotten. Link to comment Share on other sites More sharing options...
SlimShady Posted August 18, 2004 Share Posted August 18, 2004 (edited) Very good! (Suggestion for the Help docs: Maybe, it would have to be specified that the variable must be declared previously...for Assign()) <{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 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 August 18, 2004 by SlimShady Link to comment Share on other sites More sharing options...
Josbe Posted August 18, 2004 Share Posted August 18, 2004 (edited) I thought: "Finally we can create/assign variables on-the-fly in a loop " Too bad you have the declare the variables first <{POST_SNAPBACK}>We thought the same... ...but, the reason is: var's scope. (I believe) Edited August 18, 2004 by josbe AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
Valik Posted August 18, 2004 Share Posted August 18, 2004 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. Link to comment Share on other sites More sharing options...
Josbe Posted August 18, 2004 Share Posted August 18, 2004 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) , I believe that it's useful AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
Administrators Jon Posted August 19, 2004 Author Administrators Share Posted August 19, 2004 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 ? Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Holger Posted August 19, 2004 Share Posted August 19, 2004 Sounds good Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Link to comment Share on other sites More sharing options...
SlimShady Posted August 19, 2004 Share Posted August 19, 2004 Sounds good Link to comment Share on other sites More sharing options...
this-is-me Posted August 19, 2004 Share Posted August 19, 2004 (edited) Could someone give an example of consolewrite?? EDIT: I see now. Will this soon evolve into true console output? Edited August 19, 2004 by this-is-me Who else would I be? Link to comment Share on other sites More sharing options...
Valik Posted August 19, 2004 Share Posted August 19, 2004 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. Link to comment Share on other sites More sharing options...
Administrators Jon Posted August 19, 2004 Author Administrators Share Posted August 19, 2004 Updated:http://www.autoitscript.com/autoit3/files/unstable/autoit/Changed the Assign() functionAdded ProcessList() and WinSetTrans() Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Josbe Posted August 19, 2004 Share Posted August 19, 2004 Updated: http://www.autoitscript.com/autoit3/files/unstable/autoit/ Changed the Assign() function Added ProcessList() and WinSetTrans() <{POST_SNAPBACK}>Very cool, works like a charm!! (Three good shots! ) AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
Holger Posted August 19, 2004 Share Posted August 19, 2004 Extremly cool Great work Jon and Valik (for the new things) Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Link to comment Share on other sites More sharing options...
Administrators Jon Posted August 19, 2004 Author Administrators Share Posted August 19, 2004 Extremly cool 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. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Valik Posted August 19, 2004 Share Posted August 19, 2004 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 . Link to comment Share on other sites More sharing options...
Abilio_KID Posted August 19, 2004 Share Posted August 19, 2004 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 Link to comment Share on other sites More sharing options...
Valik Posted August 19, 2004 Share Posted August 19, 2004 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. Link to comment Share on other sites More sharing options...
Abilio_KID Posted August 19, 2004 Share Posted August 19, 2004 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now