QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: Craz1000 on November 11, 2018, 10:12:59 am

Title: Prank
Post by: Craz1000 on November 11, 2018, 10:12:59 am
I am trying to play a prank on a friend. I have the program running on a 1x1 size window. Now i need to figure out how to move that window somewhere else and if possible remove the icon on the task bar
Title: Re: Prank
Post by: SMcNeill on November 12, 2018, 09:03:41 am
_SCREENMOVE will move the window, but I don't know of anyway to easily hide the task bar icon at all.

ITaskbarList and DECLARE LIBRARY may be able to remove the icon from the taskbar, if you're in Windows.  https://docs.microsoft.com/en-us/windows/desktop/api/shobjidl_core/nn-shobjidl_core-itaskbarlist
Title: Re: Prank
Post by: OldMoses on November 12, 2018, 07:08:38 pm
Failing an ability to remove an icon from the taskbar, perhaps it would be possible to use $EXEICON to point to a .ico file that is the same color as the taskbar. It might not hide it, but it would make it harder to see. That could be problematic depending on display themes.
Title: Re: Prank
Post by: Craz1000 on November 12, 2018, 10:00:16 pm
Failing an ability to remove an icon from the taskbar, perhaps it would be possible to use $EXEICON to point to a .ico file that is the same color as the taskbar. It might not hide it, but it would make it harder to see. That could be problematic depending on display themes.

hmm or point it to a 100% transparent icon perhaps? I will try that approach if i can't figure out the ITaskbarList option.
Title: Re: Prank
Post by: luke on November 12, 2018, 11:30:05 pm
Is $screenhide not on the order of what the OP is looking for? (As much as I disapprove of their motivations).
Title: Re: Prank
Post by: SMcNeill on November 13, 2018, 12:04:06 am
Is $screenhide not on the order of what the OP is looking for? (As much as I disapprove of their motivations).

I don't think he's trying to hide the window; he just wants to remove the icon from the taskbar.  If I had to guess, it'll probably be a case of "Chase the Button" where the point is to click on the screen, as it moves away from the mouse pointer, similar to: https://www.newgrounds.com/portal/view/111044