Sign in to follow this  
Followers 0
rush4hire

How do you get a select/option control?

7 posts in this topic

Here's how you would do it in html:

<html>
<body>
<h4>Pick a hotkey</h4>
<select>
<option value ="{F1}">F1</option>
<option value ="{F2}">F2</option>
<option value ="{F3}">F3</option>
<option value ="{F4}">F4</option>
<option value ="{F5}" selected="selected">F5</option>
<option value ="{F6}">F6</option>
<option value ="{F7}">F7</option>
<option value ="{F8}">F8</option>
<option value ="{F9}">F9</option>
<option value ="{F10}">F10</option>
<option value ="{F11}">F11</option>
<option value ="{F12}">F12</option>
</select>
</body>
</html>

Here's what it looks like.

http://www.rush4hire.com/examples1/pickhotkey.htm

I just looked and looked and I just couldn't find it.

Thanks :D

Share this post


Link to post
Share on other sites



What's your question?


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Something like this?

$CheckBox1 = GUICtrlCreateCheckbox("tag", 152, 96, 81, 17)
GUICtrlSetState($CheckBox1, $GUI_CHECKED) ; will check the box
GUICtrlSetState($CheckBox1, $GUI_UNCHECKED) ; will uncheck it

$state = GUICtrlGetState($CheckBox1) ; will return the state (checked or not)
oÝ÷ Øêߢ¶¢fèn_®¡zZ_WºÚ"µÍÕRPÝÜX]PÛÛXÈ
    ][ÝÚ][LI][ÝËLL
HÈÜX]HÝ][BÕRPÝÙ]]JLK  ][ÝÚ][L][LÉ][ÝË    ][ÝÚ][LÉ][ÝÊHÈYÝ][HÛÙ]H]ÈY][

Hope that helps,

Somniis :D

Edited by Somniis

Share this post


Link to post
Share on other sites

see sample of GUICtrlCreateCombo() in the help file.

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

Is this resolved for you? It's always nice to put he resolution in the post for people reaping knowledge from the forums :D


~Projects~1. iPod Ejector 1.0 - Tool Used To Eject iPod in Windows - Uses DevEject.exe :P2. SmartFTP Close Popup Tool - Closes reminders from freeware SmartFTP.~Helpful Links For New Users~1. LXP's Learning AutoIT PDF Guide - <<< Go here for a PDF Guide on learning AutoIT from the ground up!<<<2. AutoIt 1-2-3 <<<Want to learn more about AutoIT quickly? Go Here<<<3. How To Install The Beta And Production Versions Of AutoIT / SciteAutoIT

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Ya I meant to. Sorry I forgot.

The thing I was working on and am still working on atm is found at http://www.rush4hire.com/files/ddcodes.exe

GUICtrlCreateLabel ( "Hotkey to save code.", 290, 235 )
$hkeyopts[0] = GUICtrlCreateCombo ("F2", 290, 250, 45)
GUICtrlSetData ( -1, "F3|F4|F5|F6|F7|F8|F9|F10|F11|F12", $set_hotkeys[0] )

; ~ and in the gui loop there are things like this:
Case $hkeyopts[0]
ResetHotkeys(0)
Edited by rush4hire

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  
Followers 0