Search found 42 matches

by Pepineros
30 Jan 2021, 13:04
Forum: Ask For Help
Topic: Autohotkey not working properly?
Replies: 11
Views: 143

Re: Autohotkey not working properly?

It looks like you have Notepad set as the default to execute .ahk files. You can search for "default apps" in your Start menu search box to check.
by Pepineros
30 Jan 2021, 13:01
Forum: Ask For Help
Topic: Active Window Always On Top, Off Top if no more ative
Replies: 2
Views: 64

Re: Active Window Always On Top, Off Top if no more ative

Could you wrap your script in code tags for easier reading? Can you say what isn't working right now? - is the name of the active window updated with the "active -" prefix? - if you change focus to a different window, are the names of both windows updated correctly? - can a window lose focus while s...
by Pepineros
30 Jan 2021, 12:37
Forum: Ask For Help
Topic: Need to send characters {} <>
Replies: 4
Views: 86

Re: Need to send characters {} <>

The default escape character in Autohotkey is a backtic:

Code: Select all

`
So sending the following should work:

Code: Select all

`{JSFoundset<db:/dbname/tablename>`}
I don't think you need to escape angle brackets or forward slashes, but not on a PC right now so can't test.
by Pepineros
30 Jan 2021, 08:18
Forum: Ask For Help
Topic: Unquoted strings, *sigh*
Replies: 6
Views: 174

Re: Unquoted strings, *sigh*

The forum rules don't allow me to express my feelings... Well said :mrgreen: I have felt the same way. I'm sure you've figured this out but it helps to choose one method and stick with it. If you like the simple = and don't mind prefacing expressions with %, go for that. If you like walruses and do...
by Pepineros
30 Jan 2021, 08:02
Forum: Ask For Help
Topic: Copying highlighted text in Acrobat to different window in MS Word...
Replies: 13
Views: 759

Re: Copying highlighted text in Acrobat to different window in MS Word...

boiler wrote:
29 Jan 2021, 07:18
...the point about not having DOWN with some of the keys is still valid because it would release the key (essentially perform a down and up) before sending the next key.
Absolutely! You fixed OP's script. Shame they didn't reply.
by Pepineros
29 Jan 2021, 04:16
Forum: Ask For Help
Topic: Clipboard overwriting
Replies: 5
Views: 80

Re: Clipboard overwriting

AHK is smart enough to not execute a command until the previous command has finished. Basically, for every command in your script, AHK waits for Windows to say "I have done what you wanted" before executing the next line. However, when you send the key combination ^c, your system will say "I have do...
by Pepineros
29 Jan 2021, 03:52
Forum: Ask For Help
Topic: Clipboard overwriting
Replies: 5
Views: 80

Re: Clipboard overwriting

Clipwait only waits for the clipboard to contain anything. It doesn't detect change.

Try adding a

Code: Select all

clipboard=
before the second ^c.
by Pepineros
29 Jan 2021, 03:48
Forum: Ask For Help
Topic: Is it possible to "Inject a button class" on a window?
Replies: 8
Views: 238

Re: Is it possible to "Inject a button class" on a window?

I don't think this is possible. If a GUI button is not accessible by its name or ID or (in case of IE) through the DOM, there's not much AHK can do with it directly. A workaround would be to bind a single hotkey to: - activate and resize the window - click the location of the button - minimise the w...
by Pepineros
29 Jan 2021, 03:43
Forum: Ask For Help
Topic: Copying highlighted text in Acrobat to different window in MS Word...
Replies: 13
Views: 759

Re: Copying highlighted text in Acrobat to different window in MS Word...

boiler wrote:
28 Jan 2021, 23:52
You need a space between the key name and DOWN or UP.
I don't think that's true. It should work with or without space between {keyname} and key.
by Pepineros
29 Jan 2021, 03:39
Forum: Ask For Help
Topic: Copying highlighted text in Acrobat to different window in MS Word...
Replies: 13
Views: 759

Re: Copying highlighted text in Acrobat to different window in MS Word...

I would suggest using ^c and ^v instead of the keyname plus down or up; and also to add a sleep or clipwait after sending ^c. Instead of using alt-tab you can use winactivate, so Adobe and Word don't need to be next to each other in your Z-stack (say in case you manually alt-tab to something else in...
by Pepineros
29 Jan 2021, 03:34
Forum: Ask For Help
Topic: Clipboard overwriting
Replies: 5
Views: 80

Re: Clipboard overwriting

Try using a sleep (crude) or clipwait after each ^c.
by Pepineros
29 Jan 2021, 03:32
Forum: Ask For Help
Topic: Blank parameter error Topic is solved
Replies: 4
Views: 93

Re: Blank pararmeter error Topic is solved

If you want to use the default value of the 2nd parameter but specify the 3rd, you need to let ahk know that explicitly by leaving one argument empty. If you want to use the default value of the 3rd parameter you should omit it entirely, i.e. not place a comma after the 2nd argument when calling. On...
by Pepineros
29 Jan 2021, 03:18
Forum: Ask For Help
Topic: Recording keys being held down.
Replies: 1
Views: 32

Re: Recording keys being held down.

What you're describing is normal Windows behaviour when holding down a key.

Could you say which key it is? Do you need it to also perform its normal action on a single press, in addition to a different behaviour when holding it down?

- P
by Pepineros
25 Jul 2020, 00:56
Forum: Gaming
Topic: Script sending to two windows with the same name
Replies: 2
Views: 558

Re: Script sending to two windows with the same name

Presumably you're only running this script while playing, right? In that case you don't need to use #ifwinactive. Can you try the following (untested, sorry), run this script _after_ you run both instances of WoW: Loop { ControlSend,,{w down},World of Warcraft,,A RandomSleep(2000,5000) ControlSend,,...
by Pepineros
25 Jul 2020, 00:46
Forum: Ask For Help
Topic: Why is my control click not working?
Replies: 7
Views: 2223

Re: Why is my control click not working?

Try it with a mousemove to the coordinates you're using, and a regular click (not controlclick) to see if your coords are good. Obviously the target window needs to be active for this. If it turns out that the coords were wrong, I recommend using windowSpy (built in to autohotkey) to find the coords...
by Pepineros
26 Jan 2020, 06:54
Forum: General Discussion
Topic: Tank needs a little help
Replies: 19
Views: 6854

Re: Tank needs a little help

Sorry to hear this sir! Your COM tutorial was a godsend. I will be contributing.

Hope you find something else soon!
by Pepineros
23 Jan 2020, 11:28
Forum: Ask For Help
Topic: GUI CheckBox hotkey and timer
Replies: 3
Views: 468

Re: GUI CheckBox hotkey and timer

Hi, I like this idea. I wrote a script quickly that tackles this but requires 2 global vars, which is not ideal. This can definitely be improved upon by someone with more time and/or experience than me. #noenv #singleinstance,force global started := 0 gui,keytrigger:new gui,add,text,xm ym+3 w80 r1,B...
by Pepineros
23 Jan 2020, 06:11
Forum: Ask For Help
Topic: Help, im new here !
Replies: 1
Views: 221

Re: Help, im new here !

Welcome to the forum! i press f1 and the script turn on exactly script that i want. Assigning F1 to perform an action is very simple in AHK. I'm not sure what you mean by "turning on a script". Are you looking to create a master script with hotkeys that run separate scripts, which in turn perform ot...
by Pepineros
23 Jan 2020, 01:44
Forum: Ask For Help
Topic: Help on using a context menu selection to click on specific coordinates
Replies: 5
Views: 553

Re: Help on using a context menu selection to click on specific coordinates

As a general rule, build your menu once (in the autoexec part of the script), then use a hotkey only to show it. #noenv #singleinstance,force menu,channelmenu,add,Save,click1 menu,channelmenu,add,Open new,click2 menu,channelmenu,add,Select,click3 appskey:: winactivate,the application you want to cli...
by Pepineros
22 Jan 2020, 13:07
Forum: Ask For Help
Topic: Winmove moves Notepad but not browsers
Replies: 5
Views: 407

Re: Winmove moves Notepad but not browsers

Both your first method and the method I posted work fine for me. Could that mean it's related to authorisation / administrator situation? I don't know why that would block me from moving IE but not Notepad... I have admin rights on this system but it is a work laptop so difficult to say exactly how...

Go to advanced search