topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • October 18, 2019, 05:53 AM
  • Proudly celebrating 13 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Maestr0 [ switch to compact view ]

Pages: [1] 2next
1
Mouser's Zone / Re: MiniCap's -captureregselect with Scaled monitor
« on: September 06, 2019, 08:24 AM »
-captureredregselect does not have the same issue, that works without rescaling.
Is it possible to have -captureredregselect select a rectangle the same way as -captureregselect?

2
Mouser's Zone / Re: MiniCap's -captureregselect with Scaled monitor
« on: September 04, 2019, 05:59 AM »
Here's two attachments.
Full Screen is just one monitor as it shows (so scaled 150%).
The second screen the same monitor is when I do the regselect using minicap and the shift-prtscr with Screenshot Captor.
(I did a printscreen and cropped out the extra monitor both times)

3
Mouser's Zone / Re: MiniCap's -captureregselect with Scaled monitor
« on: September 04, 2019, 05:52 AM »
The same thing happens with Screenshot Captor 4.31.2 with shift-prtscrn

4
Mouser's Zone / MiniCap's -captureregselect with Scaled monitor
« on: September 03, 2019, 01:28 PM »
I've always used MiniCap (v 1.40.01) with the following switches:

MiniCap.exe -captureregselect -clipimage -exit

I start it using a hotkey, I select what I want to capture, and it saves to my clipboard, and it exits. Short and sweet.

However, I recently got a new monitor with a very high resolution: 3840x2160
In order to keep things readable, that monitor is scaling to 150%.
Now, when I use the switch -captureregselect, the screen changes resolution, even on my second monitor that is not scaled (ie: 100%). It changes right back after I finish the selection.
When I use -captureredregselect the resolution doesn't change.

How do I fix this?

5
N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: April 10, 2019, 12:12 AM »
Update:
get the newest version of the script here: https://www.dropbox...._2_3.2.0.47.ahk?dl=1
Sorry for the late reply, I knew this update just now.
I replaced the new file and run the start.bat, at first it run with some errors then I just restarted it and it works like a charm now!!! :Thmbsup:
Thanks for this great work :-*

You're very welcome! Please, do not hesitate to let me know if you have any issues or suggestions.

6
N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: April 09, 2019, 12:02 PM »
Hm. It seems to be something in AHK v2...

this v1 code works in v1 without a problem:

but this v2 code throws an error:
If so, then we can do nothing. so maybe just forget about this error.
Thanks for the infos

Right, so, the issue was with the encoding of the script and not the txt file. Open the script in a file editor and encode it as UTF-8-BOM or something similar. I will update the script to 3.2.0.47 as soon as I have it working for the results of "Everything".

Update:
get the newest version of the script here: https://www.dropbox...._2_3.2.0.47.ahk?dl=1

Let me know if you have any more issues, or if any are not yet fixed.

7
N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: April 09, 2019, 07:51 AM »
Hm. It seems to be something in AHK v2...

this v1 code works in v1 without a problem:

but this v2 code throws an error:
If so, then we can do nothing. so maybe just forget about this error.
Thanks for the infos

Nah, we have options, I'm poking other people about it now :)

We couldn't find a solution on Discord, now I've posted in autohotkey forums, let's see what shakes loose...
https://www.autohotk...php?f=76&t=63509

8
N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: April 09, 2019, 06:23 AM »
thank you for such a quick repay!  :up:

What do you get when you the following link in your browser?
https://www.dropbox....hk2_version.ini?dl=1
I open the link above in chrome and it tried to download a file, please see pic below

ah, yes. There's your problem # 2 ;)
It's a safe file, not sure how we can get around that... I'll see if I can have the text in a website url directly instead of in a file.

9
N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: April 09, 2019, 06:21 AM »
I tried to open the file with Scrambled Code name and I got error3.
Regards. :)

Hm. It seems to be something in AHK v2...

this v1 code works in v1 without a problem:
file := "C:\test dir\你好.txt"
run, % file

but this v2 code throws an error:
file := "C:\test dir\你好.txt"
run file

I'll see if I can get around that, somehow :)

10
N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: April 09, 2019, 06:01 AM »
One thing I need to make it clear is that I didn't modified any code in it.

I didn't doubt that, I asked to make sure it was the latest version, as there is always a possibility that the updater didn't work right or something like that.

Replace the contents of your start.bat with this:

REM @echo OFF
SET ShortHandFolder=%~s1
START %ShortHandFolder%app\AHKv2_x32.exe %ShortHandFolder%shorthand3_start.ahk >>%ShortHandFolder%log\batch.log

if %ERRORLEVEL% neq 0 goto ProcessError

:ProcessError
REM error detected running shorthand3_start.ahk: running the script directly instead
START %ShortHandFolder%app\AHKv2_x32.exe %ShortHandFolder%shorthand3_ahk2.ahk

:answer0
SET ShortHandFolder=
REM finished

Here is the content of the error1 comes from:
In   .\app\shorthand3_ahk2_updater.ahk
<!DOCTYPE html><html xml:lang="en" class="maestro" xmlns="http://www.w4.org/1999/xhtml"><head><script nonce="Gwr7GMPeiqNeO2AkPHvU">
window._goch_ = {};
window.addEventListener('click', function(event) {
    'use strict';
    for (var elm = event.target; elm; elm = elm.parentElement) {
        if (elm.id &&
            window._goch_.hasOwnProperty(elm.id) &&
            window._goch_[elm.id].call(elm, event) === false) {
            event.preventDefault();
        }
    }
}, true);


Hmmmmm, that looks like there is an issue with the file the shorthand updater script is trying to download.
What do you get when you the following link in your browser?
https://www.dropbox....hk2_version.ini?dl=1

That's the file it should be trying to get, it gives version information and links for updated files.

I'm still working on the other issues.

11
N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: April 09, 2019, 12:42 AM »
2 Maestr0

here is another bug report

Thank you, much appreciated!

I'm running the latest version 3.2.0.46 (updated var the app)

When i first run this app, I started start.bat since I don't have ahk V2 installed. Then I get the error1(see pic below). But this actually have no matters, I can just close the error window and app can run normally.

Very strange. Can you reply to this message with the contents of your start.bat code in brackets?

Then I started my new search, everything is fine when I was searching English characters but there comes error2 when I searched Chinese characters.(I guess it doesn't suppirt Unicode.)

I'll see if I can change it to support Unicode. Watch this space!

I tried to open the file with Scrambled Code name and I got error3.
Regards. :)

Hmmmmm, possibly also due to Unicode. I'll look into it!

12
N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: February 06, 2019, 04:39 AM »
Thanks for the info, Shades! I'll look into it.

My current idea is to have the batch file check for (and download as needed) the #include files the main script needs. That can't be done in the script itself because it throws an error when it doesn't find it.
If I can't reliably get the batch file to get the required included files, I'll use a script to check for the required files and then run the main script.

Oh, and yeah, the downloaded files are from my public dropbox folder.

13
N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: February 05, 2019, 03:25 PM »
Shades, you seem to be a Batch file guru, is there a failsafe way in a batch file to download files from within the batch file? Bitsadmin is deprecated, sadly :(

14
N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: February 05, 2019, 02:35 PM »
thank you :Thmbsup:
it works well now :D
Glad to hear it! If you run into any more issues or have suggestions/feedback, do not hesitate to let me know!

15
N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: February 05, 2019, 04:15 AM »
i don't have ahk v2 installed, so i run the start.bat. it works fine on its first run, then a update message popup. while i got a message like this after i install the update. and i cant even find this file in the inc folder.

Hi, thank you for your feedback!

It doesn't matter if v2 is installed, you only need the supplied .exe file.

I think what's going wrong is that you are missing the sh3_inc_gui_positioning.ahk file in the .\inc\ folder.
I see that for some reason that file was missing from the .zip file. I've added it now. Get it here: https://www.dropbox....2.0.37_full.zip?dl=1

For the future, I will add a check that makes sure that all included files are present and download them as necessary to prevent this from happening in the future.

17
N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: January 12, 2019, 02:12 PM »
You were right about the alterations I made to the ini file. Those appear to be unnecessary.

Thank you for the confirmation. I don't know how to code to prevent that. There's no communication between Everything and the script that allows for that as far as I can see.

18
N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: January 11, 2019, 02:33 PM »
@echo OFF

SET ShortHandFolder=%~s1
START %ShortHandFolder%app\AHKv2_x32.exe %ShortHandFolder%shorthand3_ahk2.ahk
SET ShortHandFolder=

gotcha, will use that one (and hope Windows doesn't stop using shortfoldernames anytime soon :D

19
N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: January 11, 2019, 02:32 PM »
I can expand on that.  First I tried the search term 'look' and I got results but only from the C:\  partition. Then I added the highlighted text (I have several pen drives, each with it's own drive letter) to  the ini file and now the same search term returns results from multiple partitions.

[ Invalid Attachment ]

oh, the system_list entry there is not required for searching. Those are just used for scoring. I think it's more likely that results from earlier searches didn't find those other drives, because "Everything" wasn't finished building the index yet. Could you remove the additions from system_list and see if you can confirm my thoughts?

20
N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: January 06, 2019, 09:37 AM »
alternatively, I guess I could use code like this (but if the long paths work with the quotation marks, I don't see the need):
@echo OFF

SET ShortHandFolder=%~s1
START %ShortHandFolder%app\AHKv2_x32.exe %ShortHandFolder%shorthand3_ahk2.ahk
SET ShortHandFolder=

21
N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: January 06, 2019, 09:20 AM »
I downloaded the 3.2.0.27 version and tried to execute it. That experience warranted the following suggestions:
- the content of the 'start.bat' file contains / as folder separator. That didn't fly on this version of Windows (10.0.16299 Enterprise edition), had to be \.
- the content of the 'start.bat' file could be improved upon:
    @ECHO OFF

    SET ShortHandFolder=%~dp0
    START %ShortHandFolder%app\AHKv2_x32.exe %ShortHandFolder%shorthand3_ahk2.ahk
    SET ShortHandFolder=

- Now the folder you executed the script in, is captured and there is no way for Windows to get confused about where to look for files. The last line is there to clean up the content of the variable and emptying variables causes them to be removed from memory.   
- Do not use quotes |(in the START line) if AHK has never been installed on the system. Windows 10 will ask you which application it needs to use to execute the ahk script (even though that is clearly specified).
  (caveat: I never use folder names with spaces in it. Not in file names either if I can help it.)
- All my portable applications are stored in a separate folder not located on the C:\ partition. Same as my data. I'm weird that way. So I had to add these partitions to the ini file myself. Maybe I overlooked things, but I didn't find an option to add those partitions in the GUI. Not that big of a deal though.

After these changes it did work as expected. So thanks for a nice piece of software.

Thank you, I will investigate and fix it where I can. Comments and feedback are much appreciated!

update
For testing purposes, I made sure my folder has spaces in it. Your batch file suggestion therefore did not work as it was stated. I've replaced it with the following:
@echo OFF

SET ShortHandFolder=%~dp0
START "" "%ShortHandFolder%app\AHKv2_x32.exe" "%ShortHandFolder%shorthand3_ahk2.ahk"
SET ShortHandFolder=

I've tried renaming the extension to one that has no associated programs (.ahk3), and the batch-script worked. Maybe I misunderstood your remark regarding the use of quotes in the start line?

My OS is on a separate partition, as are my programs and my files/scripts.

Can you elaborate what you mean when you had to "add those partitions to the ini file"?

22
N.A.N.Y. 2019 / Re: NANY 2019: AHK Script Center
« on: December 30, 2018, 09:22 AM »
For my purposes, I will create a Setup.exe for the Mega Pack that creates a proper shortcut to run AutoHotkey.exe and AHK Script Center.ahk in whatever folder the user specifies. I have just left that static shortcut in there for now that can easily be updated.

You could have the installer to check the registry if there is a link to the .ahk file and only download if it hasn't been registered yet.

23
Living Room / Re: snipping tool with image editor
« on: December 23, 2018, 08:30 AM »
I've used MiniCap for years and years. Great little tool.
MiniCap.exe -captureregselect -clipimage -exit
for the win :D

24
Screenshot Captor / Re: Google Drive Option
« on: December 23, 2018, 07:34 AM »
Alternatively, you can use dropbox and imgur.com.

The benefit of dropbox is that it could upload files automatically.

Imgur has an API which you could use. Examples of that you can see here: https://help.imgur.c...2766-Tools-for-Imgur


25
N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: December 22, 2018, 08:11 AM »
Interesting. I'll test this out when I have more time.

In the meantime, could you make a list of some ways in which Shorthand 3_2 differens from FARR, apart from using Everything as the underlying file search engine?

Ah, I'd need to look at FARR again, it's literally been years since I ran it last.

Comparing the options, there is a lot of similar things, but FARR is currently more customizable.
Having said that, Shorthand 3_2 is open source (aside from the included .exe files), whereas FARR is not.

Pages: [1] 2next