Jump to content

Matz

Active Members
  • Posts

    35
  • Joined

  • Last visited

Profile Information

  • Location
    Norway, Oslo

Matz's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thanks. A Sleep() did make the CPU utilization go down. Another option would be to run 2 processes. One traymenu to Connect and Disconnect, and another one to monitor the IPAddresses.
  2. I'm making a Traymenu in systray to initiate a certain function automatically based on changes in @ipaddress. The While loop uses about 2-4 cpu constantly. Example: While 1 $msg = TrayGetMsg() Select Case $msg = 0 If $ipstring <> @IPAddress1 & @IPAddress2 & @IPAddress3 & @IPAddress4 Then _CheckIPs() ContinueLoop Case $msg = $connect _Connect() TrayItemSetState($connect, $tray_unchecked) Case $msg = $disconnect _Disconnect() EndIf ;Case $msg = $exititem ; ExitLoop EndSelect WEnd $ipstring = @IPAddress1 & @IPAddress2 & @IPAddress3 & @IPAddress4 is set inside _CheckIPs(). I've tried different solutins, but it seems that everything I try will utilize 2-4% CPU. I've also tried _DateDiff() before the $ipstring check, but _NowCalc() also uses CPU. Anyone got any ideas on how to solve this without utilizing the CPU?
  3. Wow... what an informative reply. Having trouble with the mrses? Or no mrses at all I was actuallly wondering about the technique behind the aiming.
  4. How is this script going for you? I'm interested in developing it further. What exactly is the bot aiming at?
  5. Hi. Have anyone wrote a script that can use a Wacom Tablet, or any other tablet, so collect signatures or other drawings? I want to make an autoit proggie that I'm going to use for an inventory system where people lend stuff, and they sign in and out.
  6. Great! Thanks both. I found a solution in your post HardCopy... Using a : if (_GUICtrlEditGetFirstVisibleLine($Edit1) > 100) Then ControlEnable($Form1, "The Easy Button", $Button1) Inside the while function in the GUI Thanks Matz
  7. Hi. Is there a solution for reading the position of the VScroll in an GuiCtrlCreateEdit box? I want to make a GUI that you have to scroll down a "disclaimer" but you cant click next before you have scrolled down the entire text.
  8. Great Win32_ComputerSystem / Model was the one I was looking for. (btw. It's WinXP with hacked ThemeXPUI )
  9. No.. check out the screenshot This "System Model"
  10. Nice. Do you know how I can get "Model Name" like the one in SystemInformation? (Start:Access:System:) Mats
  11. Nice... Do you know where to find these "variables" ? like Win32_Processor and objItem.Availability ? If you can find them in Oleview.. then where
  12. Hi. Anyone got a tip on how to make a button image change to a clicked image, then back when you release the mouse button?
  13. THis is what I came up with.. semi hidden... #include <Array.au3> #include <File.au3> Opt("WinTitleMatchMode", 2) Dim $array Run("explorer.exe f:\", "", @SW_HIDE) WinWaitActive("Usrvol") Send("{APPSKEY}") Send("r") WinWaitActive("Properties") Send("{SHIFTDOWN}") Send("{tab}") Send("{SHIFTUP}") Send("{RIGHT}") WinWaitActive("Properties", "LONG") $text = WinGetText("Properties") Send("!{F4}") $file = "c:\test.txt" _FileCreate ( $file ) FileOpen($file, 2) FileWrite($file, $text) FileClose($file) _FileReadToArray($file, $array) $i = 1 Do $check = $array[$i] $i = $i + 1 Until $check = "Space Available:" $space = $array[$i] $error = WinClose("Usrvol") ConsoleWrite($error & @LF) ConsoleWrite($space & @LF) MsgBox(0, "Space available", $space) I'm sure there is a better way to make text with linefeeds -> one line... But this one works... Matz
  14. Hi. Is there anyway to open the properties window for a folder hidden, and get Hidden window text? I'm trying to get Space Restriction on a Novell network drive/folder. Autoit active window info displays all the hidden window text, this is some of the text. >>>> Hidden Window text <<<< Space Restricion: Unlimited Anyone got a tip?
  15. Or you can just use: RunWait(@ComSpec & ' /c DIR /ANYTHINGGOES > %TEMP%\output.tmp', "c:\", @SW_HIDE)
×
×
  • Create New...