Search found 2357 matches

by boiler
Today, 02:27
Forum: Ask For Help
Topic: Variable not recognized in Excel application
Replies: 4
Views: 52

Re: Variable not recognized in Excel application

Get rid of the first line. Doesn't make sense to assign a string "F" to the variable. It seems like you think you're linking it to the variable named F from the next line, but it's not doing anything like that.

In the InputBox command, just replace F with FileToName.
by boiler
Yesterday, 12:09
Forum: Ask For Help
Topic: Mouse centred when not holding left click and moveable when holding left click down
Replies: 7
Views: 55

Re: Mouse centred when not holding left click and moveable when holding left click down

Thank you so much, it's exactly what I need. However, I can't seem to click or select anything in the browser when using this script, is there any solution to this problem? I don't see how you can expect to select or click on anything if you need to hold the mouse button down just to be able to mov...
by boiler
Yesterday, 12:08
Forum: Ask For Help
Topic: Mouse centred when not holding left click and moveable when holding left click down
Replies: 7
Views: 55

Re: Mouse centred when not holding left click and moveable when holding left click down

so 'if *variable* &' means if variable is not false? and the second & is and? Or does variable && mean if variable is not false? if variable evaluates variable itself to see if it's true. A variable value of 0, False, or "" (null string) is false. Anything else is true. I ...
by boiler
Yesterday, 11:13
Forum: Ask For Help
Topic: Mouse centred when not holding left click and moveable when holding left click down
Replies: 7
Views: 55

Re: Mouse centred when not holding left click and moveable when holding left click down

It means that it will only do what follows (the MouseMove) if the value of the variable CenterActive is true (or anything that is not false, like 1) and that FireFox is the active window.
by boiler
Yesterday, 11:00
Forum: Ask For Help
Topic: Mouse centred when not holding left click and moveable when holding left click down
Replies: 7
Views: 55

Re: Mouse centred when not holding left click and moveable when holding left click down

CoordMode, Mouse, Screen CenterActive := 1 SetTimer, CenterMouse, 50 return CenterMouse: if CenterActive && WinActive("ahk_exe firefox.exe") MouseMove, A_ScreenWidth/2, A_ScreenHeight/2, 0 return #IfWinActive, ahk_exe firefox.exe LButton:: CenterActive := 0 KeyWait, LButton Center...
by boiler
23 Feb 2018, 18:53
Forum: Ask For Help
Topic: GUI - a + button adds another textbox in its place
Replies: 1
Views: 28

Re: GUI - a + button adds another textbox in its place

I assume by text box you mean an edit box. Here's a basic approach to it. Making it scrollable is more advanced. There have been various threads about it on the forum that you should be able to find. EditCount := 1 gosub, BuildGui return GuiClose: ExitApp AddEdit: EditCount++ gosub, BuildGui return ...
by boiler
23 Feb 2018, 18:37
Forum: Ask For Help
Topic: Copy one template that auto fills another
Replies: 10
Views: 124

Re: Copy one template that auto fills another

:*:template:: RegExMatch(Clipboard, "s)Name: (.*)Issue\(s\): (.*)Resolution: (.*)Conclusion: (.*)", Match) Clipboard = ( Name: %Match1% Date: Phone Number: Reason Called: %Match2% Fixed: %Match3% Update: %Match4% ) Send, ^v
by boiler
23 Feb 2018, 16:01
Forum: Ask For Help
Topic: Copy one template that auto fills another
Replies: 10
Views: 124

Re: Copy one template that auto fills another

Well, if it still has all for elements (you showed just Issues and Resolution, but I'm guessing that's just part of the whole) and you don't mind (in fact want) all the line feeds in there, then you can use this: :*:template:: RegExMatch(Clipboard, "s)Name: (.*)Issues: (.*)Resolution: (.*)Concl...
by boiler
23 Feb 2018, 14:31
Forum: Ask For Help
Topic: script to open Screen Sketch on Win10
Replies: 2
Views: 30

Re: script to open Screen Sketch on Win10

Have it click on the location to select Screen Sketch after the menu pops up. Just change the coordinates in the script below so it clicks on the right place on your monitor.

Code: [Select all]GeSHi © Codebox Plus

CoordMode, Mouse, Screen
Send, #w
Sleep, 500
Click, 2400, 1040
by boiler
23 Feb 2018, 08:15
Forum: Ask For Help
Topic: How KeyWait works?
Replies: 4
Views: 48

Re: How KeyWait works?

No, it's not strange at all. If you press and release it quickly, you've released it before the first beep is finished, then it's waiting on the key press and release before the second beep. If you hold it down longer, you've held it down longer than the duration of the first beep, so when it gets t...
by boiler
23 Feb 2018, 07:54
Forum: Ask For Help
Topic: Window Checker help needed
Replies: 3
Views: 41

Re: Window Checker help needed

I was just fixing the syntax so you could work on the logic. Here's the logic fixed:

Code: [Select all]GeSHi © Codebox Plus

loop
{
WinGetActiveTitle, window_title
if (new_window != window_title)
{
fileappend, % window_title . "`n", C:\mypaths.txt
new_window := window_title
}
Sleep, 100
}
by boiler
23 Feb 2018, 00:09
Forum: Ask For Help
Topic: command to bypass "user account control" window?
Replies: 1
Views: 29

Re: command to bypass "user account control" window?

It may be that something is in your script that is running it as admin, so you could just remove it. So there's not a command to skip the step; it's removing the command(s) that are causing it. Does it need to run as admin? Can you show the script?
by boiler
23 Feb 2018, 00:03
Forum: Ask For Help
Topic: Window Checker help needed
Replies: 3
Views: 41

Re: Window Checker help needed

No reason to have a loop if you're simulating a loop with gotos. Just get rid of the gotos. It's a horrible practice. You have problems with your syntax. Here it is corrected using legacy syntax, which it looks like you tried to use: loop { if new_window = %window_title% new_window = diff else { Win...
by boiler
22 Feb 2018, 23:37
Forum: Ask For Help
Topic: Copy one template that auto fills another
Replies: 10
Views: 124

Re: Copy one template that auto fills another

It's important for you to describe all the situations in which you expect it to work. :*:template:: RegExMatch(Clipboard, "s)Name: ([^\n]*).*Issues: ([^\n]*).*Resolution: ([^\n]*).*Conclusion: ([^\n]*)", Match) Clipboard = ( Name: %Match1% Date: Phone Number: Reason Called: %Match2% Fixed:...
by boiler
22 Feb 2018, 21:21
Forum: Ask For Help
Topic: switching keys Topic is solved
Replies: 8
Views: 118

Re: switching keys Topic is solved

I assume you mean you press c, v, or 2, and it resets but doesn't send anything. It's just ready to send 3 again the next time you press f. You also don't need the second line in the script you showed (+f up::). That is already covered by putting the * on the first line (which also allows it to be a...
by boiler
22 Feb 2018, 19:51
Forum: Ask For Help
Topic: shift tab in text mode Topic is solved
Replies: 4
Views: 35

Re: shift tab in text mode Topic is solved

Oh, yeah, I was not thinking about its use within parentheses. I don't believe you can, so you would have to put it in a continuous line and use `n for line breaks.
by boiler
22 Feb 2018, 17:53
Forum: Ask For Help
Topic: shift tab in text mode Topic is solved
Replies: 4
Views: 35

Re: shift tab in text mode Topic is solved

Try {Shift down}{Tab}{Shift up}
by boiler
22 Feb 2018, 11:09
Forum: Ask For Help
Topic: Hotkey from variable
Replies: 1
Views: 39

Re: Hotkey from variable

You can't use a variable to define a hotkey using the "::" hotkey defintion. Use the command named Hotkey to define the hotkey.

Also, you shouldn't put the actual hotkey subroutine in the middle of a function.
by boiler
21 Feb 2018, 17:27
Forum: Ask For Help
Topic: Pause doesn't work on my simple script does anyone know why?
Replies: 1
Views: 33

Re: Pause doesn't work on my simple script does anyone know why?

Pause only pauses the current thread. Pressing a hotkey starts a new thread. Suspend disables hotkeys.
by boiler
21 Feb 2018, 07:40
Forum: Ask For Help
Topic: Find AT LEAST one of the words in a .txt file
Replies: 1
Views: 35

Re: Find AT LEAST one of the words in a .txt file

Code: [Select all]GeSHi © Codebox Plus

data := "log1,log2,log3"
FileRead, text, read.txt
if text contains %data%
Run, program.ahk

Go to advanced search