Jump to content

changtraingheo

Members
  • Posts

    2
  • Joined

  • Last visited

changtraingheo's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. in the autoit, to make combox use this code: $input_second_mau = GUICtrlCreateCombo("item1",105,22,50) GUICtrlSetData($input_second_mau, "item2|item3", "item3") I try get value when select an item with code: MsgBox(0,"title","Value = " & GUICtrlRead($input_second_mau)) If i select item 3, i got value is "item3". It's get text not get value of combo box, if i change "item3" to "Help and Support" .. i got value is "Help and support" too, it's so hard compare, example: if GUICtrlRead($input_second_mau) == "Help and Support" .... ; it's not good In the html: <select onChange="alert(this.value)"> <option value="1">Item 1</option> <option value="2">Help and support</option> </select> when i select Help and Support, i got value is 2. I'm a newbie, i need help this problem. Thanks
  2. I want to send key to On-Screen Keyboard (program in win 7) and then On-Screen Keyboard program send that key to notepad, but my script is not work, this is my script: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Include <Timers.au3> Global $nDelay,$handle,$pid; $nDelay = 2000 $gui = GUICreate("My GUI",200,100) $button_gen = GUICtrlCreateButton("Start",10,30,60) $button_stop = GUICtrlCreateButton("Stop",10,60,60) $handle = WinGetHandle('On-Screen Keyboard', "") $pid = WinGetProcess($handle) GUISetState() ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE ExitLoop Case $button_gen _Timer_SetTimer($gui, $nDelay, "AutoTDK") Case $button_stop _Timer_KillAllTimers($gui) EndSwitch WEnd GUIDelete() Func AutoTDK($hWnd, $Msg, $iIDTimer, $dwTime) WinActivate("Untitled - Notepad") ; active notepad program ControlSend($handle, "", $pid,"{SPACE}") ; send space key to On-Screen Keyboard EndFunc pls help me
×
×
  • Create New...