Search found 23 matches

by scsnake
06 Oct 2017, 10:37
Forum: AutoHotkey_H
Topic: ;@Ahk2Exe-AddResource LIB looking for standard lib
Replies: 0
Views: 633

;@Ahk2Exe-AddResource LIB looking for standard lib

I often use ahkmini/ahkthread with some #include inside the dynamic script. For example: #persistent ahkmini(" ( #include <testlib> msgbox )") If I want to compile for a single usable executable, I have to let the compiler include testlib in the resource. That is: ;@Ahk2Exe-AddResource LIB FULL/PATH...
by scsnake
02 Oct 2017, 11:10
Forum: Ask For Help
Topic: Firefox Native Messaging Topic is solved
Replies: 5
Views: 1596

Re: Firefox Native Messaging Topic is solved

I tried to use following app as a bridge between Firefox and another AHK script (named FirefoxLogin.exe). So that if the app received message from Firefox (via stdin), it may send the string to FirefoxLogin.exe (via WM_COPYDATA); if FirefoxLogin.exe send a message to app (via WM_COPYDATA), it may se...
by scsnake
01 Oct 2017, 09:31
Forum: Ask For Help
Topic: Firefox Native Messaging Topic is solved
Replies: 5
Views: 1596

Re: Firefox Native Messaging Topic is solved

I'm not using the ping-pong example but I will take a try. Currently I use a compiled VB program as the native application and everything's fine, except that I'm more familiar with AHK and wondering if AHK could do the same (as a message bridge between another main script and the firefox). Thanks an...
by scsnake
01 Oct 2017, 06:19
Forum: Ask For Help
Topic: Firefox Native Messaging Topic is solved
Replies: 5
Views: 1596

Re: Firefox Native Messaging Topic is solved

I can't get it work on firefox 50 or 55 (32bit, portable). I modified the code slightly as shown below. When the firefox opened, it did show "start" and the first tick count but then no further tick count showed. Until I closed the firefox, numerous tick counts showed up for a short time before it's...
by scsnake
23 Aug 2017, 09:38
Forum: Ask For Help
Topic: Scintilla GetText problem
Replies: 0
Views: 273

Scintilla GetText problem

I'm using the Scintilla wrapper from here . And the sample code: #include <SCI> #singleinstance force Gui +LastFound sci := new scintilla(WinExist(), 0, 0, 100, 100) Gui, show, w200 h200 return f2:: sci.gettext(sci.GetLength()+1, Text:="") MsgBox % sci.GetLength() "." Text "." sci.getcharat(0) retur...
by scsnake
22 Jun 2017, 22:01
Forum: AutoHotkey_H
Topic: AhkSelf()
Replies: 6
Views: 1639

Re: AhkSelf()

Is there any documentation for the "sub" function? I thought a subroutine equals to a label ??
by scsnake
28 May 2017, 19:17
Forum: AutoHotkey_H
Topic: AhkSelf()
Replies: 6
Views: 1639

Re: AhkSelf()

Can I call main thread's label/function from subthread? The following script fails to show the msgbox :?: ahkself:=ahkSelf() sub:=ahkmini(" ( #persistent AhkSelf:=CriticalObject(" (&ahkself) ") return sub: ahkself.ahkLabel(""main"") return )") while !sub.ahkReady() Sleep 500 sub.ahkLabel("sub") retu...
by scsnake
25 May 2017, 10:54
Forum: Ask For Help
Topic: Compiled EXE still need library Topic is solved
Replies: 4
Views: 1003

Re: Compiled EXE still need library Topic is solved

I mean maybe hotkey or tool to insert those directives conveniently~
by scsnake
23 May 2017, 20:41
Forum: Ask For Help
Topic: starting slow when run inside SciTE
Replies: 6
Views: 820

Re: starting slow when run inside SciTE

No, I'm wrong. Sometimes it starts slow as usual...
by scsnake
23 May 2017, 20:19
Forum: Ask For Help
Topic: Compiled EXE still need library Topic is solved
Replies: 4
Views: 1003

Re: Compiled EXE still need library Topic is solved

That is very useful! Hope one day these directives can be integrated into SciTE.
by scsnake
23 May 2017, 20:14
Forum: Ask For Help
Topic: starting slow when run inside SciTE
Replies: 6
Views: 820

Re: starting slow when run inside SciTE

That's a good idea but it's the same running from My Documents. However, I deleted AHK_H related library scripts (for AHK_L) in the Lib folder and everything's fine now. Looks like AHK will still search into Lib folder (& subfolders?) even if no library script included?
by scsnake
23 May 2017, 04:00
Forum: Ask For Help
Topic: Compiled EXE still need library Topic is solved
Replies: 4
Views: 1003

Compiled EXE still need library Topic is solved

It seems to be a basic question but I can't find any answer. If I compiled the script (using AHK_H's compiler), the thread inside the EXE (ahkmini/ahkthread) still needs the library scripts. Is it possible for the threads to search for library scripts from those of the main exe?
by scsnake
23 May 2017, 03:56
Forum: Ask For Help
Topic: starting slow when run inside SciTE
Replies: 6
Views: 820

Re: starting slow when run inside SciTE

Mine is Version 3.0.06.01 - Based on SciTE 3.5.1 (I didn't update the SciTE recently). The described phenomenon is not script-dependent. The starting of run/debug is slow even for a simple script like Msgbox Hello. So I think there's something to do with the main EXE (AHK_L or H).
by scsnake
22 May 2017, 21:58
Forum: Ask For Help
Topic: starting slow when run inside SciTE
Replies: 6
Views: 820

starting slow when run inside SciTE

I have AutoHotkey.exe (AHK_H), AutoHotkeyU32.exe (AHK_L) and SciTE folder inside AHK folder. The InternalAHK.exe for SciTE is also AHK_L 1.1.25.02 Unicode. AHK/SciTE are executed from portable flash disk. The OS is Win 7 64bit. Everything is fine for these setting, (probably) until I updated the AHK...
by scsnake
14 May 2017, 01:03
Forum: Ask For Help
Topic: Mouse hook lparam in 64bit
Replies: 1
Views: 337

Mouse hook lparam in 64bit

I'm transforming my scripts to be compatible with 64-bit windows, using AutoHotkey_L (32bit, unicode). I noticed that the mouse coordinate from lParam of MouseHook was wrong in Windows 10 64bit (in Parallel Desktop), which was ok in Win 7 (32bit), using AHK_L (32bit and 64bit both). Is there anythin...
by scsnake
17 Mar 2017, 09:17
Forum: Ask For Help
Topic: Firefox Native Messaging Topic is solved
Replies: 5
Views: 1596

Firefox Native Messaging Topic is solved

I'm studying the native messaging used in Firefox WebExtension, but it only provides example in Python. It says: App side On the application side, you use standard input to receive messages and standard output to send them. Each message is serialized using JSON, UTF-8 encoded and is preceded with a ...
by scsnake
02 Mar 2017, 01:51
Forum: Ask For Help
Topic: Can't debug in SciTE if WNMP activated Topic is solved
Replies: 1
Views: 557

Can't debug in SciTE if WNMP activated Topic is solved

Recently I find that if I start WNMP , I can't debug in the SciTE4AutoHotkey. After hitting the debug button (bug icon), SciTE always shows "An internal error has occurred in the debugger engine", and always when WNMP is activated. Why are these two software interact? Is it possible to fix it? Addit...
by scsnake
08 Dec 2016, 03:24
Forum: Ask For Help
Topic: Can't get ACC object
Replies: 0
Views: 253

Can't get ACC object

I'm studying an application and I use WinSpy++ to analyze the components. In the "All Windows" tree representation, there's a 000810AC TPriorStudyOSTFrame "" and one of its child 00130D1C TPanel "" . I'd like to loop through the acc_children of TPriorStudyOSTFrame and get the TPanel child. However, ...
by scsnake
02 Dec 2016, 10:03
Forum: Ask For Help
Topic: get control name in Win7 64bit
Replies: 13
Views: 1437

Re: get control name in Win7 64bit

This is a nice example of UIAutomation. I've been looking for implementation of UIA in AHK since my first time facing WFA! Although it still return empty in my situation (tested today) and it's a bit slower than the original function, I'm still wondering if there are further documentation or example...
by scsnake
29 Nov 2016, 08:39
Forum: Ask For Help
Topic: get control name in Win7 64bit
Replies: 13
Views: 1437

Re: get control name in Win7 64bit

To be more precisely, I always use a portable AHK (unicode 32bit) from the flash drive, and the script was already compiled. The target control (with dynamic classNN) may be created or destroyed by the target application during the usage, so I have to catch it using the control name. After several t...

Go to advanced search