Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help with running applications
#1
im using this code

hid child("Running Applications" "ToolbarWindow32" "+Shell_TrayWnd" 0x1)

is there a way to select only 1 application out of 4


ive tried this but does not work

hid child("Notpad" "ToolbarWindow32" "+Shell_TrayWnd" 0x1)



also using this code does not achieve what i want

hid win("")
#2
Function TaskbarButton

Remove window from taskbar
#3
ok i tried the test code

int hwnd=win("Notepad") ;;unowned
;int hwnd=win("QM - Threads") ;;owned with WS_EX_APPWINDOW exstyle
TaskbarButton 2 hwnd
3
TaskbarButton 1 hwnd


TaskbarButton is being highlighted by qm.

Im not sure why its not working. any ideas?

Or am i missing something like needing to add the taskbar i want to hid.

thanks for the fast response and sorry for doubling up
#4
Create function TaskbarButton and paste the code that is above the test code.
#5
i cant seem to get it to work, maybe due to my lack of experiance. thought i might have been diving into the unknown. Followed your instructions, although it was simple. I just dont know what im doing wrong.
ty for ur help and the fast response.


something like this is my aim

hid child("Windows Media Player" "ToolbarWindow32" "+Shell_TrayWnd" 0x1)

maybe the other code isnt for what i wanted to do?
#6

Here i've put it together for you, incase you were having trouble. This file contains the TaskbarButton function and the Test code. This Test code will Remove the taskbar button for notepad and then replace it after 3 seconds.


Attached Files
.qml   Craig.qml (Size: 928 bytes / Downloads: 321)
Taking on Quick Macros one day at a time
#7
ty very much for the download, i can also see what i was doing wrong. which is a big help.

i know u said this is for Notepad, ive tried it on other applications and it worked great for hiding it, but to unhide this doesn't work (TaskbarButton 1 hwnd). i am not to sure why not, maybe there is a quick fix for it? or maybe that code is for the intention of Notepad only.

tyvm for the help.
#8

What program are you using it with? I might be able to check it out and see the what the problem is.
Taking on Quick Macros one day at a time
#9
disregard the last post. realised what i done wrong, i changed the wait time to 300 seconds and forgot. rushing things lol. thanks for ur help
#10

This works for me?



Macro ( Test Code )
Code:
Copy      Help
int hwnd=win("Windows Media Player")

TaskbarButton 2 hwnd
3
TaskbarButton 1 hwnd

This hides it and then unhides it after 3 seconds.
Taking on Quick Macros one day at a time
#11

That would do it.
No problem.
Taking on Quick Macros one day at a time


Forum Jump:


Users browsing this thread: 2 Guest(s)