Search found 148 matches

by labrint
31 Dec 2020, 06:10
Forum: Ask For Help
Topic: Toolstrip button controls
Replies: 3
Views: 97

Re: Toolstrip button controls

I use this to help me get names. Probably much better out there but it works. F3:: hWnd:=WinActive("A") WinGet, ActiveControlList,ControlList,ahk_id %hWnd% Loop,Parse,ActiveControlList, `n { ControlFocus , %A_LoopField%, ahk_id %hWnd% ControlGetPos, X, Y, , , %A_LoopField%, ahk_id %hWnd% MouseMove,...
by labrint
31 Dec 2020, 04:37
Forum: Ask For Help
Topic: Toolstrip button controls
Replies: 3
Views: 97

Toolstrip button controls

ClassNN: WindowsForms10.Window.8.app.0.fb4aac_r6_ad19

This is the control of a toolstrip with 5 buttons. How can I get the control of the individual buttons? Using Windows Spy I can only get to the toolstrip control.
by labrint
25 Aug 2020, 04:14
Forum: Ask For Help
Topic: FileAppend image/picture to .rtf file Topic is solved
Replies: 7
Views: 1563

Re: FileAppend image/picture to .rtf file Topic is solved

Impressive well done it works. Very important piece of script as WordPad is universal throughout Windows builds and it saves printing preferences unlike paint. Besides that it combines text with formatting and images. Paint does not keep printing preferences moreover lacks a lot of command line inte...
by labrint
22 Aug 2020, 15:47
Forum: Ask For Help
Topic: FileAppend image/picture to .rtf file Topic is solved
Replies: 7
Views: 1563

Re: FileAppend image/picture to .rtf file Topic is solved

Looking forward for the v1 release. I have no idea how to set up v2 sorry. Tried installing it but there was no installer like v1. Tried copying the files in the folder at program files. Moreover the v2 seems like it has been created since 2015 but never fully overtaken v1. Should we expect v1 to be...
by labrint
21 Aug 2020, 03:13
Forum: Ask For Help
Topic: FileAppend image/picture to .rtf file Topic is solved
Replies: 7
Views: 1563

Re: FileAppend image/picture to .rtf file Topic is solved

Thanks for helping out. Some small error preventing it from working. --------------------------- ImagePut.ahk --------------------------- Error at line 112. Line Text: call(cotype, ByRef image, crop := "", scale := "", terms*) { Error: Invalid class variable declaration. The program will exit. -----...
by labrint
18 Aug 2020, 04:51
Forum: Ask For Help
Topic: Caption images Topic is solved
Replies: 3
Views: 1078

Re: Caption images Topic is solved

#SingleInstance Force ; Uncomment if Gdip.ahk is not in your standard library #Include ../Gdip_All.ahk UrlDownloadToFile, http://chart.apis.google.com/chart?cht=qr&chs=400x400&chl=Testing&choe=UTF-8&chld=|0, C:\AHK\vcc.png url := "http://api.img4me.com/?text=Testing&font=Impact&fcolor=000000&size=2...
by labrint
18 Aug 2020, 04:49
Forum: Ask For Help
Topic: 2D QR CODE with embedded text Topic is solved
Replies: 1
Views: 350

Re: 2D QR CODE with embedded text Topic is solved

Edit the "Testing" in the urldownloadtofile and the "Testing" in the line below to change the QR code and caption. Its important to have Gdip_All.Ahk #SingleInstance Force ; Uncomment if Gdip.ahk is not in your standard library #Include ../Gdip_All.ahk UrlDownloadToFile, http://chart.apis.google.com...
by labrint
17 Aug 2020, 04:56
Forum: Ask For Help
Topic: How to print from Autohotkey?
Replies: 28
Views: 7565

Re: How to print from Autohotkey?

Thank you, gwarble & DRocks! In the meantime I discovered another simple way. It is from the same kind as the method discussed with DRocks where a HTML template would be used: WordPad , which is included in all Windows versions, supports the RTF format. RTF files are plain text too like HTML, so pl...
by labrint
17 Aug 2020, 04:46
Forum: Ask For Help
Topic: FileAppend image/picture to .rtf file Topic is solved
Replies: 7
Views: 1563

FileAppend image/picture to .rtf file Topic is solved

Does anyone know how one can append an image to a .rtf file, please?
by labrint
16 Aug 2020, 13:14
Forum: Ask For Help
Topic: Caption images Topic is solved
Replies: 3
Views: 1078

Re: Caption images Topic is solved

Could you explain further regarding the GDI+? I could not find the textout() function documentation.
by labrint
14 Aug 2020, 09:36
Forum: Ask For Help
Topic: Caption images Topic is solved
Replies: 3
Views: 1078

Caption images Topic is solved

Does anyone know of an easy way to add a caption to the bottom of an image?

Both free APIs and AHK methods welcome.

[Mod edit: Topic moved to 'Ask For Help'.]
by labrint
10 Aug 2020, 09:46
Forum: Ask For Help
Topic: 2D QR CODE with embedded text Topic is solved
Replies: 1
Views: 350

2D QR CODE with embedded text Topic is solved

Any progress on QR codes apart from the https://www.autohotkey.com/boards/viewtopic.php?t=5538 . Linked system requires two libraries and has no embedded text function. Anyone has a silky smooth solution to the above? Perhaps a concise piece of code that I can insert at the end and use as a function...
by labrint
19 May 2020, 09:25
Forum: Ask For Help
Topic: Using AHK to run software through Path and Double Clicking .exe with same path give different outcomes Topic is solved
Replies: 1
Views: 70

Using AHK to run software through Path and Double Clicking .exe with same path give different outcomes Topic is solved

I am having problem with a Reports.exe program of my POS. When I run it through AHK by using double click commands it launches and runs in the correct way, giving me the reports I need. Then I try to launch it using Run, Path to program/Reports.exe The reports program launches but in a different con...
by labrint
16 Apr 2020, 02:54
Forum: Ask For Help
Topic: Replace All Text In File
Replies: 10
Views: 3217

Re: Replace All Text In File

file := FileOpen("MyTextFile.txt", "w") This code could be the most beautiful one liner I have seen. Basically it saves you the trouble of FileDelete before appending. Imagine you have a file you need to update specifically positioned on the desktop and don't want it moved, FileDelete would move it...
by labrint
21 Nov 2019, 04:28
Forum: Ask For Help
Topic: A_GuiEvent
Replies: 0
Views: 339

A_GuiEvent

Consider the following function which controls listview tables. ListCtrlEvent(ctrlHwnd:=0, guiEvent:="", eventInfo:="", errLvl:="") { If A_GuiEvent LvSel := A_GuiControl GuiControlGet, ctrlName, Name, %CtrlHwnd% rownumber := eventInfo If (guiEvent = "DoubleClick") { Thread, NoTimers , True ;eventInf...
by labrint
19 Nov 2019, 03:28
Forum: Ask For Help
Topic: Help on Regex Needed Topic is solved
Replies: 5
Views: 529

Re: Help on Regex Needed Topic is solved

I'm Interested in the middle solution but it does not distinguish between a comma found in between " " and a comma NOT found in between " ". I need at the bare minimum to remove commas found in between " ". Try it with my str: Profit,Product,Product Type,Quantity,Net,VAT,Code,Company Stock,Preferred...
by labrint
18 Nov 2019, 07:41
Forum: Ask For Help
Topic: Help on Regex Needed Topic is solved
Replies: 5
Views: 529

Help on Regex Needed Topic is solved

I have a CSV file (comma delimited values) and I need a regex formula to capture each cell. Usually I use the following formula to capture (example a 5 column table) (.*),(.*),(.*),(.*),(.*) The problem with this formula is that if the cell contains a comma, which is possible, then the capture think...

Go to advanced search