Jump to content

Recommended Posts

Posted

I have a script that clicks a file pull down menu. I want to display a gui after the pull down menu is clicked. Right now when I do this, the new gui deactivates the pull down menu. I can do a winwaitactive for the gui and then immediately click the pull down menu again, but this is visually annoying. It makes it appear, disappear, and then appear again.

Any way I can display this gui without canceling the pull down (or start) menu?

Right now I am using $WS_EX_Layered + $WS_EX_TOPMOST.

And yes, I need to do this. No I don't want to find some other way to click the menu item.

Thanks

Posted

You're really limiting your options. You want it done your way with your rules, which honestly will piss most people off. If you don't want to do it another way and you're not open to options most people aren't going to help. If you were open to suggestions on different approaches you may find something better, but since you're only willing to do it your way then I have one suggestion: Read the helpfile thoroughly. Good luck.

Posted

You're really limiting your options. You want it done your way with your rules, which honestly will piss most people off. If you don't want to do it another way and you're not open to options most people aren't going to help. If you were open to suggestions on different approaches you may find something better, but since you're only willing to do it your way then I have one suggestion: Read the helpfile thoroughly. Good luck.

Generally speaking, people get too upset online. If someone had a similar predicament in person more people would be willing to chime in with anything they could.

Posted

My problem was I was re-creating the GUI again after a previous step. A friend helped me just change the GUI and move it. That doesn't cancel any previously selected menu.

Thanks for the tips.

Posted

Honestly i don't care that your not open to other options im going to say this anyway i would try ControlSend() i don't see how it could be worse then mouseclick and it might work without actually activating the window and also i would like to know WHY you want to do it your way when your way could possibly be a lot worse?

[quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote]

Posted

...i would like to know WHY you want to do it your way when your way...?

This is a script that uses both autoit and user interaction. The user needs to click start, then autoit displays something without canceling their click of Start. I wasn't clear in the first post that it is a user that opens the menu, autoit that displays a gui.

Before when I created the gui After they clicked start, that negated the users mouse click. Now that I create the GUI first and just move it I am all set.

Posted

I have a script that clicks a file pull down menu. I want to display a gui after the pull down menu is clicked. Right now when I do this, the new gui deactivates the pull down menu. I can do a winwaitactive for the gui and then immediately click the pull down menu again, but this is visually annoying. It makes it appear, disappear, and then appear again.

Any way I can display this gui without canceling the pull down (or start) menu?

Right now I am using $WS_EX_Layered + $WS_EX_TOPMOST.

And yes, I need to do this. No I don't want to find some other way to click the menu item.

Thanks

One way you could do this is to use WinMenuSelectItem. That way you could get what you want from the menu without having to click on it.

Posted

One way you could do this is to use WinMenuSelectItem. That way you could get what you want from the menu without having to click on it.

Perhaps a good thing to know for other scripts, but in this case a user must click the menu item. It is a tutorial of sorts where the user actually does everything. Creating the gui first and then moving it is working out fine.

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
  • Recently Browsing   0 members

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