
Arterie
Active Members-
Posts
77 -
Joined
-
Last visited
Everything posted by Arterie
-
read registry subkeys and write to array
Arterie replied to kneze's topic in AutoIt General Help and Support
Shouldnt it be $var1=RegRead("HKEY_LOCAL_MACHINE\Sample\content",$var) ? -
*Bump* Still the same question... i found out that it somehow belongs to wxwidgets, but i cant figure out how to interact with it.
-
I found a old thread where there was the same question, but no one answered so ill try making a new one. Does Autoit support handling wxWindowClassNR (like getText setText and so on) or are there Dlls which i could call functions from or even a udf? Regards Arterie
-
Put Global $Input1,$Input2 at the top of the script and change the Ok function to something like this: Func Ok() If $Input1 <> "" Then MsgBox(0, "Typed text", GUICtrlRead($Input1)) Else MsgBox(0, "Typed text", GUICtrlRead($Input2)) EndIf EndFunc
-
You can, but you have to define $input as Global if you are defining it in a function and want to read from it in another function Like Global $input1 = Gui...
-
How to extract the file in the folder
Arterie replied to arunachandu's topic in AutoIt General Help and Support
I think u are missing a \ at D:\Documents and Settings\Arunac\My Documents\Results\ <- -
Ok it does work now with notepad. But for other classes the GUICtrlEdit* functions do not work :/ I want to edit [CLASS:wxWindowClassNR; INSTANCE:33] but it wont work. No error it just doesnt edit anything. Ill make a new thread concerning wxWindowClassNR
-
The Au3 Window Info says the same [CLASS:Edit; INSTANCE:1] If i try it with the handle for the scrite editor window it works oO
-
FileFindFirstFile in user provided path ?
Arterie replied to ALIENQuake's topic in AutoIt General Help and Support
If IsAdmin() Then $varmanual = InputBox("Scierzka do katalogu", "Podaj sciezke do katalogu", "C:\Program Files\WinRar\", "",-1, -1, 0, 0) If @error=1 Then Exit Else $search = FileFindFirstFile($varmanual &"winrar*.exe") EndIf ; Check if the search was successful If $search = -1 Then MsgBox(16, "Blad", "W podanej sciezce znalazlem pliku exe.") Exit Else ; Close the search handle FileClose($search) DirCopy(@SCriptDir, $varmanual, 1) FileCopy(@SCriptDir & "\*.*", $varmanual, 9) EndIf EndIf You missed a "\" for the path. i added that at the first line So you either do this $varmanual = InputBox("Scierzka do katalogu", "Podaj sciezke do katalogu", "C:\Program Files\WinRar\", "",-1, -1, 0, 0) or that $search = FileFindFirstFile($varmanual &"\winrar*.exe") -
i dont really get what it should do but anyways... if you want to call _DosPaint youll need to put #include <dossing paint.au3> at the top of the gui.au3
-
Still an errormsgbox pops up telling me: _MemInit: Invalid window handle [0x00000000] It did activate notepad though
-
I used Au3Info in order to get the Controlhandle of the notepads editbox. Then i simply use _GUICtrlEdit_AppendText(0x005402F4,"test") As suggested by fett8802. But as he added these functions only work for Autoit-guis. I tryed them for notepad and recieved the error: Invalid window handle 0x000000. Thats what i meant by saying im only recieving errors.
-
It's either not working properly or producing error messages. Further help is appreciated Regards, Arterie
-
oh i thought these commands would only work with the script's gui. Thanks for the hint
-
Take a look at TimerInit and TimerDiff. e.g. $start = TimerInit() Loop If TimerDiff($start) >= (1000 * 60 * 45) Then Exitloop $start = TimerInit() Loop Your script Until TimerDiff($start) >= (1000 * 60 * 15) Then go back to the pause timerloop This is pseudo code but i think the idea is clear
-
I have a few questions. 1. How do i read a specific line of a Control (e.g. notepad edit window) 1.1 Does ControlGetText takes longer to load the text if its longer? 1.2 Is there another way instead of using ControlGetText and is it any faster? (On Huge Text) 2. How do i insert a string into the above control at a specific line without setting the whole text (ControlSetText) or moving the caret (ControlCommand(EditPaste))? Regards, Arterie
-
Block Keyboard but reciieve input
Arterie replied to Arterie's topic in AutoIt General Help and Support
Ok, i tryed the blockinput, but it blocks all the input. as i said, i want only my script to recieve input from the keyboard. the hotkeys could be possible, but i dont want to assign every single letter on its own. @ maestro: i meant the scripts "interior". like if my active window is notepad, and if you type something, my programm should block it, but also recieve the pressed keys. -
Hi! I need something for my script. I used the blockinput udf for blocking the keyboard. The problem is that my script should recieve input from the keyboard, but if i press "a" there shouldnt appear an "a" on the screen.
-
Hi, i would like to know, if and how i could check if a taskbar item is flashing. (Normal to orange, like ICQ-Windows when you recieved a msg) I hope there is an easier way then checking for the color what i am currently about to use.
-
Ok thanks alot!
-
I have two functions in my script. If I drag and drop a picture on the *.exe I want it to run one of the functions with the name of the picture.
-
Cleaning Desktop, my documents and My pictures
Arterie replied to MarkMarkMark's topic in AutoIt General Help and Support
This should find all files in the desktopdir and announce them in a MsgBox.. see FileFindNextFile in your HelpDir ; Shows the filenames of all files in the current directory $search = FileFindFirstFile(@DesktopDir & "\*.*") ; Check if the search was successful If $search = -1 Then MsgBox(0, "Error", "No files/directories matched the search pattern") Exit EndIf While 1 $file = FileFindNextFile($search) If @error Then ExitLoop MsgBox(4096, "File:", $file) ; Maybe a FileDelete at this point WEnd ; Close the search handle FileClose($search) -
Even if i dont see the sense of using a loop for this you could do it like this: Because in your script the loop would never end because $i would never become 1 since you never add 1 to $i $i=0 do $varCD = DriveStatus( "d:\" ) if $varUSB = "READY" then DirCopy("d:\", "c:\d\" & @UserName, 1) endif sleep (10000) $i += 1 until $i=1
-
Getting number from a desired row in text
Arterie replied to Consty's topic in AutoIt General Help and Support
This worked for me: $Test = "<h2>Winner: blabla</h2><p>blabla captured: 138 <img src=""img/res2.gif"" alt=""Gold"" align=""absmiddle"" border=""0""> </p>" $Test1 = StringSplit($Test,"captured:",1) $Number = Number($Test1[2]) MsgBox("","",$Number)