Search found 41 matches

by hobboy
10 Jul 2016, 04:35
Forum: Scripts and Functions
Topic: [Class] LV_Colors - 1.1.04.01 (2016-05-03)
Replies: 134
Views: 37740

Re: [Class] LV_Colors - 1.1.04.01 (2016-05-03)

That works great! Thanks again :)
by hobboy
10 Jul 2016, 03:56
Forum: Scripts and Functions
Topic: [Class] LV_Colors - 1.1.04.01 (2016-05-03)
Replies: 134
Views: 37740

Re: [Class] LV_Colors - 1.1.04.01 (2016-05-03)

first of all, I cannot see the advantage of a separate method or an additional parameter. Are you using variadic method calls? No, I'm not using variadic method calls (not too familiar with them). Is there a way to do this toggle with the current version of your code that I missed? I use the toggle...
by hobboy
10 Jul 2016, 03:13
Forum: Scripts and Functions
Topic: [Class] LV_Colors - 1.1.04.01 (2016-05-03)
Replies: 134
Views: 37740

Re: [Class] LV_Colors - 1.1.04.01 (2016-05-03)

Thanks for the script just me, it's incredibly helpful I have a suggested addition, what I wanted to do was toggle the colour of a row between on and off. All I did was change This["Rows"].Remove(Row, "") to If (ToggleColor and This["Rows"].HasKey(Row)) { This["Rows"].Remove(Row, "") return true } T...
by hobboy
19 Jun 2016, 03:25
Forum: Scripts and Functions
Topic: GetActiveObjects - Get multiple active COM objects
Replies: 23
Views: 12444

Re: GetActiveObjects - Get multiple active COM objects

Ok... so I discovered how to get multiple instances of my program detected. For some reason I need to open both instances of the program basically at the same time, ie open the 2nd one while the 1st was loading. lexikos' script works great :superhappy: Just in case anyone ever runs into the same iss...
by hobboy
17 Jun 2016, 07:39
Forum: Ask For Help
Topic: Sending pointers to COM function
Replies: 0
Views: 309

Sending pointers to COM function

I have a COM object with the function GetPosition(short* Row, short* Col) I'm trying to call this function however I'm getting the error "Type mismatch". Here is my code: VarSetCapacity(pRow, A_PtrSize,0) NumPut(0,pRow,0,"short*") VarSetCapacity(pCol, A_PtrSize,0) NumPut(0,pCol,0,"short*") MyObj.Get...
by hobboy
16 Jun 2016, 18:59
Forum: Scripts and Functions
Topic: GetActiveObjects - Get multiple active COM objects
Replies: 23
Views: 12444

Re: GetActiveObjects - Get multiple active COM objects

Although I don't think there's any requirement for the display name to be unique, it sounds to me like your application is just registering the same object twice. (Or maybe it fails because the name is not unique?) I doubt there's anything you can do, aside from contacting the developer. edit:rerea...
by hobboy
16 Jun 2016, 09:01
Forum: Ask For Help
Topic: Alternative approach to GetActiveObjects, trouble with DllCalls
Replies: 0
Views: 496

Alternative approach to GetActiveObjects, trouble with DllCalls

The following code is based off lexikos' GetActiveObjects() and I've made a few changes to try an alternative approach (which may or may not work, I'm new to DllCalls). I'm looking for a different approach because I can't seem to get the COM object for a second instance of an application. I asked so...
by hobboy
16 Jun 2016, 04:17
Forum: Scripts and Functions
Topic: GetActiveObjects - Get multiple active COM objects
Replies: 23
Views: 12444

Re: GetActiveObjects - Get multiple active COM objects

I've had a bit more of a look into this and have tried to understand the GetActiveObjects script. In the GetObject documentation it states: Generally, you call the IRunningObjectTable::GetObject method only if you are writing your own moniker class (that is, implementing the IMoniker interface). You...
by hobboy
15 Jun 2016, 00:18
Forum: Scripts and Functions
Topic: GetActiveObjects - Get multiple active COM objects
Replies: 23
Views: 12444

Re: GetActiveObjects - Get multiple active COM objects

Thanks for the script lexikos, that's very handy. Unfortunately I can't seem to get this working correctly with the application I'm using, running two at once. I'll Call the application ComObjType "MyAppType" The first issue I have is with the associative array. For both instances of the application...
by hobboy
08 May 2016, 22:25
Forum: Wish List
Topic: ahk.deb
Replies: 4
Views: 2153

Re: ahk.deb

Yeah I'm confused, they have other posts here which I don't really understand as well https://autohotkey.com/boards/viewtopic.php?f=18&t=17553&p=85475#p85475 https://autohotkey.com/boards/viewtopic.php?f=2&t=17441 They linked to a wordpress website and I had trouble understanding that (although I do...
by hobboy
23 Mar 2016, 21:45
Forum: Ask For Help
Topic: Issue with associative array declaration is class Topic is solved
Replies: 1
Views: 448

Issue with associative array declaration is class Topic is solved

When I use the explicit bracket syntax the following code works. Note that I want this declaration in the main body of the class rather than a function. class cTest { MyVar := {foo: "bar"} } MyTest := new cTest FileAppend % MyTest.MyVar["foo"] "`n",* However this syntax gets cluttered quickly for la...
by hobboy
21 Feb 2016, 20:45
Forum: Ask For Help
Topic: SB_SetIcon without old icon destroying
Replies: 1
Views: 507

Re: SB_SetIcon without old icon destroying

Here's what I've settled on for now. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. #Warn ; Enable warnings to assist with detecting common errors. #SingleInstance Force SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. Gui New Gui Add, S...
by hobboy
21 Feb 2016, 08:16
Forum: Ask For Help
Topic: SB_SetIcon without old icon destroying
Replies: 1
Views: 507

SB_SetIcon without old icon destroying

SB_SetIcon is great, and has allowed my to easily to make the following: sb_2.PNG However I would prefer that the image handle wasn't destroyed. My statusbar will change icon quite frequently so I want to avoid loading the icon file too often since the icon file is on network drive and may occasiona...
by hobboy
21 Feb 2016, 07:18
Forum: SciTE4AutoHotkey
Topic: Improved auto-complete for SciTE
Replies: 14
Views: 12099

Re: Improved auto-complete for SciTE

This sounds great! I'll give it a go
by hobboy
21 Feb 2016, 07:14
Forum: Forum Issues
Topic: Old forum appears on google search
Replies: 3
Views: 1442

Old forum appears on google search

Thought I'd point out that when I google phrases such as "ahk forum, autohotkey forum, ahk boards, ... " I get something like the image below, which links to the old forum. The "Forum" sublink in the image goes to the new forum, but apart from that the new forum doesn't appear on the first page for ...
by hobboy
25 Jan 2016, 05:45
Forum: AHK Studio
Topic: AHK Studio
Replies: 1079
Views: 335505

Re: AHK Studio

Just trying out this program and it's great! I read in one of the posts on the old forum: https://autohotkey.com/board/topic/85996-ahk-studio/page-16 0.100.32 Added: -OutputDebug support: Not quite as stable as I would like it, but I need some feedback to see if it works for others 0.100.31 Added: -...
by hobboy
21 Jan 2016, 05:17
Forum: Ask For Help
Topic: [Solved] GuiControl Move shows white border on resized Progress bars?
Replies: 17
Views: 3176

Re: [Solved] GuiControl Move shows white border on resized Progress bars?

But which behaviour are you talking about? That the control appears to gain a border when it is resized, or that it doesn't have a border until then? I don't see a "white border" as originally described; I see (on Windows 10) a "three-dimensional border style" just as described in the documentation...
by hobboy
21 Jan 2016, 02:19
Forum: Ask For Help
Topic: [Solved] GuiControl Move shows white border on resized Progress bars?
Replies: 17
Views: 3176

Re: [Solved] GuiControl Move shows white border on resized Progress bars?

Sorry for reopening this thread again, but since it was recent and exactly what I was looking for I wanted to add this on. Do you think this is a bug or intended behaviour? Here's a simple script to replicate the border creation issue. Options := "w60 BackgroundBlue" Gui, Add, Progress, %Options% hw...
by hobboy
12 Jan 2016, 06:59
Forum: Ask For Help
Topic: Getting nonstandard statusbar text
Replies: 0
Views: 422

Getting nonstandard statusbar text

I'm trying to retrieve the length of text from the statusbar in an external program but can't get this to work. Ultimately I want to get the text, but I think I need to get this correct first. The ClassNN of the statusbar is StatusBarWndClass2 and the wparam I believe is 0 (that's what winspector sa...
by hobboy
05 Jan 2016, 19:37
Forum: SciTE4AutoHotkey
Topic: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]
Replies: 802
Views: 399381

Re: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]

This is a long standing problem when debugging using this editor. If you move this window to one side, you will usually see that there is a 'warn' window behind which shows the actual bug in your code. Although with the simple example there doesn't appear to be an problem (even with warn on), it ce...

Go to advanced search