Search found 232 matches

by MilesAhead
11 Jul 2019, 18:43
Forum: Forum Issues
Topic: change password to something memorable?
Replies: 3
Views: 1820

Re: change password to something memorable?

Thanks. It is good to be back. I finally got a Laptop with W10 on it. Android devices are fine but no way I can totally give up on Windows. :)
by MilesAhead
08 Jul 2019, 09:00
Forum: Forum Issues
Topic: change password to something memorable?
Replies: 3
Views: 1820

change password to something memorable?

I got back into my account for the first time in a while. Now I have the "whole bunch of letters and numbers" password issued by using the forgot my password mechanism. I cannot for the life of me find the button to allow me to change the password to something I can remember. Nothing in User Control...
by MilesAhead
15 Jul 2017, 08:39
Forum: Ask For Help
Topic: How to move caret (text cursor) backwards in a line Topic is solved
Replies: 3
Views: 1428

Re: How to move caret (text cursor) backwards in a line Topic is solved

If what you mean is the SendInput is going into an edit type control and after it is done you want the cursor where the asterisk is, then

Code: Select all

+^h::
    SendInput, (B)(I)(U)(/B)(/I)(/U)
    SendInput,{Left 12}
by MilesAhead
06 Jul 2017, 09:20
Forum: Ask For Help
Topic: Variable Incrementing
Replies: 4
Views: 1106

Re: Variable Incrementing

Instead of individual variables what you want to do seems perfectly suitable for Pseudo-Arrays. Search in the help for examples. Basically it is a variable name with a number tacked on the end. 0 has the count of items in the array which are indexed from 1 to count. The examples in the help show how...
by MilesAhead
23 Jun 2017, 15:00
Forum: Ask For Help
Topic: Is Windows Explorer context menu persistent?
Replies: 1
Views: 706

Re: Is Windows Explorer context menu persistent?

You could make a shortcut in the StartUp folder so that the program will start with Windows. #SingleInstance,force could be used so that another instance launched by context menu will replace the current one with the command line argument being the file right clicked on. Have the hotkey ignore the c...
by MilesAhead
16 Jun 2017, 12:41
Forum: Ask For Help
Topic: SendKeys from an array Topic is solved
Replies: 3
Views: 1189

Re: SendKeys from an array Topic is solved

Here's a quick and dirty demo of using an associative array to associate the numpad keys with urls SendMode,Input urls := {Numpad1: "www.microsoft.com", Numpad2: "www.google.com", Numpad3: "www.yahoo.com"} Numpad1:: Numpad2:: Numpad3:: MsgBox % urls[A_ThisHotkey] return Esc:: ExitApp Edit: Nightwolf...
by MilesAhead
15 Jun 2017, 12:44
Forum: Ask For Help
Topic: How can I grab text from a file and put it in a textedit
Replies: 5
Views: 1337

Re: How can I grab text from a file and put it in a textedit

Nacrioz wrote:It works, though is there a way to put it into a existing text edit?
If you look in the help for the Edit gui control it shows an example how to put the entire file into the control. Search on:
GuiControl,, MyEdit, %FileContents%

to see the example snippet.
by MilesAhead
15 Jun 2017, 11:39
Forum: Ask For Help
Topic: How can I grab text from a file and put it in a textedit
Replies: 5
Views: 1337

Re: How can I grab text from a file and put it in a textedit

Try using "global" as the first line of the function
Global ; now the function can see Filelocate and UserTextInput defined in the Gui code
by MilesAhead
13 Jun 2017, 15:22
Forum: Ask For Help
Topic: [Resolved] My Scroll Lock toggle is inconsistent and only works the first couple times. Topic is solved
Replies: 4
Views: 1590

Re: My Scroll Lock toggle is inconsistent and only works the first couple times. Topic is solved

So, I discovered it only works when Chrome is in the foreground. What gives? edit: it was some other scripts I had on top of this one. I made a seperate .ahk file and it works fine. Case closed. It is easy to leave a #IfWinActive hanging effecting all code below it. That is why many ahk coders get ...
by MilesAhead
13 Jun 2017, 11:00
Forum: Ask For Help
Topic: [Resolved] My Scroll Lock toggle is inconsistent and only works the first couple times. Topic is solved
Replies: 4
Views: 1590

Re: My Scroll Lock toggle is inconsistent and only works the first couple times. Topic is solved

A simple fix easy to test would be to change the hotkey from ~ScrollLock to $ScrollLock. Use Send to send ScrollLock so that the system updates. I would give a 1/4 second delay (Sleep, 250) then do the GetKeyState() test. What I am thinking is when using the tilde it may be a timing issue. The state...
by MilesAhead
03 Jun 2017, 09:46
Forum: Ask For Help
Topic: Find string in a very large file
Replies: 4
Views: 1716

Re: Find string in a very large file

jeeswg wrote: Btw as was said above 60,000 lines isn't necessarily that much.
Just call FileGetSize as a sanity check. If it is on the large side use the loop method. Or you could amaze your friends and do API calls to memory map the file(for those with too much time on their hands.) :)
by MilesAhead
03 Jun 2017, 08:13
Forum: Ask For Help
Topic: Find string in a very large file
Replies: 4
Views: 1716

Re: Find string in a very large file

How long are the lines? When I calculate 60000 lines of 256 chars each it is still less than 15 MB. So call it 30 MB for double byte characters. Seems like it may be fine to load the entire file into a variable and search it. At least worth a benchmark to compare it to reading the file in a loop.
by MilesAhead
16 May 2017, 17:47
Forum: Ask For Help
Topic: Recover accidentally closed window/program
Replies: 16
Views: 4850

Re: Recover accidentally closed window/program

Well goodness, if I could do all that I wouldn't be here asking! :lol: All of that was... wait for it... miles ahead of me. :trollface: I'll keep building on the code I have so far. I need to figure out the array and WMP WinHide/WinMinimize issue. I used Send, #{Down} in place of the added WinMinim...
by MilesAhead
16 May 2017, 08:08
Forum: Ask For Help
Topic: Recover accidentally closed window/program
Replies: 16
Views: 4850

Re: Recover accidentally closed window/program

I think the approach I would take would be to use a FIFO queue, which is easily implemented using Object functions such as Push and RemoveAt. Items in the queue should have at least the window handle and the time they were hidden. Periodically a routine should take an entry from the front of the que...
by MilesAhead
16 May 2017, 07:42
Forum: Ask For Help
Topic: Latest AHK download flagged by multiple antivirus
Replies: 9
Views: 2069

Re: Latest AHK download flagged by multiple antivirus

Nobody who posts a VirusTotal result seems to take note of the graphic in the top right corner if there are any scans that show red. If you take a look at the graphic is shows the arrow in the green. To me that indicates the file is likely benign. That little graphic is user-generated. It indicates...
by MilesAhead
15 May 2017, 15:47
Forum: Ask For Help
Topic: Latest AHK download flagged by multiple antivirus
Replies: 9
Views: 2069

Re: Latest AHK download flagged by multiple antivirus

I downloaded the latest installer from https://www.autohotkey.com/download/ ...Either that or they are somehow serving a malicious, modified installer. Who is they? This site does not serve up malicious .exes It's not uncommon for a website's security to be compromised and legitimate files to be re...
by MilesAhead
13 May 2017, 10:23
Forum: Ask For Help
Topic: Recover accidentally closed window/program
Replies: 16
Views: 4850

Re: Recover accidentally closed window/program

Here is another on a similar idea. Skrommel took a different approach with Gone In 60 Seconds. When you click the 'x' or Alt F4 a window, he hides it. Then if 60 seconds go by without you trying to recover it, he actually closes it. Source is included. It may be worth a search in DonationColder.com ...
by MilesAhead
13 May 2017, 08:39
Forum: Ask For Help
Topic: Recover accidentally closed window/program
Replies: 16
Views: 4850

Re: Recover accidentally closed window/program

One thing that bugged me was the lack of an MRU list in Windows for Explorer folders and programs. I wrote a few utilities to watch the active window and make it easier to reopen folders or programs that were recently closed. These are all fully enabled freewares: ReOpen - has two list boxes. One fo...

Go to advanced search