Search found 133 matches

by Avastgard
19 Mar 2024, 09:16
Forum: Ask for Help (v2)
Topic: How to call a vlookup from AutoHotkey? Topic is solved
Replies: 18
Views: 572

Re: How to call a vlookup from AutoHotkey? Topic is solved

In V2, the clipboard name is A_Clipboard Russ Thanks again! Here is the final code that will paste the VLookup result instead of displaying it on a MsgBox and allows you to choose the sheet to lookup: #Requires Autohotkey v2.0+ #SingleInstance force F10:: { needle := InputBox("Type Lookup value", "...
by Avastgard
19 Mar 2024, 08:52
Forum: Ask for Help (v2)
Topic: How to call a vlookup from AutoHotkey? Topic is solved
Replies: 18
Views: 572

Re: How to call a vlookup from AutoHotkey? Topic is solved

Inputbox with F12 as hotkey: f12:: { needle := InputBox("Lookup value?", "") needle := needle.value ;instead of needle := "matrix" xl := ComObject("Excel.Application") ;v1 ---> xl := ComObjCreate("Excel.Application") Workbook := xl.Workbooks.Open("C:\Users\xxxx\Documents\Spreadsheets\aaaa.xlsx") ra...
by Avastgard
19 Mar 2024, 08:52
Forum: Ask for Help (v2)
Topic: How to call a vlookup from AutoHotkey? Topic is solved
Replies: 18
Views: 572

Re: How to call a vlookup from AutoHotkey? Topic is solved

Inputbox with F12 as hotkey: f12:: { needle := InputBox("Lookup value?", "") needle := needle.value ;instead of needle := "matrix" xl := ComObject("Excel.Application") ;v1 ---> xl := ComObjCreate("Excel.Application") Workbook := xl.Workbooks.Open("C:\Users\xxxx\Documents\Spreadsheets\aaaa.xlsx") ra...
by Avastgard
18 Mar 2024, 12:42
Forum: Ask for Help (v2)
Topic: How to call a vlookup from AutoHotkey? Topic is solved
Replies: 18
Views: 572

Re: How to call a vlookup from AutoHotkey? Topic is solved

FWIW, I created a spreadsheet that matches the guidelines in @flyingDman's V2 example: name - vlookuptest.xlsx, 2 columns, 23 rows, cells in column A were junk text except for one entry "matrix" and just sequential integers in column B. I also changed the path in his code to point to my file. As lo...
by Avastgard
15 Mar 2024, 08:15
Forum: Ask for Help (v2)
Topic: How to call a vlookup from AutoHotkey? Topic is solved
Replies: 18
Views: 572

Re: How to call a vlookup from AutoHotkey? Topic is solved

Thanks for the code, flyingDman . However, I run into the same error message with the v2 version: Error: (0x800A03EC) Unable to obtain VLookup property from class WorksheetFunction Source: Microsoft Excel Specifically: VLookup 005: Workbook := xl.Workbooks.Open("C:\Users\flima\Desktop\lista CNPJs KB...
by Avastgard
14 Mar 2024, 20:56
Forum: Ask for Help (v2)
Topic: How to call a vlookup from AutoHotkey? Topic is solved
Replies: 18
Views: 572

Re: How to call a vlookup from AutoHotkey? Topic is solved

Do you want me to move this thread to the v2 section?
I would appreciate that. Thank you.
by Avastgard
14 Mar 2024, 20:41
Forum: Ask for Help (v2)
Topic: How to call a vlookup from AutoHotkey? Topic is solved
Replies: 18
Views: 572

Re: How to call a vlookup from AutoHotkey? Topic is solved

Oops, sorry guys. I remember reading this rule a while ago, but completely forgot about it. I deleted the AI-generated code from my question.

@boiler I honestly have no idea whether v1 or v2 are better suited for this use case. Now that the post has no code does it make a difference where it is?
by Avastgard
14 Mar 2024, 15:45
Forum: Ask for Help (v2)
Topic: How to call a vlookup from AutoHotkey? Topic is solved
Replies: 18
Views: 572

How to call a vlookup from AutoHotkey? Topic is solved

I want to use an Excel spreadsheet to structure data that will be retrieved and pasted by an AutoHotkey script. In other words, I want to tell an AutoHotkey script to take a certain value given by the user (maybe typing it in an inputbox or GUI), look it up in a spreadsheet and return the value in t...
by Avastgard
24 Jan 2024, 08:44
Forum: Ask for Help (v2)
Topic: How to store last active folder's filepath and paste it when the "Save as" window pops up
Replies: 9
Views: 828

Re: How to store last active folder's filepath and paste it when the "Save as" window pops up

Saving the path is not needed. #Requires AutoHotkey v2+ #SingleInstance SetTitleMatchMode 2 loop { WinWaitActive "Save ahk_class #32770" if (explrPath:=get_Active_Explorer_Path())&&!InStr(explrPath, "{") { Send "!d" try While !ControlGetVisible("Edit2", "A") Continue While explrPath!=ControlGetText...
by Avastgard
02 Jan 2024, 15:04
Forum: Ask for Help (v2)
Topic: How to store last active folder's filepath and paste it when the "Save as" window pops up
Replies: 9
Views: 828

Re: How to store last active folder's filepath and paste it when the "Save as" window pops up

Saving the path is not needed. #Requires AutoHotkey v2+ #SingleInstance SetTitleMatchMode 2 loop { WinWaitActive "Save ahk_class #32770" if (explrPath:=get_Active_Explorer_Path())&&!InStr(explrPath, "{") { Send "!d" try While !ControlGetVisible("Edit2", "A") Continue While explrPath!=ControlGetText...
by Avastgard
28 Dec 2023, 11:55
Forum: Ask for Help (v2)
Topic: How to store last active folder's filepath and paste it when the "Save as" window pops up
Replies: 9
Views: 828

How to store last active folder's filepath and paste it when the "Save as" window pops up

I want a script that will do the following: Run in the background and whenever an Explorer folder is activated, store that folder's filepath in a variable. If a new folder is activated, the new filepath replaces the previous one, so there is always just one filepath stored. Whenever the "Save as" wi...
by Avastgard
19 Dec 2023, 08:39
Forum: Ask for Help (v1)
Topic: WinMove to position according detected monitor's resolution Topic is solved
Replies: 3
Views: 429

Re: WinMove to position according detected monitor's resolution Topic is solved

Thanks as always, mikeyww , I believe this code will work on both monitors (only tested on home monitor, though): EDIT: tested on both ones and it works as intended. FuncF2(isHold, taps, state) { if (taps) { if (taps == 1) Send {F2} else if (taps == 2) { If (A_ScreenWidth == 2560) WinMove, ahk_class...
by Avastgard
19 Dec 2023, 07:49
Forum: Ask for Help (v1)
Topic: WinMove to position according detected monitor's resolution Topic is solved
Replies: 3
Views: 429

WinMove to position according detected monitor's resolution Topic is solved

I use my notebook on two different monitors, one at home (2560x1080) and one at work (1920x1080). I modified evilC 's TapHoldManager script to make it so when I double tap F2, the last active windows explorer window gets placed in a certain position on the screen. Here is the code snippet: FuncF2(is...
by Avastgard
23 Nov 2023, 14:38
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 304
Views: 133328

Re: Screen clipping

[PLUGIN] GK OCR v1.1 (Win 10+ only) Usage: Select a clip text image and press Y to use built-in OCR of Windows 10+ to send text to the clipboard. how to install this plugin ? 1° download FG ScreenClipper v1.4+ at https://www.autohotkey.com/boards/viewtopic.php?p=506077#p506077 2° put GK_OCR.ahk plu...
by Avastgard
27 Oct 2023, 07:49
Forum: Ask for Help (v1)
Topic: Hotkey to copy file and paste with a different name Topic is solved
Replies: 5
Views: 562

Re: Hotkey to copy file and paste with a different name Topic is solved

Neat, thank you very much! Here is my final script that works as intended: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed ...
by Avastgard
26 Oct 2023, 20:56
Forum: Ask for Help (v1)
Topic: Hotkey to copy file and paste with a different name Topic is solved
Replies: 5
Views: 562

Re: Hotkey to copy file and paste with a different name Topic is solved

Thanks for the codes, mikeyww and andymbody ! They are both great! mikeyww , your code seems to suit me slightly better because it asks me to confirm the name of the new file in an inputbox. However, I can't seem to change fnSuffix := "-new" in line 2 to show current date and time in this format: yy...
by Avastgard
10 Oct 2023, 11:12
Forum: Ask for Help (v1)
Topic: Hotkey to copy file and paste with a different name Topic is solved
Replies: 5
Views: 562

Hotkey to copy file and paste with a different name Topic is solved

I constantly have to work on files other people created and make changes to it. So every time I download the file, make a copy of it, rename it and then open the file to make changes. After some digging in the forums, I came up with this script that does part of the job, but doesn't change the name ...
by Avastgard
07 Jun 2023, 09:48
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 304
Views: 133328

Re: Screen clipping

@Avastgard There are different ways to do this. one good way is to use "GroupAdd" to group all of "ScreenClipper" windows, then use "GroupActivate". This would automatically activate the one below. Sorry I'm too busy to provide you with the code, but you should be able to figure it out by yourself ...
by Avastgard
06 Jun 2023, 07:33
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 304
Views: 133328

Re: Screen clipping

@SpeedMaster or @Flowgun:

Do you think it would be possible to add a hotkey to cycle through clipped images currently on screen? Having to click each one everytime I want to activate it is kind of bothersome

Thanks for your continued support for this amazing script.
by Avastgard
19 Apr 2023, 08:48
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 304
Views: 133328

Re: Screen clipping

New update for Draw Shape plugin: V. 2023 04 15 :arrow: https://www.autohotkey.com/boards/viewtopic.php?f=6&t=12088&p=517218#p517218 Added free hand drawing (Press Shift + Left mouse ) 8-) Shortcut to draw a line is moved to Shift + Right mouse Regards Sweet, thank you very much for this update! Is...

Go to advanced search