Jump to content

DEAR GOD HELP ME


Recommended Posts

I am quite quite quite MAD! WTF!. WHEN I RUN THIS.

#Include <GUIConstants.au3>

$testggg = GUICreate("Media Player", 795, 220, 0, 0,-1,$WS_POPUP)

$eee = GUICtrlCreateListView("", 10, 30, 781, 150, $LVS_EDITLABELS)

$CM = GUICtrlCreateContextMenu($eee)
$Delete_CM = GUICtrlCreateMenuItem("Delete", $CM)

GUISetState()

While 1
   $msg = GUIGetMsg()
   Select
      Case $msg = $Delete_CM
         msgbox(0,"","")
   EndSelect
WEnd

I GET CONSTANT MESSAGE BOXES !!!!!!! WHY WHY WHY.

THIS IS ORIGINALLY FROM A SCRIPT 2000 LINES LONG AND I HAD TO SORT THROUGH THE WHOLE CRAPPY THING JUST TO NARROW IT DOWN TO THIS EXAMPLE.

FUNNY THIS IS IF I TRY THIS.

#Include <GUIConstants.au3>

$testggg = GUICreate("Media Player", 795, 220, 0, 0,-1);,$WS_POPUP)

$eee = GUICtrlCreateListView("", 10, 30, 781, 150, $LVS_EDITLABELS)

$CM = GUICtrlCreateContextMenu($eee)
$Delete_CM = GUICtrlCreateMenuItem("Delete", $CM)

GUISetState()

While 1
   $msg = GUIGetMsg()
   Select
      Case $msg = $Delete_CM
         msgbox(0,"","")
   EndSelect
WEnd

IT WORKS FINE. THE ABOVE EXAMPLE USES THE DEFUALT POPUP INSTEAD OF $WS_POPUP.

I HAVE REINSTALLED AUTOIT LIKE 5 TIMES WITH THE STABLE/LATEST BETA AND IT STILL WONT CHANGE. PLEASE SOMEONE TELL ME THIS IS A BUG SO I CAN STOP PULLING MY HAIR OUT.

Excuse the caps.

Edited by Burrup

qq

Link to comment
Share on other sites

Question is. Why are you using $WS_POPUP as a Extended Style rather than a Style ?

<{POST_SNAPBACK}>

Because I'm an idiot and I fell like throwing myself of a cliff for being so stupid.

I apologise for the title and caps, I was just frustrated. Thanks.

Edited by Burrup

qq

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...