Author Topic: Prank  (Read 3467 times)

0 Members and 1 Guest are viewing this topic.

Offline Craz1000

  • Forum Regular
  • Posts: 111
  • I'm OK
    • View Profile
    • Craz1000.net
Prank
« 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

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Prank
« Reply #1 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
« Last Edit: November 12, 2018, 09:13:12 am by SMcNeill »
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline OldMoses

  • Seasoned Forum Regular
  • Posts: 469
    • View Profile
Re: Prank
« Reply #2 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.

Offline Craz1000

  • Forum Regular
  • Posts: 111
  • I'm OK
    • View Profile
    • Craz1000.net
Re: Prank
« Reply #3 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.
« Last Edit: November 12, 2018, 10:03:25 pm by Craz1000 »

Offline luke

  • Administrator
  • Seasoned Forum Regular
  • Posts: 324
    • View Profile
Re: Prank
« Reply #4 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).

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Prank
« Reply #5 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
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!