
Vivvic
Active Members-
Posts
131 -
Joined
-
Last visited
Everything posted by Vivvic
-
Ok thanks, I think I got it, will reply if I need anymore help.
-
Yes, I tried somthing like that but it dosnt seem to work, just tried yours and seem to get same results.>.< EDIT: failed to mention it dosnt show any errors just dosnt show msg box either.
-
I am writing a launch program for a few keys for a friend of mine. But the keyboard has keyboard specific keys and I would like to find the hex values for those keys, how would I go about doing that?
-
Thank you ^^ I'm sure I will use this info in the future as well.
-
Ok sorry, I was speaking of $text, even after you change the text in the gui it says input text here in the audio file. ( origonal script from http://www.autoitscript.com/forum/index.ph...p;hl=text++mp3 )://http://www.autoitscript.com/forum/i...;hl=text++mp3 )://http://www.autoitscript.com/forum/i...;hl=text++mp3 )://http://www.autoitscript.com/forum/i...;hl=text++mp3 )://http://www.autoitscript.com/forum/i...;hl=text++mp3 )://http://www.autoitscript.com/forum/i...;hl=text++mp3 )
-
Not sure why GUI wont change the variable #include <GuiConstants.au3> GuiCreate("Text to mp3", 392, 321,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS)) $IB = GuiCtrlCreateEdit("Input text here", 20, 10, 350, 260) $Done = GuiCtrlCreateButton("Done", 100, 280, 160, 30) $text = GUICtrlRead($ib) ;$text = "1 freedom of speech:2 bear arms:3 quartering of troops:4 search and siesure:5 plea the fifth/double jepordy:6 trial:7 trial by jury:8 cruel punishment:9 right for people:10 state rights:11 suits aginst states:12 president/vice president:13 slavery:14 equal treatment:15 all men vote:16 direct tax:17 direct election:18 prohibition:19 women vote:20 lame duck:21 end prohibation:22 terms of president:23 D.C. electors:24 poll tax:25 president disability:26 voteing age from 21 to 18:27 congresses pay" $mp3file = @scriptdir&"\amendments.mp3" GuiSetState() While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Done _text2mp3($text,$mp3file,"Microsoft Mike") SoundPlay ($mp3file,true) EndSelect WEnd Exit ; func _text2mp3($text,$mp3file,$myvoice="",$lameoptions="") $lameexe = @scriptdir&"\lame.exe" $tempwav = @tempdir & "\" & random(1000,9999) & ".wav" $SSFMCreateForWrite = 3 $objVOICE = ObjCreate("SAPI.SpVoice") $objFSTRM = ObjCreate("SAPI.SpFileStream") $objVTOKN = ObjCreate("SAPI.ISpeechObjectToken") if $myvoice <> "" Then dim $aVoices[1] $vIndex = -1 $sVoices = "" For $objVTOKN In $objVOICE.GetVoices() $vIndex += 1 redim $aVoices[$vIndex+1] $aVoices[$vIndex] = $objVTOKN.GetDescription() $sVoices &= @crlf & " " & $objVTOKN.GetDescription() Next $noVoice = True for $i = 0 to Ubound($aVoices)-1 if stringinstr($aVoices[$i],$myvoice) Then $objVOICE.Voice = $objVOICE.GetVoices().Item($i) $noVoice = False ExitLoop EndIf Next if $novoice Then $errmsg = "The following voices are installed on your system:"&@crlf &$sVoices $errmsg &= @crlf & @crlf & "Continuing with the default SAPI voice." msgbox(16,'Cannot find voice "'&$myvoice&'"',$errmsg) EndIf EndIf consolewrite("Speaking to WAV file..."&@crlf) $objFSTRM.Open($tempwav , $SSFMCreateForWrite, False) $objVOICE.AudioOutputStream = $objFSTRM $objVOICE.Speak($text) $objFSTRM.Close $objFSTRM = 0 $objVOICE = 0 consolewrite("Encoding WAV file to MP3..."&@crlf) $return = runwait('"'&$lameexe&'" '&$lameoptions&' "'&$tempwav&'" "'&$mp3file&'"',@scriptdir, @SW_HIDE) consolewrite("Lame.exe exit code: "&$return & @crlf) filedelete($tempwav) return $return EndFunc
-
.Yeah but what if you mess up >.<
-
.That sounds good
-
clicking security infromation dialog box in IE. help!
Vivvic replied to ofir's topic in AutoIt Example Scripts
This is not a general support forum! -
Nope the origonals were kinda easy.
-
w0w, never thought of going that way great job! EDIT:This is how I was thinking when I made it(now with fixed lazer)
-
Nice, Like it alot, if you want to play my level here is the ini. [Grid] 1,1=2 2,1=2 3,1=0 4,1=0 5,1=0 6,1=0 7,1=0 8,1=0 9,1=0 10,1=0 11,1=0 12,1=0 13,1=0 14,1=0 15,1=0 16,1=2 1,2=2 2,2=0 3,2=0 4,2=0 5,2=0 6,2=0 7,2=0 8,2=0 9,2=0 10,2=2 11,2=10 12,2=0 13,2=0 14,2=0 15,2=0 16,2=2 1,3=2 2,3=0 3,3=0 4,3=0 5,3=0 6,3=0 7,3=0 8,3=0 9,3=0 10,3=0 11,3=0 12,3=0 13,3=0 14,3=0 15,3=0 16,3=2 1,4=2 2,4=0 3,4=0 4,4=0 5,4=0 6,4=0 7,4=0 8,4=0 9,4=0 10,4=2 11,4=0 12,4=0 13,4=0 14,4=0 15,4=0 16,4=2 1,5=2 2,5=0 3,5=0 4,5=0 5,5=0 6,5=0 7,5=0 8,5=0 9,5=0 10,5=2 11,5=0 12,5=0 13,5=0 14,5=0 15,5=0 16,5=2 1,6=2 2,6=0 3,6=0 4,6=0 5,6=0 6,6=0 7,6=0 8,6=0 9,6=2 10,6=0 11,6=0 12,6=0 13,6=0 14,6=1 15,6=0 16,6=2 1,7=2 2,7=0 3,7=0 4,7=0 5,7=0 6,7=2 7,7=2 8,7=2 9,7=0 10,7=0 11,7=0 12,7=0 13,7=0 14,7=2 15,7=0 16,7=2 1,8=2 2,8=0 3,8=0 4,8=1 5,8=0 6,8=2 7,8=0 8,8=1 9,8=0 10,8=0 11,8=0 12,8=1 13,8=0 14,8=0 15,8=1 16,8=4 1,9=2 2,9=0 3,9=0 4,9=2 5,9=2 6,9=2 7,9=1 8,9=2 9,9=0 10,9=0 11,9=0 12,9=0 13,9=0 14,9=0 15,9=0 16,9=0 1,10=2 2,10=0 3,10=2 4,10=0 5,10=0 6,10=0 7,10=0 8,10=0 9,10=0 10,10=0 11,10=0 12,10=0 13,10=0 14,10=0 15,10=0 16,10=2 1,11=2 2,11=2 3,11=2 4,11=0 5,11=0 6,11=2 7,11=0 8,11=0 9,11=0 10,11=0 11,11=0 12,11=0 13,11=0 14,11=0 15,11=0 16,11=2 1,12=2 2,12=2 3,12=2 4,12=0 5,12=1 6,12=0 7,12=0 8,12=0 9,12=0 10,12=0 11,12=0 12,12=0 13,12=0 14,12=0 15,12=0 16,12=2 1,13=2 2,13=2 3,13=2 4,13=2 5,13=2 6,13=2 7,13=0 8,13=0 9,13=0 10,13=0 11,13=3 12,13=11 13,13=2 14,13=2 15,13=2 16,13=2 [Other] Angle=g MirrorA=14 MirrorB=0
-
Nice file, I love it, one sugestion I had though, maby add this http://www.wimpyplayer.com/products/wimpy_...flv_player.html its a standalone flv player so maby could incorporate it to download them and be able to play them all in one nice program^^
-
I also like this, I must get in that habit myself.
-
Hehe, kudos to you my friend
-
I know you said your still working on it but its been a while and i thought you may have forgotten about it, I would love to see some useful improvements to this wonderful script.
-
You could make a search for analizer.dll, it should be what you need if you need to look for a picture. EDIT: http://www.autoitscript.com/forum/index.ph...hl=analizer.dll
-
Im asuming you have "Sleep(2)" in your script, try "Sleep(2000)" instead
-
How to Toggle lines from comments and to comments
Vivvic replied to lgodfrey's topic in AutoIt General Help and Support
It is also my faveorite, I have found myself useing it alot lately. -
Thanks, that seems to work alot better.
-
Yes, I origonaly had a sleep in it but it isnt responsive.....is there a way I can add a sleep while keeping it as responsive as possible?
-
Ok, got it working but it isnt reliable and is taxing on cpu when I run it during unreal tournment (reason for makeing) any way to inprove? #include<c:/program files/autoit3/beta/include/misc.au3> while 1 if _IsPressed("25") = 1 Then Send( "aa" ) EndIf WEnd EDIT:TYPO
-
Taken from helpfile for pause ; Press Esc to terminate script, Pause/Break to "pause" Global $Paused HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") HotKeySet("+!d", "ShowMessage") ;Shift-Alt-d ;;;; Body of program would go here ;;;; While 1 Sleep(100) WEnd ;;;;;;;; Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc Func ShowMessage() MsgBox(4096,"","This is a message.") EndFunc as for aialogue box make a variable and have the input box change the varable and then later in the script the variable is called?
-
-thanks for fast reply.- Hmm, still dosnt seem to be working, perhaps my hex for the keys are incorrect, I rember someone (on I think a german keyboard?) wanting to know what the hex for the key to the left of one(1) on his keyboard was and a script was given to him, could someone point me in the direction of this script? EDIT: Would that work for a mouse buttion as well? It should shouldnt it?
-
How to Toggle lines from comments and to comments
Vivvic replied to lgodfrey's topic in AutoIt General Help and Support
w0w thanks I didnt know this was possible^^