Search found 336 matches

by empardopo
20 Feb 2015, 04:37
Forum: Other Utilities & Resources
Topic: Looking for a program that uses mouse movements as hotkeys
Replies: 8
Views: 2783

Re: Looking for a program that uses mouse movements as hotke

Lexikos himself wrote a mouse gesture script: http://www.autohotkey.com/board/topic/23596-lex-mouse-gestures/ In this link the user pajenn made a variation of the original script. Works that variation of the script? I think he wanted to paint the path on the screen but it is impossible for me to ru...
by empardopo
20 Feb 2015, 02:52
Forum: Ask For Help
Topic: Replacing variable with text based on variable content
Replies: 3
Views: 792

Re: Replacing variable with text based on variable content

Great examples!
I often think that many of these responses could be added as examples to the documentation of Autohotkey.

Thanks!
by empardopo
20 Feb 2015, 02:48
Forum: Ask For Help
Topic: Closing 5 programs with 1 keyboard shortcut Topic is solved
Replies: 35
Views: 6461

Re: Closing 5 programs with 1 keyboard shortcut Topic is solved

would this work: SetTitleMatchMode, RegEx ; Create the group only once, with each app window on a separate line. GroupAdd MultiClose, ahk_exe Notepad.exe GroupAdd MultiClose, ahk_exe SciTE.exe GroupAdd MultiClose, ahk_exe thunderbird(.*) !q:: WinClose, ahk_group MultiClose ; No comma between ahk_gr...
by empardopo
20 Feb 2015, 02:11
Forum: Ask For Help
Topic: How to start my AHk definitions automatically
Replies: 12
Views: 4778

Re: How to start my AHk definitions automatically

Sergey wrote:I've got the same problem but macro runs and wait till i press F3.. i want to macro run on time without my attention.
You could try converting ahk to exe...
by empardopo
19 Feb 2015, 09:52
Forum: Ask For Help
Topic: Closing 5 programs with 1 keyboard shortcut Topic is solved
Replies: 35
Views: 6461

Re: Closing 5 programs with 1 keyboard shortcut Topic is solved

DutchPete wrote:Yep, that did it empardopo!! Many, many thanks.
You are welcome! :D
by empardopo
19 Feb 2015, 09:09
Forum: Ask For Help
Topic: Closing 5 programs with 1 keyboard shortcut Topic is solved
Replies: 35
Views: 6461

Re: Closing 5 programs with 1 keyboard shortcut Topic is solved

Empardopo, I understand your position. What I am trying to get my head round is if your script can be pasted to the end of someone else's script or if it is purely standalone. If it can be pasted, does there need to be a bit of syntax to link the 2 or will your "bit" run no matter what? I think the...
by empardopo
19 Feb 2015, 07:56
Forum: Ask For Help
Topic: Closing 5 programs with 1 keyboard shortcut Topic is solved
Replies: 35
Views: 6461

Re: Closing 5 programs with 1 keyboard shortcut Topic is solved

Empardopo thank you for this. To start with your last instruction: the classname is indeed MozillaWindowClass. I am still not clear how to use your script: * as a standalone, or * as part of Lexikos's s script. In either case, you write Killproc, but then use WinClose further down. Is it relevant t...
by empardopo
19 Feb 2015, 07:09
Forum: Ask For Help
Topic: Closing 5 programs with 1 keyboard shortcut Topic is solved
Replies: 35
Views: 6461

Re: Closing 5 programs with 1 keyboard shortcut Topic is solved

Empardopo, is your 2nd option a sub-command to the script suggested by Lexikos? I do want to keep his script because it does seem to be less aggressive. Can I just paste Process, Exist, thunderbird.exe PID := ErrorLevel If PID != 0 { WinGet, ID,ID, ahk_pid %PID% WinActivate,ahk_id %ID% Send, !{F4} ...
by empardopo
19 Feb 2015, 06:40
Forum: Ask For Help
Topic: Limit script to URL address bar (Firefox) Topic is solved
Replies: 5
Views: 1317

Re: Limit script to URL address bar (Firefox) Topic is solved

In IE when I put the mouse in the URL address using the Window Spy I get "Edit1" othhowever in Firefox I get nothing!

Sorry.
by empardopo
19 Feb 2015, 05:41
Forum: Ask For Help
Topic: Limit script to URL address bar (Firefox) Topic is solved
Replies: 5
Views: 1317

Re: Limit script to URL address bar (Firefox) Topic is solved

Check this actingexceptonlywhentheuseristypingintheURLaddressbarofInternetExplorer(){ ;hWnd := WinActive("ahk_class IEFrame") ; return the IE window handle if the active window IS IE hWnd := WinActive("ahk_class MozillaWindowClass") ; return the IE window handle if the active window IS IE if !hWnd ;...
by empardopo
19 Feb 2015, 05:15
Forum: Ask For Help
Topic: Closing 5 programs with 1 keyboard shortcut Topic is solved
Replies: 35
Views: 6461

Re: Closing 5 programs with 1 keyboard shortcut Topic is solved

Other option you can test

Code: Select all

hotkey, ~k, killproc
return

killproc:
Process, Exist, thunderbird.exe
PID := ErrorLevel
If PID != 0
{
	WinGet, ID,ID, ahk_pid %PID%
	WinActivate,ahk_id %ID%
	Send, !{F4}
}
return

Greetings.
by empardopo
19 Feb 2015, 04:28
Forum: Ask For Help
Topic: Closing 5 programs with 1 keyboard shortcut Topic is solved
Replies: 35
Views: 6461

Re: Closing 5 programs with 1 keyboard shortcut Topic is solved

Thanks Empardopo, that works. The Thunderbird one does not work. It is not really in the AHK scope, but then again, I have a .bat script to close Thunderbird for something else. It is a taskkill, but instead of writing thunderbird.exe I had to put thunderbird* because each time TB is openend it has...
by empardopo
19 Feb 2015, 04:19
Forum: Ask For Help
Topic: Monitoring window (de-)activation without shell messages
Replies: 29
Views: 5465

Re: Monitoring window (de-)activation without shell messages

Coco wrote:Related: OnWin.ahk
Interesting. Thanks!
by empardopo
19 Feb 2015, 04:18
Forum: Scripts and Functions
Topic: SudokuCracker 1.0
Replies: 10
Views: 2410

Re: SudokuCracker 1.0

I wanted to say that I am not able to generate a valid sudoku. :D
Don't worry. I'll take a look in a newspaper.

Thanks
by empardopo
19 Feb 2015, 03:55
Forum: Scripts and Functions
Topic: OnWin() - call function on window event (WinWaitXXX async)
Replies: 53
Views: 24853

Re: OnWin() - call function on window event (WinWaitXXX asyn

Thanks! More examples are also very useful.
by empardopo
18 Feb 2015, 09:07
Forum: Ask For Help
Topic: Closing 5 programs with 1 keyboard shortcut Topic is solved
Replies: 35
Views: 6461

Re: Closing 5 programs with 1 keyboard shortcut Topic is solved

Perhaps, this code can be useful for you

Code: Select all

Hotkey, ~k, killProc
return

killProc:
      Process, close, notepad.exe
      Process, close, thundebird.exe
      Process, close, evernote.exe
return
Greetings.
by empardopo
18 Feb 2015, 05:30
Forum: Ask For Help
Topic: Add tooltip to a control
Replies: 3
Views: 765

Re: Add tooltip to a control

Instead of monitoring WM_MOUSEMOVE, you should use a more convenient / reliable method of attaching a tooltip to a control. This is just a demo function and does not support detachment of attached tooltip. There are better Tooltip functions out there. Gui New Gui Font, s10, Consolas Gui Margin, 5, ...
by empardopo
18 Feb 2015, 05:23
Forum: Scripts and Functions
Topic: Examples of Non-Standard GUIs (ActiveX, GDI, etc.)
Replies: 288
Views: 97226

Re: Examples of Non-Standard GUIs (ActiveX, GDI, etc.)

immorrr wrote:my current projects gui uses GDI+ and looks like this:
Image
Awesome!!!!! :clap:
Waiting to see this code. :dance:
by empardopo
18 Feb 2015, 05:19
Forum: SciTE4AutoHotkey
Topic: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]
Replies: 776
Views: 319845

Re: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]

boiler wrote:
empardopo wrote:I've tested to press middle button in TillaGoto and It works fine. But, is possible to come back to the point where I pressed the middle button?
Alt-{Left arrow} will take you back to the location you pressed the middle button. Then the same with right arrow to go forward.
Thanks very much.
by empardopo
17 Feb 2015, 06:13
Forum: Ask For Help
Topic: Add tooltip to a control
Replies: 3
Views: 765

Add tooltip to a control

To add tooltip I was using this code WM_MOUSEMOVE() { static CurrControl, PrevControl, _TT ; _TT is kept blank for use by the ToolTip command below. CurrControl := A_GuiControl If (CurrControl <> PrevControl and not InStr(CurrControl, " ")) { ToolTip ; Turn off any previous tooltip. SetTimer, rDispl...

Go to advanced search