Jump to content
Sign in to follow this  
jtaft

Linking form drop down items to a function

Recommended Posts

jtaft

Hello this is my forst post and although I have written many basic scripts I am trying to write this one that is a bit more advanced.

What I have is a form with a drop down menu.  What I am trying to do is based on the selection I want a certain action to happen.  In this case I am trying to Link "Proxy 1" to a function and when it is selected it makes some registry edits and displays a message to close the browser.  I plan to then expand this with several other options.  Also when the button is selcted and the function has finished I want the box to close.

WS_Stop.au3

Share this post


Link to post
Share on other sites
LongBowNZ

$Combo1 holds the control id of the combo box. You need to use GUICtrlRead() to get the current selected value.
 

If GUICtrlRead($Combo1) = "Load Proxy 1"

Share this post


Link to post
Share on other sites
jtaft

Thank you so much for the reply!!! 

I was looking at that but wasn't sure how to put it together!  So makes me feel good I was on the right track.  :thumbsup:

With every Script my knowledge geta stronger and stronger and I owe all the credit to this forum!!! 

Share this post


Link to post
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
Sign in to follow this  

×