Search found 180 matches

by colt
05 Jan 2021, 12:53
Forum: Ask For Help
Topic: Using selenium for event capturing
Replies: 0
Views: 26

Using selenium for event capturing

I am attempting to make a program that will use ahk for the heavy lifting but using a web browser for the gui interface. Is it possible to link events in webpage to ahk function calls using selenium? I am new to selenium so not sure if this is really possible. Is there another tool to do this? I can...
by colt
04 Jan 2021, 20:53
Forum: Ask For Help
Topic: Attaching file to taskbar. Topic is solved
Replies: 4
Views: 121

Re: Attaching file to taskbar. Topic is solved

Awesome, thanks! I've made shortcuts to launch programs with parameters before. Just couldn't put two and two together. Do you know any tricks to add the shortcut as a node in the left hand panel of explorer next to quick access? I know you can add custom folder locations as a standalone nodes but I...
by colt
04 Jan 2021, 17:46
Forum: Ask For Help
Topic: Attaching file to taskbar. Topic is solved
Replies: 4
Views: 121

Attaching file to taskbar. Topic is solved

I am attempting to attach a file to the windows taskbar as a standalone item so that the file can be launched with one click. This is not possible in vanilla windows as far as I know. My idea for a workaround is to automatically create an executable and pin it to the taskbar that will launch the fil...
by colt
22 Dec 2020, 10:23
Forum: Ask For Help
Topic: Still trying to understand regexmatch
Replies: 2
Views: 79

Re: Still trying to understand regexmatch

This website helped me improve my understanding of regex. Maybe you will find it helpful. It is really useful when trying to quickly debug a new regex string.
https://www.regextester.com/15
by colt
20 Oct 2020, 12:18
Forum: Ask For Help
Topic: Nested classes. Topic is solved
Replies: 1
Views: 66

Nested classes. Topic is solved

Could you give a real world example of how you use nested classes in autohotkey? What problem is it intended to solve? I was scared of using classes in my programs for the longest time because I did not understand them. Now that I took the time to learn about them, I use them all the time. I am wond...
by colt
20 Oct 2020, 09:22
Forum: Ask For Help
Topic: Reformatting lists from Evernote to Telegram/Word Topic is solved
Replies: 11
Views: 260

Re: Reformatting lists from Evernote to Telegram/Word Topic is solved

It depends on how your paragraphs are represented on the pdf. If a paragraph is `r`n`r`n and each line wrap return is `r`n. I would do something like this. For it to work it assumes your pdf text will never have the word "temporaryPlaceHolder". You could use regexReplace to create a more robust comm...
by colt
11 Oct 2020, 22:32
Forum: Scripts and Functions
Topic: Program to view MJPEG stream in gui
Replies: 4
Views: 305

Re: Program to view MJPEG stream in gui

Embedding edge would do the trick, I'll keep this solution in mind. Unfortunately, I have yet to make the leap to v2. I am not sure if I ever will, kinda getting set in my ways. I will add this to my growing list of benefits of upgrading.
by colt
09 Oct 2020, 20:25
Forum: Scripts and Functions
Topic: Program to view MJPEG stream in gui
Replies: 4
Views: 305

Re: Program to view MJPEG stream in gui

Do you really need to use an activex plugin for this? Maybe not? In my experience the code from stack overflow was a turnkey solution for all browsers except for IE and internal gui. On IE and gui it resulted in a black x where image should be like image not found. If it works for you turn key I wo...
by colt
09 Oct 2020, 17:37
Forum: Scripts and Functions
Topic: Program to view MJPEG stream in gui
Replies: 4
Views: 305

Program to view MJPEG stream in gui

This code will let you view a live MJPEG stream inside a gui. My original need for this functionality was to view python opencv output in my gui. See this thread for discussion https://www.autohotkey.com/boards/viewtopic.php?f=76&t=81795&hilit=opencv The heavy lifting is done by an activex plugin th...
by colt
09 Oct 2020, 12:06
Forum: Ask For Help
Topic: Two functions sharing the same windows message Topic is solved
Replies: 1
Views: 92

Two functions sharing the same windows message Topic is solved

I have two functions in the same script that rely on reacting to the same windows message Receive_WM_COPYDATA. One function is in a include file and the other is in the main script. For simplicty my example uses the WM_LBUTTONDOWN message. The script functions how I want, but it relies on a global v...
by colt
09 Oct 2020, 00:27
Forum: Ask For Help
Topic: Viewing opencv image in gui Topic is solved
Replies: 14
Views: 455

Re: Viewing opencv image in gui Topic is solved

After more testing I found the dwm method was not actually updating the image off screen, rather it was caching the image until it was brought back onto the screen. So I went back to searching and found the AXIS Media Control SDK https://www.axis.com/developer-community/media-control-sdk which when ...
by colt
06 Oct 2020, 23:45
Forum: Ask For Help
Topic: Reformatting lists from Evernote to Telegram/Word Topic is solved
Replies: 11
Views: 260

Re: Reformatting lists from Evernote to Telegram/Word Topic is solved

looks like telegram is converting the tab character to two spaces when you press enter. replace the tabs with however much whitespace you need r := strReplace(clipboard,". `r`n",". ") ;pull text to same row r := strReplace(r,"`r`n`r`n","`r`n") ;remove blank lines r := strReplace(r,"`r`n`t","`r`n") ;...
by colt
06 Oct 2020, 13:53
Forum: Ask For Help
Topic: Viewing opencv image in gui Topic is solved
Replies: 14
Views: 455

Re: Viewing opencv image in gui Topic is solved

Incredible, that is a good compromise. It even works if the window is off screen.
A link to the code https://www.autohotkey.com/boards/viewtopic.php?t=66585
by colt
06 Oct 2020, 12:59
Forum: Ask For Help
Topic: Viewing opencv image in gui Topic is solved
Replies: 14
Views: 455

Re: Viewing opencv image in gui Topic is solved

You can do all of this with autohotkey. Currently I use the python code on other systems. I would prefer if I did not have to maintain two code bases. Although porting to ahk would be the most robust way to do things, it is hard for me to see the payoff considering how effing close I am. If I cant ...
by colt
06 Oct 2020, 11:57
Forum: Ask For Help
Topic: Viewing opencv image in gui Topic is solved
Replies: 14
Views: 455

Re: Viewing opencv image in gui Topic is solved

Why do You need python? Inside my actual get_frame function I am using pylibdmtx to decode multiple datamatrix barcodes in the scene. I use opencv to find regions of interest in the scene and crop all roi into minimum size images. I then pass these small images into pylibdmtx for decoding. Once dec...
by colt
06 Oct 2020, 10:38
Forum: Ask For Help
Topic: Viewing opencv image in gui Topic is solved
Replies: 14
Views: 455

Re: Viewing opencv image in gui Topic is solved

BoBo wrote:Looks like openvc is able to handle MP4 as well
I used that method in my first attempt. I was able to create mp4 file but was unable to connect to it as a stream to view it in any browser. I will have look at this again and do further research on this technique. Thanks
by colt
06 Oct 2020, 10:03
Forum: Ask For Help
Topic: Viewing opencv image in gui Topic is solved
Replies: 14
Views: 455

Re: Viewing opencv image in gui Topic is solved

Why do You want to use opencv and mjpeg but not mp4? I am not experienced enough to get a mp4 stream out of python and open cv. I am relying on other peoples code to get the output. That stack overflow thread was my best shot. If you have guidance or an example on how to get mp4 stream from python ...
by colt
06 Oct 2020, 09:53
Forum: Ask For Help
Topic: Reformatting lists from Evernote to Telegram/Word Topic is solved
Replies: 11
Views: 260

Re: Reformatting lists from Evernote to Telegram/Word Topic is solved

Try this

Code: Select all

f8::
	r := strReplace(clipboard,". `r`n",". ") ;pull text to same row
	r := strReplace(r,"`r`n`r`n","`r`n") ;remove blank lines
	r := strReplace(r,"`r`n`t","`r`n") ;remove leading tabs
	clipboard := r
return
by colt
06 Oct 2020, 09:12
Forum: Ask For Help
Topic: Viewing opencv image in gui Topic is solved
Replies: 14
Views: 455

Re: Viewing opencv image in gui Topic is solved

Ideally fps to match the webcam, I guess 10fps would be absolute min. I did look at chrome frame but the download sources seemed a bit sketchy. I would lump that in with the janky workaround section. That is my last resort. I am not sure I could provide a reliable stream for testing. However, if you...
by colt
05 Oct 2020, 21:54
Forum: Ask For Help
Topic: GuiControlGet Help
Replies: 4
Views: 83

Re: GuiControlGet Help

This one is weird and behaves like listviews and treeviews.
set the default gui before calling the appropriate GuiControlGet

Code: Select all

gui,myGui:default ;set defualt gui
GuiControlGet, pos, Pos, myField
msgbox %posX%:%posY%

Go to advanced search