Search found 53 matches

by Heezea
19 Dec 2018, 14:09
Forum: Ask For Help
Topic: Excel UDF Add-in with AHK
Replies: 0
Views: 252

Excel UDF Add-in with AHK

Is it possible to write an Excel Add-in with UDFs (user defined formulas) in AHK? I guess the recommended C# or VSTO method to make an excel add-in results in an XLL (just a renamed DLL file). I couldn't find any topics on this via Google or the Forum's search. Everything I found relates to changing...
by Heezea
11 Sep 2018, 15:59
Forum: AHK Studio
Topic: Ctrl+C to copy line - code edit
Replies: 2
Views: 787

Re: Ctrl+C to copy line - code edit

I wanted this to work how it works in SciTE4AHK and, I think, most other editors (tried and confirmed in atom and sublimetext). The way I'm accustomed to it working is: 1. Ctrl+c pressed on a line of text with nothing selected. 2. Ctrl+v pressed on a line of text with nothing selected. This would in...
by Heezea
11 Sep 2018, 11:28
Forum: AHK Studio
Topic: Ctrl+C to copy line - code edit
Replies: 2
Views: 787

Ctrl+C to copy line - code edit

With nothing selected, I wanted Ctrl+c to copy the entire line. This can be done by searching the AHKStudio code for 2178 and replacing with 2519. There is only one occurrence to change. This works because In Scintilla, the code for "CopyAllowLine" is 2519. Please see http://www.scintilla.org/Comman...
by Heezea
21 Feb 2018, 15:31
Forum: Scripts and Functions
Topic: Lintalist 1.9 Searchable interactive lists to copy & paste text with plugins
Replies: 142
Views: 41753

Re: Lintalist 1.9 Searchable interactive lists to copy & paste text with plugins

This is an amazing script, thanks so much. I'm having a problem adding a single space at the end of a snippet. I was hoping to use the abbreviation and then just keep on typing on completion of the phrase. Interestingly, if I put more than one space, everything works fine. Edit: Seems to be in Micro...
by Heezea
19 Jun 2016, 11:26
Forum: Ask For Help
Topic: Loop through MS Word Object (StoryRanges) Using For Loop
Replies: 3
Views: 998

Re: Loop through MS Word Object (StoryRanges) Using For Loop

This doesn't work either; well it works on the very first section or when A_Index is 1 or when it's the first loop. On the second iteration it gives error message of "The requested member of the collection does not exist." This is weird because the .Count returns however many sections there are and ...
by Heezea
18 Jun 2016, 10:15
Forum: Ask For Help
Topic: Loop through MS Word Object (StoryRanges) Using For Loop
Replies: 3
Views: 998

Loop through MS Word Object (StoryRanges) Using For Loop

Hey guys, could anybody please help me with figuring out how to loop through the StoryRanges object in MS Word? The testing code is located below. It fails at "For myStoryRange, In StoryRange" with the error message '_NewEnum' is not a method. ^Space:: oWord := ComObjActive("Word.Application") Story...
by Heezea
01 Dec 2015, 08:58
Forum: Development
Topic: [AHK Test Build - 5th Nov 2015] Scrollbars, GuiControl Auto-Position+Size system, and more!
Replies: 51
Views: 26467

Re: [AHK Test Build - 5th Nov 2015] Scrollbars, GuiControl Auto-Position+Size system, and more!

Guys, amazing job. I'm holding out finishing a script until this makes it into the mainstream AHK version. Thanks so much for the effort, it's looking sweet. Is it possible to use this so that when you are holding down the left mouse button (as if dragging an icon) and you move towards the edge of t...
by Heezea
22 Oct 2015, 10:21
Forum: Ask For Help
Topic: how to dection the input of Chinese
Replies: 7
Views: 2440

Re: how to dection the input of Chinese

Sorry about that, I'm not getting good results either. We'll need somebody else to jump in, I'm stuck. I tried the following, but none worked. I attached a screenshot of the results, but *I think* AHK is translating the Chinese symbols into ASCII characters. i := 0 i++, Test%i% := "aaaccc我但是对于女孩子有工作...
by Heezea
20 Oct 2015, 08:13
Forum: Ask For Help
Topic: how to dection the input of Chinese
Replies: 7
Views: 2440

Re: how to dection the input of Chinese

I'd try a RegExMatch against the input. I found some reference material for the \P{Han} character parameter here: http://www.pcre.org/pcre.txt

Code: Select all

Test := "键"
Test := RegExMatch(Test, "\P{Han}")
MsgBox, 0x40000,, % Test, 2
ExitApp
by Heezea
19 Oct 2015, 17:53
Forum: Ask For Help
Topic: Simulate CTRL+Double-Click with Middle-Click [SOLVED]
Replies: 3
Views: 1012

Re: Simulate CTRL+Double-Click with Middle-Click

Try this:

Code: Select all

#IfWinActive ahk_class CabinetWClass
~MButton::
	if (A_PriorHotkey <> "~MButton" or A_TimeSincePriorHotkey > 200)
	{
		KeyWait, Esc
		return
	}	
	SendInput {LButton}
	Sleep 100
	Send ^{Enter}
return
by Heezea
19 Oct 2015, 17:39
Forum: About This Community
Topic: Forum upgraded to phpBB v3.1.x
Replies: 177
Views: 117030

Re: Forum upgraded to phpBB v3.1.x

Perfect guys, clicking on the original link (http://ahkscript.org/boards3/viewtopic.php?f=5&t=9772&e=1&view=unread#unread) now takes me to the right post. I noticed that the link in the email I received in reply to this thread (http://ahkscript.org/boards/viewtopic.php?f=2&t=7447&e=1&view=unread#unr...
by Heezea
19 Oct 2015, 16:58
Forum: About This Community
Topic: Forum upgraded to phpBB v3.1.x
Replies: 177
Views: 117030

Re: Forum upgraded to phpBB v3.1.x

Sure thing, see attached. Well, that's one of me clicking via the Gmail link. If i'm on a thread and I replace "autohotkey.com" with "ahkscript.org", that seems to be working now. Uh, also, when I add an attachment and then preview the thread, it drops the attachment? Actually, I can't attach the fi...
by Heezea
19 Oct 2015, 09:01
Forum: Ask For Help
Topic: Add Proxy Adress in IE
Replies: 1
Views: 856

Re: Add Proxy Adress in IE

The following code will read the proxy text file into an array. A random number is generated to get a value from the array. That value is then deleted from the array. The remaining array is then read back to the proxy text file, overwriting the original values, so you end up with one less proxy valu...
by Heezea
19 Oct 2015, 08:31
Forum: About This Community
Topic: Forum upgraded to phpBB v3.1.x
Replies: 177
Views: 117030

Re: Forum upgraded to phpBB v3.1.x

Not sure this is the right spot for this, but I'll give it a try. The forums on ahkscript.org are down. I tried getting to them from a bookmark, and via the ahkscript.org page, and by replacing autohotkey.com with ahkscript.org but in each case I was sent to a "server error" page. I first noticed th...
by Heezea
19 Oct 2015, 08:11
Forum: Ask For Help
Topic: Creating a simple script and launching it
Replies: 13
Views: 4871

Re: Creating a simple script and launching it

Jay, you've learned a lot about how to get AHK running. It's really an amazing program that has virtually endless possibilities. I'd stick with it. The first thing we need to figure out is why these basic key combinations are not giving you good results. AHK should be simulating what you're achievin...
by Heezea
18 Oct 2015, 09:52
Forum: Ask For Help
Topic: Creating a simple script and launching it
Replies: 13
Views: 4871

Re: Creating a simple script and launching it

Try the code below. You can try varying the "Sleep 100" lines. I find that often varying the delays between actions can solve issues. $^LButton:: SendInput, {LButton} While !WinExist("ahk_exe Evernote.exe") { Sleep 10 } Sleep 100 ;Try varying this if needed. 100 ms = 0.1 seconds, 500ms = 0.5 seconds...
by Heezea
01 Oct 2015, 11:35
Forum: Ask For Help
Topic: Adding text to top of txt file using File.Write(xxx, "a") and File.Seek(0,0)
Replies: 1
Views: 1139

Adding text to top of txt file using File.Write(xxx, "a") and File.Seek(0,0)

I'm trying to add text to the top of a txt file (see testing script below) using File.Write(xxx, "a") and File.Seek(0,0). However, the top line just gets overwritten. I would like the text I want to add to get inserted in front of the first character of the file. Can anyone help me with this please?...
by Heezea
16 Sep 2015, 16:35
Forum: Ask For Help
Topic: GUI too large with different resolution
Replies: 2
Views: 1274

Re: GUI too large with different resolution

trismarck, thank you so much! I'm very grateful for your help; wasted a lot of time on this for such an easy fix.
Went to: Control Panel\Appearance and Personalization\Display > Smaller - 100% (was set to Medium - 125%)
by Heezea
16 Sep 2015, 12:41
Forum: Ask For Help
Topic: GUI too large with different resolution
Replies: 2
Views: 1274

GUI too large with different resolution

Hey guys I wrote a GUI script that I designed on a 1680x1050 resolution that fit the screen perfectly. Now, on a new PC, I'm using it on a 1920x1080 resolution and the GUI is too big for my screen. However, when I change to a 1680x1050 resolution, the GUI doesn't shrink down to fit, it stays oversiz...

Go to advanced search