Heinzo80 Posted November 15, 2010 Share Posted November 15, 2010 Hiho all. I got a little problem with the send fuction. There's a combo field: $key1 = GUICtrlCreateCombo("", 232, 64, 81, 25) GUICtrlSetData(-1, "+1|+2|+3|+4|+5|+6|+7|+8|+9|+0", "") The following code should've send a SHIFT+number depending on the combo. Send(GUICtrlRead($key1)) For some reason it doesn't work though. I'm sure the solution is ridiculously easy, but i can't find it. Thx in advance, Heinzo Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted November 15, 2010 Share Posted November 15, 2010 Hi and Welcome to the forum! How do you expect us to fix your code when we can't see it? Do you expect us to read your mind? If your script is small you can post it, if not then make a reproducer (fully working/runnable). In this case, all we can say is that your script is fully working, because after filling in all the blanks it IS WORKING. For $iX = 0 To 9 HotKeySet("+" & $iX, "_HotKey") Next GUICreate("Test", 320, 240) $key1 = GUICtrlCreateCombo("", 232, 64, 81, 25) GUICtrlSetData(-1, "+1|+2|+3|+4|+5|+6|+7|+8|+9|+0", "") GUISetState() While 1 Switch GUIGetMsg() Case -3 Exit Case $key1 Send(GUICtrlRead($key1)) EndSwitch WEnd Func _HotKey() ConsoleWrite(@HotKeyPressed & @CRLF) EndFunc Think about this the next time you ask for help. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
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