Code: Select all
q::
Msgbox "It is working!"
return
Code: Select all
!y::
MsgBox The active window is "%Title%".
Thanks,
Bill
Code: Select all
q::
Msgbox "It is working!"
return
Code: Select all
!y::
MsgBox The active window is "%Title%".
Code: Select all
!y::
WinGetTitle, Title, a ;a = active window
MsgBox The active window is "%Title%".
Code: Select all
Title = Hello there
return
!y::
MsgBox The active window is "%Title%".
return
AlphaBravo wrote:works fine here, you may need to look through the rest of your codeCode: Select all
Title = Hello there return !y:: MsgBox The active window is "%Title%". return
your statement leads me to think the variable named "title" is empty !!BillW wrote:but did not change the MsgBox line.
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
^k::
;Send, My First Script
msgbox "Ctrl K"
Return
Well, I'm back to working on this subject and I have read a lot of the manual and watched a few YouTube videos in the meantime. I never did find a statement as to how to designate a function key in a hotkey label but I tried it with the letter f and that worked. Actually, now all of my little experimental scripts work as expected! I don't really know what I was doing wrong originally except that I was sometimes expecting a routine with a hotkey to run when I double-clicked the file and I've noticed that it doesn't work that way. But, it will run when I click the hotkey for it.TimeHorizon wrote:to clarify, do any scripts work on the laptop? Maybe try running as administrator? umm... hmm..
Edit: maybe try F keys instead of the modifier keys?
Users browsing this forum: Google [Bot], marypoppins_1, skeerrt and 143 guests