Search found 954 matches

by A_AhkUser
Yesterday, 16:37
Forum: Scripts and Functions
Topic: [Class] WinHook
Replies: 26
Views: 2041

Re: [Class] WinHook

Scr1pter wrote:
Yesterday, 15:13
Hi Scr1pter,

Check this User's post.

I hope that helps.
by A_AhkUser
14 Feb 2019, 18:24
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 542
Views: 99467

Re: Suggestions on documentation improvements

joefiesta wrote:
14 Feb 2019, 17:38
The function call is NOT an expression. The Parameters are expressions, but not the call itself.

Code: Select all

GUI, +LastFound
if (WinExist()) {
	MsgBox % var := WinExist()
}
by A_AhkUser
14 Feb 2019, 16:51
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 542
Views: 99467

Re: Function calls, parameters and expressions

The "function call" is not an expression. If it were, the following would work:[...] The following types of sub-expressions override precedence/order of evaluation : [...] Function call. The function name must be immediately followed by an open-parentheses, without any spaces or tabs in between. so...
by A_AhkUser
13 Feb 2019, 18:23
Forum: Ask For Help
Topic: User defined hotkeys as normal hotkeys
Replies: 2
Views: 63

Re: User defined hotkeys as normal hotkeys

Hi Marion , You can probably take advantage of the built-in variable A_ThisHotkey - sample example: hk1 := "i" hk2 := "!j" hk3 := "^!k" Hotkey % hk1, label, On Hotkey % hk2, label, On Hotkey % hk3, label, On return label: key := LTrim(A_ThisHotkey, "!^+") ; remove modifiers while (GetKeyState(key)) ...
by A_AhkUser
13 Feb 2019, 17:37
Forum: Ask For Help
Topic: ToolTip in Windows tray
Replies: 9
Views: 159

Re: ToolTip in Windows tray

Perhaps something like this - shows GUI when you hover the mouse over the script's tray icon (not tested much)[...] . The event handler just does not shows a GUI, it also appends a static control each time the event handler is triggered. Replace GUI, Show by GUI, Show, AutoSize to see that with thi...
by A_AhkUser
12 Feb 2019, 14:07
Forum: Scripts and Functions
Topic: [Class] WinHook
Replies: 26
Views: 2041

Re: [Class] WinHook

The code below simply reclaims the architecture of your Hook.WinEvents nested class; it has the same build used for yours and reclaims the ideas which have been implemented in you code - in particular: . use of a proxy hook function and of the map[hWinEventHook := this] trick to retrieve and call th...
by A_AhkUser
07 Feb 2019, 15:54
Forum: Ask For Help
Topic: Doubt to hide window Topic is solved
Replies: 6
Views: 141

Re: Doubt to hide window Topic is solved

Use the ProcessID Property (see Exec - VBScript @ss64). You're still going to get a window blink, though: #NoEnv #SingleInstance force #Warn SetWinDelay, -1 wshScriptExecObject := ComObjCreate("WScript.Shell").Exec("wmic product get name, version, vendor") WinWait % "ahk_pid " . wshScriptExecObject....
by A_AhkUser
06 Feb 2019, 17:47
Forum: Ask For Help
Topic: Multiple, simultaneous joystick buttons?
Replies: 2
Views: 77

Re: Multiple, simultaneous joystick buttons?

Hi Blakeg , The easiest way is probably to use a context-sensitive hotkey with 2 'modifier keys'; that is, using two keys which, by themselves, are unable to trigger the subroutine while endowing nevertheless the third one of the ability to trigger a subroutine when they are pressed alongside it 'up...
by A_AhkUser
04 Feb 2019, 13:05
Forum: Gaming
Topic: Redirect a wrong click
Replies: 5
Views: 242

Re: Redirect a wrong click

Hola Gonzalo ! :wave:, Try this: #NoEnv #SingleInstance force #Warn ; ====================== preferences /====================== coordinatesRelativeTo := "Screen" ; asigna el origen del sistema de coordenadas y aqui la esquina izquierda superior de la pantalla x1 := 673, x2 := 693 y1 := 340, y2 := 3...
by A_AhkUser
02 Feb 2019, 07:39
Forum: Ask For Help
Topic: Small POV problem
Replies: 5
Views: 154

Re: Small POV problem

Cool, I'm great this work for you. Note however that you probably want to use a block. Block is typically used to bind two or more commands together and specify which if or else etc. they belong to.

Code: Select all

if (value = 27000) {
	Send {j down}
	Send {j up}
}
Cheers
by A_AhkUser
01 Feb 2019, 18:13
Forum: Ask For Help
Topic: Small POV problem
Replies: 5
Views: 154

Re: Small POV problem

Hi kryptooo , Maybe: #NoEnv #SingleInstance force i := 0 #Persistent SetTimer, WaitConnection, 500 return WaitConnection: if (GetKeyState("1JoyPOV") <> "") { SetTimer, WaitConnection, Off SetTimer, WatchPOV, 50 } return WatchPOV: value := GetKeyState("1JoyPOV") if (value = "") { SetTimer, WatchPOV, ...
by A_AhkUser
01 Feb 2019, 05:40
Forum: Ask For Help
Topic: help needed to shorten this script Topic is solved
Replies: 5
Views: 123

Re: help needed to shorten this script Topic is solved

Hi joash , Alternatively: #NoEnv #SingleInstance force #Warn toogle := false Hotkey, If, toogle ; associates subsequently-created hotkeys with a given #If expression Loop % Asc("z")-(i:=Asc("a") - 1) ; a > z Hotkey % Chr(++i), OpenNotepadWord Hotkey, If ; turn off context sensitivity return OpenNote...
by A_AhkUser
31 Jan 2019, 20:20
Forum: Ask For Help
Topic: Launch an application under all available apps
Replies: 6
Views: 160

Re: Launch an application under all available apps

Hi zortanmax , SW_SHOWNOACTIVATE := 4 ; Displays a window in its most recent size and position. This value is similar to SW_SHOWNORMAL, except that the window is not activated. ; https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-showwindow !n:: DetectHiddenWindows, On Run, note...
by A_AhkUser
30 Jan 2019, 15:54
Forum: Ask For Help
Topic: How to pass a v-variable? Topic is solved
Replies: 10
Views: 366

Re: How to pass a v-variable? Topic is solved

@ User Simple and nice solution :thumbup: Unfortunately I am not able to integrate a loop for all relevant controls. My attempt below doesn't work... @ newbieforever This is because, as per the documentation : When a function is entered by a subroutine thread, any references to dynamic variables mad...
by A_AhkUser
29 Jan 2019, 16:29
Forum: Ask For Help
Topic: How to pass a v-variable? Topic is solved
Replies: 10
Views: 366

Re: How to pass a v-variable? Topic is solved

To use GuiControlGet using the hwnd you must first find a way to determine wich hwnd is at stake in your situation. Yet A_GuiControl will contain the first 63 characters of the control's text/caption if it lacks an associated variable - which is not a reliable way to identify the control. Otherwise,...
by A_AhkUser
29 Jan 2019, 14:03
Forum: Scripts and Functions
Topic: [Class] WinHook
Replies: 26
Views: 2041

Re: [Class] WinHook

You linked to this script in another post where we both answered and I put this page in my 'ahk link to look in more details' directory in my FF favorites (I've many similar ones) to see it... later - I was just looking at it - more in details so - now... and I would like to say that this script com...
by A_AhkUser
29 Jan 2019, 13:52
Forum: Ask For Help
Topic: Hotkey, If, % FunctionObject and vkcodes incompatibility? Topic is solved
Replies: 4
Views: 111

Re: Hotkey, If, % FunctionObject and vkcodes incompatibility? Topic is solved

Thanks swagfag , thanks Helgef , [...] #if forces keyboard hook, so this is documented behaviour, your hotkey should trigger with NumpadDown . It does. And actually ListHotkeys reports a 'k-hook' for vk28. Thanks much :salute: #NoEnv #SingleInstance force #Warn ; Windows 8.1 64 bit - Autohotkey v1.1...
by A_AhkUser
29 Jan 2019, 08:58
Forum: Ask For Help
Topic: Hotkey, If, % FunctionObject and vkcodes incompatibility? Topic is solved
Replies: 4
Views: 111

Hotkey, If, % FunctionObject and vkcodes incompatibility? Topic is solved

Hi guys, I cannot manage to make the following code work. If I replace vk0x28 ( VK_DOWN ) by Down it actually works (as well as if I comment Hotkey, If, % fn - but in this case, it is actually not a context-sensitive hotkey yet). As far as I no, there's no documented incompatibility between the use ...
by A_AhkUser
25 Jan 2019, 13:16
Forum: Ask For Help
Topic: IE COM click not working
Replies: 2
Views: 106

Re: IE COM click not working

HI jenprochat , [...] ALTERNATIVELY I tried to launch it through this piece of line in code <a title="ADD FUEL LOG" onclick='showAddFuelLogTableWithDutyCycles(5381, "Loader", "1580.6");' href="#"> If the element is actually on the document and not on a frame, both the following should work, at your ...
by A_AhkUser
24 Jan 2019, 10:02
Forum: Ask For Help
Topic: howto add a associative array with variable as key ( obj := { %lang%: is_exist } ) Topic is solved
Replies: 5
Views: 116

Re: howto add a associative array with variable as key ( obj := { %lang%: is_exist } ) Topic is solved

Alternatively, atleast in your case, you can use the following:

Code: Select all

(g_config.codeRunner_exist:={})[lang] := is_codeRunner_exist

Go to advanced search