keepitloud Posted October 29, 2008 Posted October 29, 2008 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
dbzfanatic Posted October 29, 2008 Posted October 29, 2008 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. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote]
keepitloud Posted October 29, 2008 Author Posted October 29, 2008 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.
Zedna Posted October 29, 2008 Posted October 29, 2008 Maybe try to do only WinSetState("", "", @SW_HIDE) WinSetState("", "", @SW_SHOW) instead of creating it and activating it. But I'm not sure if that show without "activated" state. Try to search for some windows style/exstyle or windows state representing "no activate". I think I have seen something like this before. Resources UDF ResourcesEx UDF AutoIt Forum Search
keepitloud Posted October 30, 2008 Author Posted October 30, 2008 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.
MerkurAlex Posted October 30, 2008 Posted October 30, 2008 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]
keepitloud Posted October 30, 2008 Author Posted October 30, 2008 ...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.
Bert Posted October 30, 2008 Posted October 30, 2008 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.ThanksOne 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. The Vollatran project My blog: http://www.vollysinterestingshit.com/
keepitloud Posted October 31, 2008 Author Posted October 31, 2008 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now