Search found 2364 matches

by boiler
03 Apr 2018, 12:31
Forum: Editors
Topic: Run script or selection from Notepad++
Replies: 14
Views: 2902

Re: Run script or selection from Notepad++

Thank you, divanebaba! I'm glad you find it useful.
by boiler
10 Mar 2018, 22:00
Forum: Scripts and Functions
Topic: PingPong game
Replies: 16
Views: 716

Re: PingPong game

Very nicely done. Here's a version with some sounds added. At least these exist and sound good on my version of Windows 10. Microsoft seems to change them all the time, so they might not exist or sound different on other systems, but it's easy enough to change the sound files near the top of the scr...
by boiler
26 Feb 2018, 16:03
Forum: Ask For Help
Topic: switching keys Topic is solved
Replies: 11
Views: 278

Re: switching keys Topic is solved

If you want c, v, and 2 to still do their normal function, then just put a ~ in front of them.
by boiler
25 Feb 2018, 07:20
Forum: Ask For Help
Topic: Pushing lines from Loop, Read into array? Topic is solved
Replies: 8
Views: 156

Re: Pushing lines from Loop, Read into array? Topic is solved

I didn't say that what he did couldn't work. But in my code, I used Click, and that's why I used a pseudo array. His general statement was quite wrong.
by boiler
25 Feb 2018, 07:18
Forum: Ask For Help
Topic: Pushing lines from Loop, Read into array? Topic is solved
Replies: 8
Views: 156

Re: Pushing lines from Loop, Read into array? Topic is solved

That is an expression of the Send command. His general statement that you can always force expression mode is not correct when it comes to the Click command.
by boiler
25 Feb 2018, 07:13
Forum: Ask For Help
Topic: Pushing lines from Loop, Read into array? Topic is solved
Replies: 8
Views: 156

Re: Pushing lines from Loop, Read into array? Topic is solved

Wow, you seem pretty sure of yourself, nnnik. Care to amend your statement when it comes to the Click command?
by boiler
25 Feb 2018, 07:07
Forum: Ask For Help
Topic: Pushing lines from Loop, Read into array? Topic is solved
Replies: 8
Views: 156

Re: Pushing lines from Loop, Read into array? Topic is solved

You can't use expressions or objects in a Click statement, so you have to use a pseudo-array and use % around the variables. Plus, all that stuff with the physClick, is that just so the virtual click doesn't trigger the LButton hotkey? That's what the $ option on hotkeys is for. I believe your scrip...
by boiler
25 Feb 2018, 02:27
Forum: Ask For Help
Topic: Variable not recognized in Excel application
Replies: 5
Views: 120

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
24 Feb 2018, 12:09
Forum: Ask For Help
Topic: Mouse centred when not holding left click and moveable when holding left click down Topic is solved
Replies: 9
Views: 153

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

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
24 Feb 2018, 12:08
Forum: Ask For Help
Topic: Mouse centred when not holding left click and moveable when holding left click down Topic is solved
Replies: 9
Views: 153

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

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
24 Feb 2018, 11:13
Forum: Ask For Help
Topic: Mouse centred when not holding left click and moveable when holding left click down Topic is solved
Replies: 9
Views: 153

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

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
24 Feb 2018, 11:00
Forum: Ask For Help
Topic: Mouse centred when not holding left click and moveable when holding left click down Topic is solved
Replies: 9
Views: 153

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

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: 64

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: 231

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: 231

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: 85

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: 106

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: 82

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: 64

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: 82

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...

Go to advanced search