Search found 291 matches
- 06 Feb 2024, 09:45
- Forum: Ask for Help (v1)
- Topic: alternative solutions for embedding pdf in gui
- Replies: 10
- Views: 719
Re: alternative solutions for embedding pdf in gui
My script simply makes your window the child of another window so your events should still be sent just fine. I am actually looking for the opposite. I want to intercept the double click windows message sent to the embedded pdf viewer. How i detect that I double clicked on the pdf now ~LButton:: ~^...
- 04 Feb 2024, 16:39
- Forum: Ask for Help (v1)
- Topic: alternative solutions for embedding pdf in gui
- Replies: 10
- Views: 719
Re: alternative solutions for embedding pdf in gui
Ralf_Reddings200244 Thanks for the suggestion, i did not know about pdfxchange. It does look pretty good. I like that it comes with the activex plugin, but like you said, no way to get toolbarless embed. I tried going fullscreen as embedded but it just escapes the container. My deal breaker is that...
- 02 Feb 2024, 10:25
- Forum: Ask for Help (v1)
- Topic: Finding the center of an Object Using its Border Color
- Replies: 2
- Views: 198
Re: Finding the center of an Object Using its Border Color
If the object is a solidly colored rectangle this will get the exact bounding box. If it is a polygon then it should get close. It is kinda slow but it will work. If speed is ultimate goal you will probably have to resort to mcode. A couple years ago I created an mcode script that finds all blobs of...
- 31 Jan 2024, 21:57
- Forum: Ask for Help (v1)
- Topic: alternative solutions for embedding pdf in gui
- Replies: 10
- Views: 719
Re: alternative solutions for embedding pdf in gui
I use 'Foxit Reader' , then I not needed the loop in your script . ( With loop,2 or loop,3 I get a small PDF-file , ahk_id %childHWND% . ) Yeah the loop seemed very strange and was inconsistent between computers and depended on what applications i had running. Most importantly the loop count was di...
- 31 Jan 2024, 14:17
- Forum: Ask for Help (v1)
- Topic: alternative solutions for embedding pdf in gui
- Replies: 10
- Views: 719
Re: alternative solutions for embedding pdf in gui
Thanks for the suggestions. I may have to give up on using the activex control, seems like it is phased out. I was able to embed the pdf in my gui by launching the pdf in sumatra and then setting the parent win of sumatra to my gui. Needed to set the following advanced options for sumatra to hide th...
- 30 Jan 2024, 19:29
- Forum: Ask for Help (v1)
- Topic: alternative solutions for embedding pdf in gui
- Replies: 10
- Views: 719
alternative solutions for embedding pdf in gui
My main goal is a distraction free high performance way to view the content of a pdf. Top priority: Performance in both windows explorer preview and embedded gui preview. I need to cycle through pdf previews as fast as possible. Second Priority: Ability to hide the entire user interface of pdf previ...
- 20 Jan 2024, 01:11
- Forum: Ask for Help (v1)
- Topic: TreeView with tri-state checkboxes - anyone know how?
- Replies: 2
- Views: 190
Re: TreeView with tri-state checkboxes - anyone know how?
We are having some horrible weather right now, so i let myself get carried away with this one. If you don't use icons on your treeview, then the following code can mimic what you ask. Right now there are 5 available check states, but you can add or replace icons in the iconLookup variable as needed....
- 15 Dec 2023, 12:41
- Forum: Ask for Help (v1)
- Topic: Getting list of dropbox files that are stuck syncing.
- Replies: 1
- Views: 272
Getting list of dropbox files that are stuck syncing.
My computer is stuck uploading about 600 files. Dropbox is unable to create conflicting copies for these files and I am seeing they differ on multiple computers. I have tried reinstalling dropbox, deleting the dropbox cache, and fixing permissions. As a last resort, I am going to try re-linking my a...
- 14 Nov 2023, 16:00
- Forum: Ask for Help (v1)
- Topic: Pixel find Optimization: Addressing Bit Depth
- Replies: 2
- Views: 387
Re: Pixel find Optimization: Addressing Bit Depth
Each system has the same monitor resolution? Do you mean 18 and 24 color depths and 6 & 8 bit rgb depths? I wonder if you could compare the differences. You would have to assume that the colors mapped somewhat linearly between the two depths. If all 6 datapoints from the image pass the pixelCompare ...
- 31 Oct 2023, 09:47
- Forum: Ask for Help (v1)
- Topic: does anyone use AHK with "Epic" Electronic Medical Record?
- Replies: 24
- Views: 2529
Re: does anyone use AHK with "Epic" Electronic Medical Record?
Also do you have to submit the form on epic or does it save as you type?
- 31 Oct 2023, 09:41
- Forum: Ask for Help (v1)
- Topic: does anyone use AHK with "Epic" Electronic Medical Record?
- Replies: 24
- Views: 2529
Re: does anyone use AHK with "Epic" Electronic Medical Record?
Did you try using the clipboard like hellbent suggested in the other thread? That is the best way because it will stop all errors and will be the fastest because you will not need any delays. If you rely on hotstring delays then you may find your script does not work on every computer because of var...
- 19 Oct 2023, 10:38
- Forum: Ask for Help (v1)
- Topic: If try to write to READONLY editbox - popub a warning message
- Replies: 23
- Views: 2107
Re: If try to write to READONLY editbox - popub a warning message
It was just a quick and dirty example. If you are building a more advanced gui it is a better idea to use control handles. Control handles will always work no matter how you order your code. (the edit# is dependent on order of how you built your gui) To fix the selection problem show the gui without...
- 19 Oct 2023, 08:58
- Forum: Ask for Help (v1)
- Topic: Change background color of another window
- Replies: 2
- Views: 395
Re: Change background color of another window
From here https://www.autohotkey.com/board/topic/38731-change-windows-color-themes/ doesnt work for newer apps though ButtonText=18 ButtonFace=15 ButtonAlternateFace=25 ButtonLight=22 ButtonHilight=20 ButtonShadow=16 ButtonDkShadow=21 ActiveBorder=10 ActiveTitle=2 GradientActiveTitle=27 TitleText=9 ...
- 19 Oct 2023, 08:43
- Forum: Ask for Help (v1)
- Topic: If try to write to READONLY editbox - popub a warning message
- Replies: 23
- Views: 2107
Re: If try to write to READONLY editbox - popub a warning message
It is the CLassNN of the edit text box from your gui. It checks to make sure the message only appears when you click inside the text box.
- 18 Oct 2023, 10:45
- Forum: Ask for Help (v1)
- Topic: If try to write to READONLY editbox - popub a warning message
- Replies: 23
- Views: 2107
Re: If try to write to READONLY editbox - popub a warning message
A basic way is to set up a passthru hotkey on click. Store the read only state in a variable. #NoEnv #SingleInstance Force SetBatchLines -1 isReadOnly := true Gui, Add, Edit, x10 y25 h100 w200 ReadOnly vMyEdit ,Try Editing Me gui show hMainWindow := WinExist("A") return f7:: if(isReadOnly ) { GuiCon...
- 06 Oct 2023, 13:00
- Forum: Ask for Help (v1)
- Topic: Firefox's 'Picture in Picture' video mode is hijacking Winget
- Replies: 1
- Views: 227
Re: Firefox's 'Picture in Picture' video mode is hijacking Winget
It looks like the picture in picture window has the same PID as the base firefox process. I was thinking to use dllcall of getParent or getOwner but this will not work. This can give you some info though. The trouble is figuring out the true parent if you have multiple firefox windows open. f7:: Win...
- 05 Oct 2023, 12:58
- Forum: Ask for Help (v1)
- Topic: How to remove superfluous dots from end of filenames? Topic is solved
- Replies: 3
- Views: 375
Re: How to remove superfluous dots from end of filenames? Topic is solved
One way is to use splitPath and reconstruct.
Code: Select all
fp := "c:\my\folder\ab.cd.ef....zip"
splitPath,fp,fn,dir,ext,fnNoExt
msgbox % dir . "\" . trim(fnNoExt,".") . "." ext
- 05 Oct 2023, 11:27
- Forum: Ask for Help (v1)
- Topic: Delete many files at once?
- Replies: 1
- Views: 238
Re: Delete many files at once?
This could work #NoEnv #SingleInstance Force SetBatchLines -1 ;hide all child windows DllCall("AllocConsole") WinHide % "ahk_id " DllCall("GetConsoleWindow", "ptr") global parentPID := DllCall("GetCurrentProcessId") delList := [] delList.push("E:\BASE\testB.txt") delList.push("E:\BASE\C\testC.txt") ...
- 05 Oct 2023, 01:26
- Forum: Gaming
- Topic: Is it possible to bind Razer Hypershift to a non Razer keyboard with AHK?
- Replies: 1
- Views: 1817
Re: Is it possible to bind Razer Hypershift to a non Razer keyboard with AHK?
I don't think this is natively possible. You can emulate it though. Set your default keys to to keyboard function keys F13-F24. mouse.jpg Then you can can latch onto these like regular hotkeys. f13:: tooltip "standard code" return ^f13:: tooltip "my hypershift code" ^!f13:: tooltip "my mega hypershi...
- 26 Sep 2023, 09:36
- Forum: Ask for Help (v1)
- Topic: GuiSize lagging when gui modifying callback is used
- Replies: 7
- Views: 693
Re: GuiSize lagging when gui modifying callback is used
Found a workaround that resizes in all versions. Capture the WM_SIZE message inside the modifier and trigger guisize sub manually. WindowProc(hwnd, uMsg, wParam, lParam) { global TextBackgroundColor, TextBackgroundBrush, WindowProcOld if(uMsg = 0x0005) ;WM_SIZE := 0x0005 { gosub MAINGuiSize } if (uM...