[Class] Console - Standardized Console GUI with Methods

Post your working scripts, libraries and tools for AHK v1.1 and older
User avatar
tidbit
Posts: 1273
Joined: 29 Sep 2013, 17:15
Location: USA

Re: [Class] Console - Standardized Console GUI with Methods

15 Mar 2014, 09:20

right-click adds some extra features without effort! Like printing.

Also, you can zoom in/out using ctrl+mouse wheel.
rawr. fear me.
*poke*
Is it December 21, 2012 yet?
User avatar
AfterLemon
Posts: 85
Joined: 30 Sep 2013, 14:27
Location: Ohio, USA

Re: [Class] Console - Standardized Console GUI with Methods

15 Mar 2014, 10:34

Thank you Sjc1000. We did, in fact, talk about the use of the right-click menu. We want this console to serve as great a purpose as it can, so we decided to leave that feature in. In fact, the ability to save information to it and print directly from the control is pretty useful.

I appreciate the heads-up about the options for it, though. Keep up the good work guys! I might be able to code, but I don't have nearly as many good ideas as you all.
HOME: Windows 11 Pro | AMD Ryzen 7 5800X 8-Core @ 4.50GHZ | 64GB RAM
MOBILE: Samsung Galaxy Note 10+
User avatar
cyruz
Posts: 346
Joined: 30 Sep 2013, 13:31

Re: [Class] Console - Standardized Console GUI with Methods

14 Apr 2014, 10:14

Fast request, if doable :)

Give automatically focus to the console when the mouse is on top, to ease scrolling operations. Writing something returns the scrolling to the edit field automatically.
ABCza on the old forum.
My GitHub.
User avatar
tidbit
Posts: 1273
Joined: 29 Sep 2013, 17:15
Location: USA

Re: [Class] Console - Standardized Console GUI with Methods

20 Apr 2014, 16:31

That would require event listeners (onmessage or settimer) to constantly be running. We wanted to avoid that as it would possibly interfere with your main program.
rawr. fear me.
*poke*
Is it December 21, 2012 yet?
bobc119
Posts: 23
Joined: 10 Jan 2014, 17:02

Re: [Class] Console - Standardized Console GUI with Methods

02 Jul 2014, 20:20

Thank you both for such a helpful tool! I have used this every single day since I found it.

I'm sure you're probably aware, but I wanted to make sure: it gives an error when you have a COM object stored in an object and you try to append/log the object:

Code: Select all

Class_Console("the_debug_console",100,100,800,735)
the_debug_console.Show()

the_excel_COM_object 				:= ComObjActive( "Excel.Application" )

my_object  							:= Object()

the_debug_console.append( "the COM object by itself: ")
the_debug_console.append( the_excel_COM_object )
the_debug_console.append( "now the Object: ")

my_object["A String"] 				:= "my string"
my_object["A Number"] 				:= 11
my_object["excel application"] 		:= the_excel_COM_object
my_object["excel workbook"] 		:= the_excel_COM_object.Workbooks(1)
my_object["excel sheet"] 			:= the_excel_COM_object.Workbooks(1).Worksheets(1)

the_debug_console.append( my_object )
;the_debug_console.log( my_object )

my_object["excel sheet"].Range("A1").value := "test"

the_excel_COM_object := ""
I tried to attach an image of the error. The first error makes sense, you would never try to get the "value" of the COM object. But often I'll store Excel COM objects in the same object as other variables that all relate to each other as a way of keeping things connected and organized. Just wanted to bring it to your attention.

Thanks to you both, this is an amazing tool!
Attachments
Console_Error.jpg

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: No registered users and 194 guests