Search found 59 matches
- 08 Sep 2022, 15:39
- Forum: Visual Studio Code
- Topic: Project Explorer in VS Code similar to AHK Studio
- Replies: 1
- Views: 1792
Project Explorer in VS Code similar to AHK Studio
In VS Code, is it possible to show a "Project Explorer" similar to AHK Studio? Please see example below. This is something I love about AHK Studio but didn't find it mentioned in any of the posts or videos on VS Code. One of the best features is the when you full search (alt+q in AHK Studio), it sea...
- 07 Sep 2022, 08:49
- Forum: Ask for Help (v1)
- Topic: Dynamic COM call from Text?
- Replies: 4
- Views: 471
Re: Dynamic COM call from Text?
Yes I see what you mean. I guess my example is not good but I'd hoped the intent would be clear. Here's a new example. I had added the () in an attempt to make it run though I do understand that's how you dynamically call a function. q:: { xl:=ComObjActive("Excel.Application") str := "xl.Selection.A...
- 07 Sep 2022, 05:46
- Forum: Ask for Help (v1)
- Topic: Dynamic COM call from Text?
- Replies: 4
- Views: 471
Re: Dynamic COM call from Text?
flyingDman , I'd like it to run the code xl.Selection.Address , which should return something like $A$1. The first MsgBox (with the comment "Correct" in the code) actually runs the command, for comparison. This is just an example. If I sent some other command, I'd like that to execute. I know there...
- 06 Sep 2022, 13:14
- Forum: Ask for Help (v1)
- Topic: Go to a specific sheet on excel Topic is solved
- Replies: 2
- Views: 435
Re: Go to a specific sheet on excel Topic is solved
Try Xl.Sheets(Tipo).Activate Recall that when a parameter is in brackets, you're sending the value of the parameter so you don't need the " or the %. Xl.Sheets("Tipo").Activate would activate a sheet named Tipo. Similarly but opposite, when not in brackets, you do need the % MsgBox, % Tipo " is the ...
- 06 Sep 2022, 12:41
- Forum: Ask for Help (v1)
- Topic: Dynamic COM call from Text?
- Replies: 4
- Views: 471
Dynamic COM call from Text?
Is it possible to perform a dynamic COM call from text? Attempted example below. Esc::ExitApp q:: MsgBox, % fTest("xl.Selection.Address") return fTest(pCmd){ xl:=ComObjActive("Excel.Application") MsgBox, % xl.Selection.Address ;Correct MsgBox, % pCmd ;Returns the correct text. %pCmd%() ;Doesn't work...
- 30 Aug 2022, 08:57
- Forum: Ask for Help (v1)
- Topic: COM event handler parameters returning values
- Replies: 8
- Views: 4586
Re: COM event handler parameters returning values
This is really cool, especially how __Call can provide the name of any method that is used on performing an action in Excel. Is there any way to output the names of the parameters (Args*) so you can add the method into the class once you know which parameters it wants? Specifically, I was looking at...
- 19 Dec 2018, 14:09
- Forum: Ask for Help (v1)
- Topic: Excel UDF Add-in with AHK
- Replies: 0
- Views: 708
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...
- 11 Sep 2018, 15:59
- Forum: AHK Studio
- Topic: Ctrl+C to copy line - code edit
- Replies: 2
- Views: 4559
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...
- 11 Sep 2018, 11:28
- Forum: AHK Studio
- Topic: Ctrl+C to copy line - code edit
- Replies: 2
- Views: 4559
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...
- 21 Feb 2018, 15:31
- Forum: Scripts and Functions (v1)
- Topic: Lintalist 1.9 Searchable interactive lists to copy & paste text with plugins
- Replies: 200
- Views: 107872
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...
- 19 Jun 2016, 11:26
- Forum: Ask for Help (v1)
- Topic: Loop through MS Word Object (StoryRanges) Using For Loop
- Replies: 3
- Views: 1979
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 ...
- 18 Jun 2016, 10:15
- Forum: Ask for Help (v1)
- Topic: Loop through MS Word Object (StoryRanges) Using For Loop
- Replies: 3
- Views: 1979
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...
- 01 Dec 2015, 08:58
- Forum: Development
- Topic: [AHK Test Build - 5th Nov 2015] Scrollbars, GuiControl Auto-Position+Size system, and more!
- Replies: 52
- Views: 69222
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...
- 22 Oct 2015, 10:21
- Forum: Ask for Help (v1)
- Topic: how to dection the input of Chinese
- Replies: 7
- Views: 4221
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我但是对于女孩子有工作...
- 20 Oct 2015, 08:14
- Forum: Ask for Help (v1)
- Topic: Simulate CTRL+Double-Click with Middle-Click [SOLVED]
- Replies: 3
- Views: 2118
- 20 Oct 2015, 08:13
- Forum: Ask for Help (v1)
- Topic: how to dection the input of Chinese
- Replies: 7
- Views: 4221
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
- 19 Oct 2015, 17:53
- Forum: Ask for Help (v1)
- Topic: Simulate CTRL+Double-Click with Middle-Click [SOLVED]
- Replies: 3
- Views: 2118
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
- 19 Oct 2015, 17:39
- Forum: About This Community
- Topic: Forum upgraded to phpBB v3.1.x
- Replies: 177
- Views: 158715
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...
- 19 Oct 2015, 16:58
- Forum: About This Community
- Topic: Forum upgraded to phpBB v3.1.x
- Replies: 177
- Views: 158715
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...
- 19 Oct 2015, 09:01
- Forum: Ask for Help (v1)
- Topic: Add Proxy Adress in IE
- Replies: 1
- Views: 1688
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...