spanga
Active Members-
Posts
35 -
Joined
-
Last visited
spanga's Achievements
Seeker (1/7)
0
Reputation
-
I am in desperate need of a command line utility to record from "What u hear" or "Stereo mix". I have googled two days and I can tell you there is no such utility. I have been playing around with the great bass.dll udf but I must say I'm lost. If anyone could give me some advice or example I would deeply appreciate it.
-
I am in the thoughts of making a screensaver for my second monitor, while it is not in use. As my current setup is a 24" monitor as primary and a 46" LCD TV as secondary monitor I find myself "forgetting" about my second monitors state. I do not know how common burn marks are in todays LCD TVs but it would be a shame if I got any ... anyways it could be a nice touch to my living room with my TV viewing some nice photos instead of an idle desktop. I have searched for a similar solution but found nada. The screensaver that is shipped with windows hasn't got the feature I'm looking for. What I want to accomplish is some sort of screensaver for the second monitor to run when I am not using it. I got an idea of a design and I would very much appreciate any ideas and thoughts about the way to create this script. -At first I use a pixelchecksum on the area of the desktop that is viewed by the second monitor. -After x minutes I do a new checksum and if the sums are equal I assume the second monitor isn't in use. -The "screensaver" starts, showing some images or whatever I like, in fullscreen on the second monitor. -The script is now in a loop fetching mouse coordinates - if the mouse positions x coordinate is greater than the primary monitors width, the screensaver stops and we go back to getting checksums of the second monitor. I also would like comments about designing this script to use as few system resources as possible, as I suspect my original design isn't the optimal, since it will be running at all time.
-
Sure they are, but I'm only interested in the perfomance - you say it's faster than any of the examples?
-
Selecting empty row with mysql odbc
spanga replied to spanga's topic in AutoIt General Help and Support
$vars and $qry are both function parameters. $vars is always 1... if not an insert, then 0 (both set manually). $qry is the query, as in this case "SELECT old FROM users WHERE ukey='" & $ukey & "'" Tbh I don't think this is related to AutoIt, but to myodbc or some of the other components in this mess. Just don't know where to ask -
I am using this script to make querys to my mysql database. On the computer (win2k) running the mysql database. I get an error when selecting an empty field. On my two other computers (win xp, win xp x64) the same queries works fine. The error I get is: $cmboval = $cmboval & "" & .Fields ($u).Value $cmboval = $cmboval & "" & .Fields ($u).Value^ ERROR Error: Error in expression Anyone got any clues? CODE $adoCon = ObjCreate ("ADODB.Connection") $adoCon.Open ("Driver={MySQL ODBC 3.51 Driver}; Server=localhost; Option=3; Database=x; Uid=x; Pwd=x;") $adoRs = ObjCreate ("ADODB.Recordset") $adoRs.CursorType = 2 $adoRs.LockType = 3 $adoRs.Open ($qry, $adoCon) $cmboval = "" With $adoRs If $vars > 0 Then $count = 0 While Not .EOF $count += 1 For $u = 0 To $vars - 1 Step 1 $cmboval = $cmboval & "" & .Fields ($u).Value If $u < $vars - 1 Then $cmboval = $cmboval & "|" Next .MoveNext WEnd EndIf EndWith $adoCon.Close Return $cmboval
-
I thought this script was great! Too bad it doesn't work with the latest beta
-
Hello. Is there any performance difference at all between my two examples. When you got more like 50 cases instead of 2. Ex 1. CODEIf StringInStr($number,"!02") > 0 THEN Return 3 If StringInStr($number,"?10") > 0 THEN Return 3 Ex 2. CODEIf StringInStr($number,"!02") > 0 OR StringInStr($number,"?10") > 0 THEN Return 3
-
Ram And Cpu From Remote Pc
spanga replied to evilertoaster's topic in AutoIt General Help and Support
Try this: $wbemFlagReturnImmediately = 0x10 $wbemFlagForwardOnly = 0x20 $colItems = "" $computerName = "localhost" $objWMIService = ObjGet("winmgmts:\\" & $computerName & "\root\CIMV2") $colItems = $objWMIService.ExecQuery("SELECT * FROM Win32_Processor", "WQL", $wbemFlagReturnImmediately + $wbemFlagForwardOnly) If IsObj($colItems) then For $objItem In $colItems $CPUSpeed = $objItem.CurrentClockSpeed Next EndIf $colItems = $objWMIService.ExecQuery("SELECT * FROM Win32_ComputerSystem", "WQL", $wbemFlagReturnImmediately + $wbemFlagForwardOnly) If IsObj($colItems) then For $objItem In $colItems $Memory = $objItem.TotalPhysicalMemory Next EndIf Now you (I hope) you get $CPUSpeed and $Memory -
Reading Massive Text Amounts From Edit Controls?
spanga replied to spanga's topic in AutoIt General Help and Support
The program I am reading from isn't a Au3-script. It's the same as reading from Notepad's edit window. -
Reading Massive Text Amounts From Edit Controls?
spanga replied to spanga's topic in AutoIt General Help and Support
As I mentioned short-cut keys like that don't work. But it is possible to select it manually and have all the text in clipboard. I guess it is a limitation in the ControlGetText function resulting in only 32,768 chars get put in to clipboard. -
Reading Massive Text Amounts From Edit Controls?
spanga replied to spanga's topic in AutoIt General Help and Support
OK. This is what I can do: Select/Delete/Edit text manually. Select the whole text (lots) and put it in clipboard and paste it all to Notepad manually. This is what I can't do: Use some sort of "save function". Use short-cut keys to "select all". It is pretty the same as notepad, but without functions... Any other info that would help you? -
Reading Massive Text Amounts From Edit Controls?
spanga replied to spanga's topic in AutoIt General Help and Support
It only gets 32,768 bytes (way from total) but I guess this will be the best way to do it? Reading and writing it partially in chunks of 32kB Or is there an even better way? -
Reading Massive Text Amounts From Edit Controls?
spanga replied to spanga's topic in AutoIt General Help and Support
Anyone who could help please? -
Reading Massive Text Amounts From Edit Controls?
spanga replied to spanga's topic in AutoIt General Help and Support
May GUICtrlRead() be used for reading other applications than AutoIt-ones? For instance Notepad. If so... how? And yes... 2 MB is a lot -
I am trying to find the fastest way to read/copy huge amounts of text from Edit-windows. To read and write line by line is kinda slow, at least the way I made it (GetLine/FileWriteLine). ControlGetText cant handle more than 64 kB? - May there be a quick way by reading/writing the Edit partially? The program got this Edit control and there is no way of saving the text with the program or so... I have to simply read it and rewrite it to a file. Anyone got any ideas?