Search found 507 matches

by BGM
14 Oct 2022, 20:13
Forum: Ask for Help (v1)
Topic: win+K and don't launch office app Topic is solved
Replies: 11
Views: 2094

Re: win+K and don't launch office app Topic is solved

IT WORKS! :bravo:

THANK YOU SO MUCH FOR THAT!
by BGM
13 Oct 2022, 14:25
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 298
Views: 129587

Re: Screen clipping

Revisiting... The script works for everything except the OCR part. The function is called fine, but the ocr function returns blank for the text. I've not figure it out. I'm currently running AutoHotkey 1.1.34.03 Unicode 32-bit on Windows 10.0.18363, if that might matter.
by BGM
21 Jun 2022, 10:39
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 298
Views: 129587

Re: Screen clipping

Eeewww, could be any number of nothings that is the problem. Maybe add your executable to your antivir whitelist. Another thing, the script might or might not be unicode - so to compile it to exe you need to use the right ahk compilation mode (I think). And this script requires some external librari...
by BGM
09 Jun 2021, 21:51
Forum: Ask for Help (v1)
Topic: How to get System PATH rather than user PATH
Replies: 2
Views: 358

Re: How to get System PATH rather than user PATH

Thanks for the alternate function - that *does* fetch the system PATH. I'm using RapidIEE to inspect the PATH - and envget fetches User Variables, whilst the function you just showed fetches System Variables. It shows all the paths concatenated with ; like it ought to. Wait - I tried envget again, a...
by BGM
09 Jun 2021, 21:09
Forum: Ask for Help (v1)
Topic: How to get System PATH rather than user PATH
Replies: 2
Views: 358

How to get System PATH rather than user PATH

In my script, I want to fetch the environmental var, PATH so I can search it.

My problem is that envget will fetch only the user's PATH, but I need the system's PATH.

Am I just missing something?
by BGM
09 Jun 2021, 17:19
Forum: Ask for Help (v1)
Topic: Get file path from fileexist with wild card
Replies: 4
Views: 535

Re: Get file path from fileexist with wild card

Thank you again for your help. That works like a charm.

I figured I would have to use a file loop.
But I never would have thunk to use norm.
by BGM
09 Jun 2021, 16:52
Forum: Ask for Help (v1)
Topic: Get file path from fileexist with wild card
Replies: 4
Views: 535

Re: Get file path from fileexist with wild card

Well, I wasn't looking for someone to write the code for me, but thank you very much! It looks like it might work. What if the file is named with . OR _ ?? - such as somefile5.7.2.txt AND somefile5_7_1.txt I indeed, seem to have both cases. Here I've tried to add that to the regex, but it still only...
by BGM
09 Jun 2021, 15:44
Forum: Ask for Help (v1)
Topic: Get file path from fileexist with wild card
Replies: 4
Views: 535

Get file path from fileexist with wild card

My script needs to find a particular file. I can do this: thisfile := fileexist("c:\somefolder\myfile*.txt") and this will return the "A" for the Archive attribute. How can I get the actual file path of that file that I know exists? What my dilemma is, is that I have two files in a particular direct...
by BGM
09 Jun 2021, 15:43
Forum: Ask for Help (v1)
Topic: How to know if filedelete deleted a file?
Replies: 4
Views: 429

Re: How to know if filedelete deleted a file?

Thank you all.
by BGM
09 Jun 2021, 11:35
Forum: Ask for Help (v1)
Topic: How to know if filedelete deleted a file?
Replies: 4
Views: 429

How to know if filedelete deleted a file?

In my script, I need to clean up some files in a directory, so I use filedelete to delete them if they exist (they may not). I'm logging the deletions, so how can I tell if a file was actually deleted? filedelete, %whatfile% if(errorlevel = 0) ;log that the file was deleted If no file was deleted, I...
by BGM
06 Jun 2021, 21:39
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 298
Views: 129587

Re: Screen clipping

That code tries to tell whether you are using a unicode version of auohotkey.
If you are not using the unicode version then it displays an error box.
If you are running the unicode version, then it will run itself - that is, the script runs the script again and then exits it's own instance.
by BGM
29 Oct 2020, 09:53
Forum: Ask for Help (v1)
Topic: gui that allows cmdline executions
Replies: 4
Views: 493

Re: gui that allows cmdline executions

Funny, this code works on my own computer, but doesn't work on others. I tried it on another computer and it keeps the gui from launching the first time, not the second.
by BGM
23 Oct 2020, 08:38
Forum: Ask for Help (v1)
Topic: script for treeview of a folder structure?
Replies: 3
Views: 647

Re: script for treeview of a folder structure?

The docs have an example of how to make tree items and sub-tree items. Anyway, I spent the time. loop, files, %rootfolder%\*, D { parentfolder := a_loopfilename parentitem := tv_add(a_loopfilename) loop, files, %a_loopfilefullpath%\*, D { tv_add(a_loopfilename,parentitem) } }
by BGM
22 Oct 2020, 16:15
Forum: Ask for Help (v1)
Topic: script for treeview of a folder structure?
Replies: 3
Views: 647

script for treeview of a folder structure?

Is there a script already made for a treeview to load a folder structure? I don't want to re-invent a wheel. I want to choose a folder and have it and it's subfolders appear as items in the tree. I can probably figure out how to do this, but was hoping to save some time with kindly-already-existing ...
by BGM
22 Oct 2020, 13:51
Forum: Ask for Help (v1)
Topic: gui that allows cmdline executions
Replies: 4
Views: 493

Re: gui that allows cmdline executions

Hmmm, I think I might have figured it out (always happens after I post). I only need to kill the second instance of the gui. If I do this, then it leaves any first instance alone, but if I call it with parameters, it allows the hidden instance to run. #singeinstance, off if not %0% { winget, windowc...
by BGM
22 Oct 2020, 13:31
Forum: Ask for Help (v1)
Topic: gui that allows cmdline executions
Replies: 4
Views: 493

gui that allows cmdline executions

My app is a commandline application with a GUI for its settings. If you run the program without parameters it opens the GUI. But if you run it with parameters, it runs the script without any GUI. I have the script set to look for commandline parameters and if there are none, it will launch the GUI, ...
by BGM
06 Oct 2020, 16:49
Forum: Ask for Help (v1)
Topic: Special Keyboard Keys on Win 10
Replies: 2
Views: 608

Re: Special Keyboard Keys on Win 10

Hey! That did the trick! I disabled both the power and sleep buttons in Power Settings, and now the keyboard special buttons work without turning off the computer. Thanks! I never thought of that. Actually, I must have had them disabled on my Win7, because I figure the same thing would have happened...
by BGM
06 Oct 2020, 10:40
Forum: Ask for Help (v1)
Topic: Special Keyboard Keys on Win 10
Replies: 2
Views: 608

Special Keyboard Keys on Win 10

On my keyboard, I have a Power button and a Standby button next to the media keys. When I set up hotkeys, the media keys work and get intercepted properly. However, if I use the Sleep hotkey, and attach a messagebox to it, the computer goes to sleep, and when I wake it up, I can see the messagebox t...
by BGM
25 May 2020, 21:36
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 298
Views: 129587

Re: Screen clipping

I tried this. I used the win+Lbutton to make a clipping, then tried ctrl+x. It gives me an error box saying the file 24630312 does not exist. Strange. I figured out it happens on this line: Clipboard := ocr(pIRandomAccessStream, "en") Now, Using the win+Lbutton, we have created no files - only paste...

Go to advanced search