Kademlia
Active Members-
Posts
89 -
Joined
-
Last visited
Kademlia's Achievements
Wayfarer (2/7)
0
Reputation
-
[Solved] GUICtrlSetData abnormal behaviour
Kademlia replied to Kademlia's topic in AutoIt General Help and Support
Hey, thanks for answering. I´d like to use $GUI_DISABLE [ Control will be greyed out. ] But gray on gray is not that readable... and GUICtrlSetColor($-1, 0x000000) won´t change it back About the GUICtrlSetData() I tried to make some kind of Logging/ConsoleInput window. Text can be inserted by the User using GUICtrlCreateInput. The program itself will add Logging information to the window all the time depending on the DebugLevel [Date/Time information and some Statistic values] A User should be able to write inside the InputBox and publish the text into EditField by pressing enter. But everytime the Timer Based function inserts a text into the EditField the current text of that InputBox will be added too. Edit: Thanks GUISetAccelerators works fine. I think i will have a closer look on that one. -
Hey, I got some problems with GUICtrlSetData,GUICtrlCreateInput and GUICtrlCreateEdit I wans´t able to work around. Every time I insert text with GuiCtrlSetData into the EditField the text inside the InputText will be copied too (if changed). Example Code: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <EditConstants.au3> #include <StaticConstants.au3> #include <Constants.au3> Global $ConsoleGui = GUICreate("Console",500,300,50,50,-1,$WS_EX_ACCEPTFILES) Global $ConsoleList = GUICtrlCreateEdit("",5,5,490,270, BitOR($WS_VSCROLL, $ES_AUTOVSCROLL, $ES_READONLY) ) Global $ConsoleInput = GUICtrlCreateInput("",5,275,490,20) Global $SecondsTimer = TimerInit() GUISetState(@SW_SHOW) Opt("GUIOnEventMode", 0) while True Local $msg = GUIGetMsg() Switch $msg Case $ConsoleInput GUICtrlSetData($ConsoleList,GUICtrlRead($ConsoleInput),1) Case $GUI_EVENT_CLOSE Exit EndSwitch CheckTimer() WEnd Func CheckTimer() If TimerDiff($SecondsTimer) > 500 Then GUICtrlSetData($ConsoleList,"..." & @CRLF,1) $SecondsTimer = TimerInit() EndIf EndFunc Second thing: GUICtrlCreateEdit("",5,5,490,270, BitOR($WS_VSCROLL, $ES_AUTOVSCROLL, $ES_READONLY) ) Should create a READONLY EditField. But i´m still able to change the text by highlighting (hold mouse down and move cursor) parts of the text with my mouse cursor. This works in the example above. If someone has a fix for this or just a hint i´d be happy to hear about it. Thanks.
-
Hey, just tested your code. You got bad performance for _HTTPRead As you are using TCPRecv($socket,16) on line 243. This causes very bad transfer speeds. By using 8192 or more the code works well even if you download big files. Missing: _HTTPReadToFile() ; as AutoIt will 'crash' if you download files > 20MiB anyway gread work helped me alot!
-
Change MicInput Volume - possible?
Kademlia replied to Kademlia's topic in AutoIt General Help and Support
I only got the half way, i tought no one was interested so i stopped posting about this topic. I need to be able to to two things: 1. Change Mic volume 2. Change MIC Boost ON/OFF (This is more important because on most computers you will nearly not hear a person speaking just by changing Mic volume to 100%) to 1: I managed to get he IDs of the InputLines. I stopped at that point because i knew changing the MIC BOOST is more difficult. So i started working there. You can see the IDs for the INPUTLines by doing this to MXSelectInputSrc.au3 CODEFunc GetLineConnectionsNames(ByRef $mixers,ByRef $mxInList,$index) Local $i,$x,$n,$hmxobj,$ret If $mixers[0][0] Then $hmxobj=$mixers[$index][$MIX_HMXOBJ] $x=0 For $n=0 To $mixers[$index][$MIX_CCONNECTIONS]-1 zeroline($mxline) $mxline[$dwDestination]=$mixers[$index][$MIX_DWLINEID] $mxline[$dwSource]=$n $ret=MixerGetLineInfo($hmxobj,$mxline,BitOR($MIXER_OBJECTF_HMIXER,$MIXER_GETLINEINFOF_SOURCE)) ;ask for source lines If NOT @error Then $mxInList[$x][$lst_destname]=$mxline[$szName] & " ID= " & $mxline[4] $mxInList[$x][$lst_dwComponentType]=$mxline[$dwComponentType] $x=$x+1 If UBound($mxInList)<$x+1 Then ReDim $mxInList[$x+2][uBound($mxInList,2)] Else SetError(1) Return False EndIf Next ;n $mxInList[0][0]=$x Return True Else SetError(1) Return False EndIf EndFunc 2: Tried a long time...but i just cant get it to work - i compared with some examples at codeproject, at expert-exchange aso... just don´t know whats going wrong The code i tried to port can be found here (bottom of page): http://www.experts-exchange.com/Programmin...l?eeSearch=true I added this to MXSelectInputSrc_include.au3 CODEConst $MIXERCONTROL_CT_CLASS_SWITCH =0x20000000 Const $MIXERCONTROL_CT_SC_SWITCH_BOOLEAN = 0 Const $MIXERCONTROL_CONTROLTYPE_BOOLEAN = BitOR($MIXERCONTROL_CT_CLASS_SWITCH , $MIXERCONTROL_CT_SC_SWITCH_BOOLEAN , $MIXERCONTROL_CT_UNITS_BOOLEAN) Const $MIXERCONTROL_CONTROLTYPE_ONOFF = ($MIXERCONTROL_CONTROLTYPE_BOOLEAN + 1) Const $MIXERCONTROL_CONTROLTYPE_MUTE = ($MIXERCONTROL_CONTROLTYPE_BOOLEAN + 2) Const $MIXERCONTROL_CONTROLTYPE_MONO = ($MIXERCONTROL_CONTROLTYPE_BOOLEAN + 3) Const $MIXERCONTROL_CONTROLTYPE_LOUDNESS = ($MIXERCONTROL_CONTROLTYPE_BOOLEAN + 4) Const $MIXERCONTROL_CONTROLTYPE_STEREOENH = ($MIXERCONTROL_CONTROLTYPE_BOOLEAN + 5) Attached the not working Micboost :-/ Start it and click "TEST" - you will get a consoleoutput including the ControlID. But im not able to change the setting always getting an error (11). MicBoost_notworking.au3 -
Change MicInput Volume - possible?
Kademlia replied to Kademlia's topic in AutoIt General Help and Support
And the Mixer.au3 from GaryFrost mentioned here: http://www.autoitscript.com/forum/index.ph...st&p=264605 only returns: CODE;~ DST;~ Digital: 0 ;~ Line: 0 ;~ Monitor: 0 ;~ Speakers: 75 ;~ HeadPhones: 0 ;~ Phone: 0 ;~ WaveIn: 0 ;~ VoiceIn: 0 ;~ SRC ;~ Digital: 0 ;~ Line: 0 ;~ Microphone: 54 <- this is OUTPUT microphone ;~ Synthesizer: 100 ;~ CompactDisc: 0 ;~ Phone: 0 ;~ PcSpeaker: 0 ;~ WaveOut: 96 ;~ Aux: 0 ;~ Analog: 100 Edit: Got it...damn these DLLs nearly killed me -
Change MicInput Volume - possible?
Kademlia replied to Kademlia's topic in AutoIt General Help and Support
Thanks for the answer but i already checked those links. My mainproblem is controling the Input Microphone Volume (and if possible setting the Micboost). As most Computers i got to see use OnboardSonund and "Realtek AC97 Audio" is often used i can´t get around optimizing for that device. The Mainproblem here is: None of the Scripts if found were able to change the Input Volume. Only the Output. Here are some examples of the structure of Mixerdevices i got from some friends (computerlanguage:german) I tried to sneak around this problem with the "VolumeLine" tool but this is just a realy bad way so i will try again on the DllCalls. CODEVolumeLine version 1.0 © 2002 by Slava Glory, Omsk, Russia ------------------------------------------------------------ [mixer:0] Conexant HD Audio output [group:0] Lautstärkeregelung [control:-1] Master Volume volume:100% mute:off Master Volume [control: 0] Wave volume: 44% mute:off Wave [control: 1] SW-Synthesizer volume:100% mute:off SW-Synthesizer [control: 2] CD-Audio volume:100% mute:off CD-Audio [control: 3] Line-Eingangslautstärkevolume:100% mute:off Line-Eingangslautstärke [control: 4] Mikrofon-Eingangslautstärkevolume: 86% mute:off Mikrofon-Eingangslautstärke [control: 5] PC-Lautsprecher volume: 0% mute:on PC-Lautsprecher [mixer:1] Conexant HD Audio input [group:0] Aufnahme [control:-1] Master Volume volume: 0% mute:on Master Volume [control: 0] CD-Audio volume: 50% select:off CD-Audio [control: 1] Mikrofon volume: 0% select:off Mikrofon [control: 2] Line-In volume: 50% select:off Line-In [control: 3] Waveausg.-Mix volume: 78% select:on Waveausg.-Mix CODEVolumeLine version 1.0 © 2002 by Slava Glory, Omsk, Russia ------------------------------------------------------------ [mixer:0] Realtek AC97 Audio [group:0] Lautstärkeregelung [control:-1] Master Volume volume:100% mute:off [control: 0] Wave volume: 12% mute:off [control: 1] SW-Synthesizer volume:100% mute:off [control: 2] Front volume:100% mute:on [control: 3] Subwoofer volume:100% mute:on [control: 4] Center volume:100% mute:on [control: 5] Rear volume:100% mute:on [control: 6] SPDIF volume: 0% mute:off [control: 7] Aux volume: 50% mute:off [control: 8] TV-Empfänger (Audio)volume: 50% mute:off [control: 9] CD-Player volume: 16% mute:off [control:10] Line-In volume: 50% mute:off [control:11] Mikrofon volume: 45% mute:on [control:12] Telefonleitung volume: 50% mute:off [control:13] PC-Lautsprecher volume: 50% mute:off [group:1] Aufnahme [control: 0] Mono Mix volume: 7% select:off [control: 1] Stereo Mix volume: 7% select:off [control: 2] SPDIF volume: 0% mute:on [control: 3] Aux volume: 7% select:off [control: 4] TV-Empfänger (Audio)volume: 7% select:off [control: 5] CD-Player volume: 7% select:off [control: 6] Line-In volume: 7% select:off [control: 7] Mikrofon volume: 92% select:on [control: 8] Telefonleitung volume: 7% select:off CODEVolumeLine version 1.0 © 2002 by Slava Glory, Omsk, Russia ------------------------------------------------------------ [mixer:0] Realtek HD Audio output [group:0] Summe [control:-1] Master Volume volume: 56% mute:off [control: 0] Wave volume: 84% mute:off [control: 1] SW-Synthesizer volume: 57% mute:off [control: 2] CD-Player volume: 76% mute:off [control: 3] Mikrofon volume: 22% mute:off [control: 4] PC Beep volume: 34% mute:off [mixer:1] Realtek HD Audio input [group:0] Aufnahme [control:-1] Master Volume volume: 72% mute:off [control: 0] Mikrofon volume: 0% mute:off [control: 1] Stereomix volume: 0% mute:on CODEVolumeLine version 1.0 © 2002 by Slava Glory, Omsk, Russia ------------------------------------------------------------ [mixer:0] Realtek AC97 Audio [group:0] Lautstärkeregelung [control:-1] Master Volume volume:100% mute:off Master Volume [control: 0] Wave volume:100% mute:off Wave [control: 1] SW-Synthesizer volume:100% mute:off SW-Synthesizer [control: 2] Front volume:100% mute:on Front [control: 3] Side volume:100% mute:on Side [control: 4] Subwoofer volume:100% mute:on Subwoofer [control: 5] Center volume:100% mute:on Center [control: 6] Rear volume:100% mute:on Rear [control: 7] SPDIF volume: 0% mute:off SPDIF [control: 8] CD-Player volume: 88% mute:off CD-Player [control: 9] Line-In volume:100% mute:off Line-In [control:10] Mikrofon volume: 33% mute:on Mikrofon [control:11] Telefonleitung volume: 50% mute:off Telefonleitung [control:12] PC-Lautsprecher volume: 28% mute:off PC-Lautsprecher [group:1] Aufnahme [control: 0] Mono Mix volume: 7% select:off Mono Mix [control: 1] Stereo Mix volume: 47% select:off Stereo Mix [control: 2] SPDIF volume: 0% mute:on SPDIF [control: 3] CD-Player volume:100% select:off CD-Player [control: 4] Line-In volume:100% select:off Line-In [control: 5] Mikrofon volume: 32% select:on Mikrofon [control: 6] Telefonleitung volume: 7% select:off Telefonleitung -
If your using SciTE Open your script -> Ctrl+F7 (Compile) -> Go to Tab "Au3Check"
-
How run ipconfig to find ip address and then ping it
Kademlia replied to wowmarkb's topic in AutoIt General Help and Support
If you still want to use the output of the commandwindow. Just do like this: 1. Get the Commandwindow text to a variable. 2. Trim/Split until you only got the IP adress left. 3. Go for something like this: CODE$ip = "127.0.0.1" Run(@ComSpec & " /c " & 'ping ' & $ip, "", @SW_SHOW) If you want to parse this information you have to use StdoutRead again -
[Bug?] ConsoleText becomes "discolored"
Kademlia replied to Kademlia's topic in AutoIt General Help and Support
bump -
Possible To Write To An .exe? No.
Kademlia replied to Swift's topic in AutoIt General Help and Support
You mean like to compile function in scite? Helpfile -> compile CODE Method 3 - The Command Line The Aut2Exe.exe program can be run from the command line as follows: Aut2exe.exe /in <infile.au3> [/out <outfile.exe>] [/icon <iconfile.ico>] [/nodecompile] [/comp 0-4] [/pass <passphrase>] [/nopack] [/ansi] [/unicode] Long filenames should be enclosed in double-quotes like "C:\Program Files\Test\test.au3". If no "out" file is given the input filename is used with a .exe extension. -
Case Else and EndIf error
Kademlia replied to Somebody Someware's topic in AutoIt General Help and Support
you have to post the whole Select -> Endselect part. If you dont want us to see the real code make an example script and replace the cases with something else. -
Case Else and EndIf error
Kademlia replied to Somebody Someware's topic in AutoIt General Help and Support
and you want somewone to answer a CODEBASED question without code people will just be able to guess -
How run ipconfig to find ip address and then ping it
Kademlia replied to wowmarkb's topic in AutoIt General Help and Support
okay.. "examplecode" was the wrong word. "Here is a part of my program that does what you want to do: Look at StdoutRead in the Helpfile "