Search found 77 matches
- 01 Apr 2024, 15:05
- Forum: Ask for Help (v1)
- Topic: Why does script 1::Send, !{Tab} *sometimes* fails
- Replies: 3
- Views: 83
Re: Why does script 1::Send, !{Tab} *sometimes* fails
I see. But I thought it's Windows that may not like the simulated presses (like Windows 8.1 doesn't allow simulating Alt+Tab) and if it gets past Windows then programs have no way to tell if the command came from simulation or from the actual pressing of the Alt+Tab.
- 01 Apr 2024, 14:45
- Forum: Ask for Help (v1)
- Topic: Why does script 1::Send, !{Tab} *sometimes* fails
- Replies: 3
- Views: 83
Why does script 1::Send, !{Tab} *sometimes* fails
even though physically pressing Alt+Tab never fails. I am on 23H2 Windows 11. It's difficult to say in what situations it fails, but definitely nothing unusual.
- 05 Oct 2023, 11:49
- Forum: Ask for Help (v1)
- Topic: Simple code doesn't work
- Replies: 3
- Views: 334
Re: Simple code doesn't work
RussF,
thanks, got it!
andymbody,
this will work for the script I showed, but in fact it is a simplified version of a more complex script, where this approach will not be as efficient. Thank you for you help!
thanks, got it!
andymbody,
this will work for the script I showed, but in fact it is a simplified version of a more complex script, where this approach will not be as efficient. Thank you for you help!
- 05 Oct 2023, 10:12
- Forum: Ask for Help (v1)
- Topic: Simple code doesn't work
- Replies: 3
- Views: 334
Simple code doesn't work
This code produces an empty message box instead of the current time, why? OnMessage(0x218, "WM_POWERBROADCAST") ; Register power event message handler WM_POWERBROADCAST(wParam, lParam) { ; Handle power events If (wParam = 0x0007) ; System is resuming from sleep { CheckTimeDifference() MsgBox, %curre...
- 26 Jul 2023, 04:43
- Forum: Ask for Help (v1)
- Topic: If classNN with OR
- Replies: 2
- Views: 228
Re: If classNN with OR
Thank you very much!!
- 25 Jul 2023, 15:04
- Forum: Ask for Help (v1)
- Topic: If classNN with OR
- Replies: 2
- Views: 228
If classNN with OR
Hi,
please, why when I add the underlined piece the script stops working?
please, why when I add the underlined piece the script stops working?
Code: Select all
#IfWinActive ahk_class xxx
1::
ControlGetFocus classNN, A
If classNN=SysListView324 [u]or classNN=SysListView321[/u]
Send ^e
Else Send 1
return
- 24 May 2023, 17:29
- Forum: Ask for Help (v1)
- Topic: Where do I go wrong?
- Replies: 7
- Views: 492
Re: Where do I go wrong?
RIght, I should have used empty braces instead of Return to instruct script to do nothing. Somehow I confused the two. Thank you for your time, Mike!
- 24 May 2023, 15:59
- Forum: Ask for Help (v1)
- Topic: Where do I go wrong?
- Replies: 7
- Views: 492
Re: Where do I go wrong?
My question can be reduced to the (in)correctness of this syntax structure: Hotkey:: get the state of thing1 do some other things IF state1 equals this do this ELSE RETURN (do nothing) get the state of thing2 do some other things IF state2 (which is completely unrelated to the first IF) equals this ...
- 23 May 2023, 12:26
- Forum: Ask for Help (v1)
- Topic: Where do I go wrong?
- Replies: 7
- Views: 492
Re: Where do I go wrong?
This is what I am essentially asking to help me with
- 22 May 2023, 14:55
- Forum: Ask for Help (v1)
- Topic: Where do I go wrong?
- Replies: 7
- Views: 492
Where do I go wrong?
The idea is to click on a certain spot within a browser page on the active tab. Only one tab can be active at any time, as both tabs are in the same instance of the browser. If the browser is minimized, minimize it again after the click is performed (cos ControlClick restores it), otherwise just cli...
- 15 Jul 2022, 08:02
- Forum: Ask for Help (v1)
- Topic: A simple script won't work in Winamp
- Replies: 17
- Views: 1340
Re: A simple script won't work in Winamp
Hi, Keymaker, thanks for your reply. I did mention I have 5.666 and I'd rather not install any other version just because of this single issue. I managed to get around it by having the script click on the Enqueue button at the bottom of the library, works well.
- 09 Jul 2022, 10:09
- Forum: Ask for Help (v1)
- Topic: Simple script doesn't work
- Replies: 4
- Views: 667
Re: Simple sript doesn't work
Rohwedder' sript works fine! The other two I can't get to work. mikeyww's works by itself but not when applied to my situation, which is a Winamp library window: #IfWinActive ahk_class BaseWindow_RootWnd Loop, 75 If ((char := Chr(A_Index + 47)) ~= "[0-9a-z]") Hotkey, %char%, Paste, On Return Paste: ...
- 09 Jul 2022, 08:38
- Forum: Ask for Help (v1)
- Topic: Simple script doesn't work
- Replies: 4
- Views: 667
Simple script doesn't work
What am I doing wrong here? It won't send "a".
The point of that is to have any alphanumeric key focus a control and send the appropriate alphanumeric to that control:
Code: Select all
a::
Input, SingleKey, L1
Send %SingleKey%
Code: Select all
a::
b::
c:: ;and so forth, all alphanumerics
ControlFocus, somecontrol
Send %SingleKey%
- 05 Jul 2022, 14:49
- Forum: Ask for Help (v1)
- Topic: A simple script won't work in Winamp
- Replies: 17
- Views: 1340
Re: A simple script won't work in Winamp
SendInput doesn't work either. I appreciate your help, maybe someone else who is an expert in Winamp will come up with an explanation.
- 05 Jul 2022, 10:43
- Forum: Ask for Help (v1)
- Topic: A simple script won't work in Winamp
- Replies: 17
- Views: 1340
Re: A simple script won't work in Winamp
That's right. The script is in a separate file, that's the only code in this file, all other scripts terminated, all Winamp hotkeys disabled. I have several AHK scripts for Winamp, all work fine, except this one (but the don't involve the Shift button). It looks like Wimamp prevents simulating the S...
- 05 Jul 2022, 10:14
- Forum: Ask for Help (v1)
- Topic: A simple script won't work in Winamp
- Replies: 17
- Views: 1340
Re: A simple script won't work in Winamp
I see. Right-click in the left pane, Add Smart View – Advanced Mode and in Filters select Two, choose from the dropdown lists whatever you like, finally type in some Name at the bottom. This way you'll have two more windows at the top.
- 05 Jul 2022, 09:58
- Forum: Ask for Help (v1)
- Topic: A simple script won't work in Winamp
- Replies: 17
- Views: 1340
- 05 Jul 2022, 09:56
- Forum: Ask for Help (v1)
- Topic: A simple script won't work in Winamp
- Replies: 17
- Views: 1340
Re: A simple script won't work in Winamp
Sorry
Code: Select all
24 147 h d 7.78 Home Media Library
A0 02A i d 0.00 LShift
0D 01C i d 0.00 Enter
0D 01C i u 0.00 Enter
A0 02A i u 0.00 LShift
24 147 s u 0.16 Home
- 05 Jul 2022, 09:43
- Forum: Ask for Help (v1)
- Topic: A simple script won't work in Winamp
- Replies: 17
- Views: 1340
Re: A simple script won't work in Winamp
Key History (double-clicking on the icon) shows
I know it's Enter because it just replaces the songs in the playlist, just like pressing Enter does.
Code: Select all
008: Send,+{Enter}
008: Return (1.59)
- 05 Jul 2022, 09:34
- Forum: Ask for Help (v1)
- Topic: A simple script won't work in Winamp
- Replies: 17
- Views: 1340
Re: A simple script won't work in Winamp
Oh, you probably tried it on the bottom window in the library, where the songs are. It works there all right (but I hardly ever tried to use it there, that's why I failed to be more specific). Where it doesn't work in in the upper windows (artist, album).