Search found 557 matches

by MaxAstro
27 Mar 2018, 09:45
Forum: Ask For Help
Topic: help: #IfWinActive
Replies: 4
Views: 775

Re: help: #IfWinActive

I don't see any obvious errors. As long as that does what you need it to, it should be fine.
by MaxAstro
27 Mar 2018, 08:25
Forum: Ask For Help
Topic: How to make it so that..
Replies: 3
Views: 683

Re: How to make it so that..

You could do this with a couple variables and a SetTimer, avoiding creating or reading any files. Something like this: global CurrentDay := "" global RanToday := false SetTimer, DailyLoop, 1000 DailyLoop() { if (CurrentDay != A_DD) { RanToday := false CurrentDay := A_DD } if (!RanToday) { ; Put once...
by MaxAstro
26 Mar 2018, 15:36
Forum: Ask For Help
Topic: Help with variables assigned to buttons
Replies: 3
Views: 607

Re: Help with variables assigned to buttons

Having had a similar problem myself with GUI variables and functions (and assuming you actually mean functions, and not labels), I would guess the most likely problem is that your GUI variable is not super-global and the function is not importing the variable. Try putting global at the start of the ...
by MaxAstro
26 Mar 2018, 14:16
Forum: Ask For Help
Topic: help: #IfWinActive
Replies: 4
Views: 775

Re: help: #IfWinActive

I suggest you use a hotkey for this instead of a hotstring, as the required keyboard shortcuts won't work reliably in a hotstring. Something like this: ^r:: Send ^+e ; Control + Shift + E is the Gmail shortcut to center justify text Send This text is centered. Send {Enter} Send ^+l ; Control + Shift...
by MaxAstro
26 Mar 2018, 08:25
Forum: Ask For Help
Topic: Pixelsearch problem?? Topic is solved
Replies: 11
Views: 3139

Re: Pixelsearch problem?? Topic is solved

Oh, I didn't notice the difference in function name. Silly me. >.<

If I am reading that code correctly, that function doesn't need anything else from your post except itself, right? I could just copy it and paste it into gdip_imagesearch.ahk and it will work fine?
by MaxAstro
23 Mar 2018, 15:26
Forum: Ask For Help
Topic: Pixelsearch problem?? Topic is solved
Replies: 11
Views: 3139

Re: Pixelsearch problem?? Topic is solved

MaxAstro FYI there is a gdip pixelsearch made by Tic , here is a comparison i made between gdip imagesearch and gdip pixelsearch both searching for 1 pixel. Greetings Forgive my confusion - isn't that the library I included in my post? Is there a different GDI+ pixelsearch than the one I am using?
by MaxAstro
23 Mar 2018, 10:05
Forum: Ask For Help
Topic: Simple script that types from a collection Topic is solved
Replies: 3
Views: 558

Re: Simple script that types from a collection Topic is solved

Rohwedder wrote:Hallo,
try:

Code: Select all

NumPad1::Send https://autohotkey.com/docs/commands/Hotstring.htm
NumPad2::Send https://autohotkey.com/docs/commands/Hotkey.htm
I wish this forum had an upvote system. Subtle, yet effective. :)
by MaxAstro
23 Mar 2018, 09:45
Forum: Ask For Help
Topic: Pixelsearch problem?? Topic is solved
Replies: 11
Views: 3139

Re: Pixelsearch problem?? Topic is solved

If you need to search a whole screen's worth of pixels and not have it take a super long time, use the GDI+ image search library instead of PixelSearch. Both .ahk files you need to #Include are attached to this post. Here's an example pixelsearch; it will tell you the color of the pixel you click on...
by MaxAstro
23 Mar 2018, 09:35
Forum: Ask For Help
Topic: AHK clicks window button before it is ready
Replies: 2
Views: 466

Re: AHK clicks window button before it is ready

Use WinWaitActive instead of WinWait. If you are still having problems, put a timeout on the WinWaitActive and some kind of error catching fix the problem.
by MaxAstro
22 Mar 2018, 11:39
Forum: Ask For Help
Topic: alter popup window text
Replies: 8
Views: 1121

Re: alter popup window text

No, that's not a terrible idea; you can embed a GUI into its parent window so well that it's basically impossible for the client to tell that it's a separate GUI. I do that with one of my scripts and it's pretty much seamless if you do it right. If all you want to do is change the message that the u...
by MaxAstro
22 Mar 2018, 11:31
Forum: Ask For Help
Topic: Block keystroke inputs from the user
Replies: 3
Views: 545

Re: Block keystroke inputs from the user

You could assign every key on the keyboard to an #If hotkey that just returns, and turn that hotkey on when you want to block input.
by MaxAstro
22 Mar 2018, 10:57
Forum: Ask For Help
Topic: Problem with clipboard not being detected for IF statement. Topic is solved
Replies: 5
Views: 731

Re: Problem with clipboard not being detected for IF statement. Topic is solved

My experience with sending key-down and key-up presses is that sometimes AHK gets "stuck" and doesn't release a key when it should; possibly that is happening here due to the multiple key-downs in a row? You might try just doing send ^c and see if that makes a difference.
by MaxAstro
22 Mar 2018, 10:19
Forum: Ask For Help
Topic: SendInput array
Replies: 16
Views: 2764

Re: SendInput array

Total janky workaround, but if it's only failing with SendInput, could you just do something like MyVar := DataArray[1] and then SendInput %MyVar%?
by MaxAstro
21 Mar 2018, 14:19
Forum: Ask For Help
Topic: If window exists, minimize and sendcontrol
Replies: 3
Views: 596

Re: If window exists, minimize and sendcontrol

The only way to tell really is to just try it and find out, unfortunately.
by MaxAstro
21 Mar 2018, 14:14
Forum: Ask For Help
Topic: Is this even possible? Copy/Paste/Click
Replies: 1
Views: 394

Re: Is this even possible? Copy/Paste/Click

Most of this is pretty easy, but clicking on the link might be hard. Actually, I haven't used Google sheets before; I don't know if getting the numbers out of that will be hard. I kinda suspect it will be since there isn't COM integration like Excel. You might need to use Excel instead. Pasting the ...
by MaxAstro
21 Mar 2018, 14:10
Forum: Ask For Help
Topic: If window exists, minimize and sendcontrol
Replies: 3
Views: 596

Re: If window exists, minimize and sendcontrol

Not all windows will let you send text to them while minimized. Notepad should, though, I think. Are you sure you are getting the correct handle for the window? Can we see your code?
by MaxAstro
21 Mar 2018, 14:08
Forum: Ask For Help
Topic: msgbox and objects ?
Replies: 2
Views: 912

Re: msgbox and objects ?

When you use a continuation section, you still need to put a % so that it knows you aren't sending a literal parenthesis.

EDIT: Sorry, that's slightly wrong, it figures out the parenthesis just fine but you do still need the %.
by MaxAstro
21 Mar 2018, 08:43
Forum: Ask For Help
Topic: alter popup window text
Replies: 8
Views: 1121

Re: alter popup window text

Most likely, yes, if WinSpy won't detect anything then it's often very hard to make AHK interact with it.
by MaxAstro
21 Mar 2018, 08:38
Forum: Ask For Help
Topic: what is the version of the ahk ?
Replies: 8
Views: 1569

Re: what is the version of the ahk ?

I could be wrong, but I believe the expanded menu only shows if you are running the script directly, instead of compiling it into an exe file.
by MaxAstro
21 Mar 2018, 08:31
Forum: Ask For Help
Topic: unreliable string input by AHK
Replies: 3
Views: 607

Re: unreliable string input by AHK

Instead of using ControlSendRaw, you can use regular ControlSend and escape the special characters by putting a ` (the key above Tab) behind them. So `% will send a % symbol, for example. You could also save the string to a variable and then ControlSend the variable, which might improve reliability....

Go to advanced search