Search found 65 matches

by eelrod
18 Oct 2018, 10:23
Forum: Ask for Help (v1)
Topic: Send text to non-focus Notepad in one chunk
Replies: 6
Views: 1999

Re: Send text to non-focus Notepad in one chunk

For question 1, perhaps some of the SendInput & ControlSend commands could be combined? Also, maybe look into seeing if modifying SetBatchLines and SetControlDelay helps. SetBatchLines , -1 SetControlDelay , 0 #IfWinActive, ahk_exe SDLTradosStudio.exe ~!q:: OriginalCb := ClipboardAll ;~ back up curr...
by eelrod
18 Oct 2018, 09:05
Forum: Ask for Help (v1)
Topic: Is ^!7 a valid hotkey?
Replies: 3
Views: 781

Re: Is ^!7 a valid hotkey?

Something to note is that this isn't the same as the numberpad numbers; it only will work with the number row. If you want to use the numberpad, it's ^!NumPad7::
by eelrod
18 Oct 2018, 07:39
Forum: Ask for Help (v1)
Topic: Excel COM SaveAs with variable for name - XL.ActiveWorkbook.SaveAs("C:\" variable ".xlsx" not working
Replies: 3
Views: 2131

Re: Excel COM SaveAs with variable for name - XL.ActiveWorkbook.SaveAs("C:\" variable ".xlsx" not working

Since you stated that you're using AHK to create a backup of your Excel file every 5 minutes, are you intending to do a saveas? If so, you will always be working in a copy (after the first saveas); the latest copy, but still a copy. Another option may be to push a regular save and then just copy the...
by eelrod
17 Oct 2018, 11:02
Forum: Gaming Help (v1)
Topic: Game detects AHK and closes, any way to bypass this? Topic is solved
Replies: 2
Views: 2081

Re: Game detects AHK and closes, any way to bypass this? Topic is solved

One of a few possible ways is to compile your script and call it something that is not "autohotkey.exe". Also, make sure no other AHK scripts are running.
by eelrod
17 Oct 2018, 10:49
Forum: Ask for Help (v1)
Topic: Two mouse button : invalid hotkey ??
Replies: 3
Views: 1026

Re: Two mouse button : invalid hotkey ??

Put spaces before and after the ampersand.
MButton & LButton::a
by eelrod
17 Oct 2018, 10:41
Forum: Ask for Help (v1)
Topic: Inline images to forum?
Replies: 1
Views: 452

Re: Inline images to forum?

The image tag seems to work for me:
Image
What have you attempted? Maybe it's a syntax issue?
by eelrod
17 Oct 2018, 08:49
Forum: Ask for Help (v1)
Topic: combobox listing, fetching the data you selected.
Replies: 2
Views: 623

Re: combobox listing, fetching the data you selected.

In the IniWrite section, the count-ID# and count-list are being overwritten each time, so the last entries are the only ones retained for these two IniWrites; is that intended?
by eelrod
17 Oct 2018, 08:21
Forum: Ask for Help (v1)
Topic: Delay in between keystrokes
Replies: 3
Views: 1449

Re: Delay in between keystrokes

Personally, I often have issues with SendPlay (likely stemming from my own ignorance). Anyway, I would suggest using SendEvent. Try this:

Code: Select all

+p::
SetKeyDelay , 100
Loop , 100
    SendEvent , {down 23}{enter}
Return
by eelrod
17 Oct 2018, 07:55
Forum: Ask for Help (v1)
Topic: Delay between keys
Replies: 2
Views: 1073

Re: Delay between keys

It appears that there may be two issues. The first is that the hotkey is calling itself since the hotkey is "1" and it is sending a "1". The second (possible) issue is that there is a space between "1" and "{enter}"; this will really send a space, so you must be careful unless, of course, that is wh...
by eelrod
16 Oct 2018, 12:06
Forum: Ask for Help (v1)
Topic: How to perform a find ? Topic is solved
Replies: 4
Views: 1080

Re: How to perform a find ? Topic is solved

For the Do-While Loop in VBA, you can use While in AHK. Something like:

Code: Select all

While objFind.Execute
{
    objFind.FoundTextRange.Font.Fill.ForeColor.SchemeColor = pbSchemeColorAccent1
}
by eelrod
16 Oct 2018, 09:01
Forum: Ask for Help (v1)
Topic: I have problem with script turn off all programs
Replies: 3
Views: 906

Re: I have problem with script turn off all programs

I see, it appears that there isn't a built-in way to include multiple names in the exclude parameter. Based on what you did above, here's what I was thinking: ArrayT := ["Task Manager" , "Program Manager" , "NVIDIA GeForce Overlay"] WinGet , id , List Loop % id { this_id := id%A_Index% WinGetTitle, ...
by eelrod
16 Oct 2018, 08:07
Forum: Ask for Help (v1)
Topic: From Notepad to Word .doc and back Topic is solved
Replies: 7
Views: 1800

Re: From Notepad to Word .doc and back Topic is solved

Does it successfully execute your ^!i macro? Something that might help is to clear out your clipboard before Send ^a^c and stick a ClipWait after it.
by eelrod
16 Oct 2018, 08:03
Forum: Ask for Help (v1)
Topic: Script that "monitors" a coordinate for certain pixel color
Replies: 3
Views: 1310

Re: Script that "monitors" a coordinate for certain pixel color

It looks like your code works, it there are a couple of issues. The first is just a clarification based on one of your comments in the code. Where it says "Runs 100 time a second" next to the timer, it's actually 10 times a second as you have it because the timer is based in milliseconds. The second...
by eelrod
15 Oct 2018, 11:32
Forum: Ask for Help (v1)
Topic: autowalker - noob question
Replies: 9
Views: 1953

Re: autowalker - noob question

In your original script, it is only pressing each key, not holding. In eqv's script, it is holding each key for 50 ms. If you want it to hold for the entire time until the next key, you would have to do something like: Loop { Send , {down up}{up down} Sleep , 1000 Send , {up up}{down down} Sleep , 1...
by eelrod
15 Oct 2018, 11:02
Forum: Ask for Help (v1)
Topic: Photoshop : MMB + LMB = hotkey
Replies: 13
Views: 3560

Re: Photoshop : MMB + LMB = hotkey

The + character is special, so you will probably need to use an escape character or use braces around it. How about something like this:

Code: Select all

MButton & LButton::
Send , ^{+}
Return
by eelrod
15 Oct 2018, 10:59
Forum: Ask for Help (v1)
Topic: autowalker - noob question
Replies: 9
Views: 1953

Re: autowalker - noob question

Another option is to use ControlSend to send it directly to the game.
https://autohotkey.com/docs/commands/ControlSend.htm
by eelrod
15 Oct 2018, 08:17
Forum: Ask for Help (v1)
Topic: Show/Hide StickyNotes with ahk, my script not work as expect
Replies: 3
Views: 1100

Re: Show/Hide StickyNotes with ahk, my script not work as expect

I'm using Win10, version 1809 with the Sticky Notes app updated to the latest version. In my testing, the title for Sticky Notes is blank but IS in the WinText. Maybe try something like this (untested): ^f8:: WinText := "Sticky Notes" WinGet , WinState , MinMax ,, %WinText% If (WinState = -1) WinRes...
by eelrod
15 Oct 2018, 07:55
Forum: Ask for Help (v1)
Topic: Using SetTimer with a small delay is difficult to interrupt. Why?
Replies: 3
Views: 983

Re: Using SetTimer with a small delay is difficult to interrupt. Why?

While it might be because the delays are short, I suspect that it might be due to how you're calling the timer. I would suggest that, instead of calling your timer within the function that ends up being your timer, to call it from the hotkey itself. So, per your first example, something like this: S...
by eelrod
15 Oct 2018, 07:42
Forum: Ask for Help (v1)
Topic: autowalker - noob question
Replies: 9
Views: 1953

Re: autowalker - noob question

I don't have much experience with v2 as I use v1.1x, but I've found that sometimes if SendInput doesn't work, other variants of send might, such as SendEvent or SendPlay.
by eelrod
15 Oct 2018, 07:37
Forum: Ask for Help (v1)
Topic: I have problem with script turn off all programs
Replies: 3
Views: 906

Re: I have problem with script turn off all programs

Is this the full code? In the first line, there is a variable called "excluded". Somewhere above this portion of code, you can set the excluded variable to include the titles you mentioned that you don't want to close.

Go to advanced search