11-07-2015, 07:37 PM
Thanks & worked on this for a while.
Here is a more precise description of what I would like to do.
Assume that a ListBox is running
I have a 'keyboard control' that runs and verifies that the ListBox is "active" via:
_____________________________________________
g1
wait 0.15
if(IsThreadRunning(F"{ifThisParentThreadIsRunning}"))
int w=win(F"{listBoxSysTitle}" "#32770")
;;g2
out listBoxSysTitle
ifa(w)
wait 0.1
int vk=wait(0 K CAs)
wait 0.01
mac "Oc_LBX_24k_8item_S_Hotkey_MSG"
wait 10
goto g1
else
wait 0.15
goto g1
else
mes "KonTrol Thread is NOT running"
wait 1
end
_____________________________________________
Obviously when the CTRL + ALT + S combination is pressed, then the 'mac "Oc_LBX_24K-8item_S_Hotkey_MSG" function is called for
This function simply displays a message box.
AND my desire is to have the ListBox stay active while this 'instruction' is displayed.
There are a couple of things to understand per what I want. I do NOT use the mouse with my macros, so all my listboxes have 'hotkeys' that control all that happens.
SO, is there a way to have this happen like the example that you included?
AND you may be tired of hearing this, but I am not a programmer and I can never thank you enough for your help in what may always appear to be so elementary!!!
Thank You Indeed!!!1
Here is a more precise description of what I would like to do.
Assume that a ListBox is running
I have a 'keyboard control' that runs and verifies that the ListBox is "active" via:
_____________________________________________
g1
wait 0.15
if(IsThreadRunning(F"{ifThisParentThreadIsRunning}"))
int w=win(F"{listBoxSysTitle}" "#32770")
;;g2
out listBoxSysTitle
ifa(w)
wait 0.1
int vk=wait(0 K CAs)
wait 0.01
mac "Oc_LBX_24k_8item_S_Hotkey_MSG"
wait 10
goto g1
else
wait 0.15
goto g1
else
mes "KonTrol Thread is NOT running"
wait 1
end
_____________________________________________
Obviously when the CTRL + ALT + S combination is pressed, then the 'mac "Oc_LBX_24K-8item_S_Hotkey_MSG" function is called for
This function simply displays a message box.
AND my desire is to have the ListBox stay active while this 'instruction' is displayed.
There are a couple of things to understand per what I want. I do NOT use the mouse with my macros, so all my listboxes have 'hotkeys' that control all that happens.
SO, is there a way to have this happen like the example that you included?
AND you may be tired of hearing this, but I am not a programmer and I can never thank you enough for your help in what may always appear to be so elementary!!!
Thank You Indeed!!!1
