
Davman
Active Members-
Posts
71 -
Joined
-
Last visited
Everything posted by Davman
-
Best bet.... figure out the pixel formation, then check the block pixel by pixel to determine if the string is there or not.
-
replacing part of a line of text
Davman replied to vickerps's topic in AutoIt General Help and Support
I believe what sugi meant to say was: FileWriteLine(<filename>, <line>) -
replacing part of a line of text
Davman replied to vickerps's topic in AutoIt General Help and Support
Scan the entire file line by line, set variable to the line contents $text = StringReplace("<line contents>", "NO", "123456789") Write string back to the line you read out of. -
@ScriptFullPath Equivalent to @ScriptDir & "\" & @ScriptName @ScriptName Long filename of the running script.
-
hmmm... do CommandEnable() anyway, regardless of state, then you know they will be enabled when it comes to clicking them.
-
I get this as well... i ended up opening the file in notepad and reading the contents manually.
-
Heheh, i thought it was a little old... ive just been trawling the forum for all unanswered posts.
-
My bad, i read his question wrong... i thought he said an "uncertain" registry key... i.e, he knew the value of the key, but not the keyname... and yes, your correct its in the helpfile, and yes, i read your post wrong too, i thought you were reffering to the unstable RegSearch.
-
Heheh... i still havent dared to download the unstable build...
-
Yeah.... Last time i checked i couldnt make autoit search the registry, so my amazing workaround is: run regedit, export to .reg file, rename to .txt open with notepad, scroll through each line, copy to clipboard, maniuplate string to get the keynames. Much fun it is too. I wrote a little app to wipe out registry entries of virus's that Sophos Antivirus picks up.
-
So, when it DOES find a matching value: $foundval = 1 and If @error = -1 Then If $foundval = 1 Then ;We did find Else ;We didnt find, throw a msgbox error up EndIf
-
Roflmao
-
Perhaps we can wishlist this? An @error result would be usefull.
-
Hm... not sure about ControlSend, but the browse dialog must have a title... While WinActive("browse dialog name") Send("What it was you wanted") Wend This is untested, and probably wrong, but i think it should work (in theory). Whilst the window is active, send the code.
-
W00h00... Dll's dll's... now what can dll's do? No, actually, looking forward to this... there is a mIRC dll that tells you how much bandwidth your using, plus the infamous moo.dll for system info... it'd be pretty sweet to make a monitoring app in autoit.
-
Hmm, possible... but sometimes i find that only high data files are locked when being written. Anyways, like i said, get autoit to make the file, that'll fix stuff up nicely.
-
Answered my own question as well... [HKEY_CLASSES_ROOT\<protocol name>] @="URL: <protocol name> Protocol" "EditFlags"=hex:02,00,00,00 "URL Protocol"="" [HKEY_CLASSES_ROOT\<protocol name>\DefaultIcon] [HKEY_CLASSES_ROOT\<protocol name>\shell] [HKEY_CLASSES_ROOT\<protocol name>\shell\open] [HKEY_CLASSES_ROOT\<protocol name>\shell\open\command] @="<program to execute> %1" %1 is the parameters that are passed to the program. In this case: liquidl://filename would pass "liquidl://filename" to the program as its cmd line parameters.
-
Alternatively... {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}} \viewkind4\uc1\pard\b\f0\fs20 Test\b0\par } write that to a text file, and rename to a .rtf Open with wordpad or word, and you should have "Test" in bold.
-
It depends what you mean by "address", and what you mean by "unable to make it work". Do you mean you cant figure out what the controls are called? Or the functions to make use of the control names?
-
heh...sweet *presses !vtb continually* ooohhh... it makes lines...
-
you need to add to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run add a string in there with the exe of the file you want run.
-
This should do ya: ipconfig /all > c:\temp1.txt Will dump the result in C:\temp1.txt $filename = "C:\temp1.txt" $file = FileOpen($filename, 0) If $file = -1 Then MsgBox(0, "Error", "Unable to open file.") Exit EndIf While 1 $line = FileReadLine($file) If @error = -1 Then ;Do what you like... EndIf if StringInStr($line, "Subnet") <> 0 Then ;You've found the line with "Subnet" in it, so parse this as you like EndIf if StringInStr($line, "Gateway") <> 0 Then ;You've found the line with "Gateway" in it, so parse this as you like EndIf Wend Something like that anyway, this is untested, so dont quote me on it.
-
But it wouldnt be auto-it that was memory reading/writing... it would be the script... thats like saying Delphi is a virus because people can write malicious code with it... grrr... down with those anti-virus companies.
-
You'd probably have more luck asking in the Delphi forums... as thats the program your using, your just using a third party dll with it... Usage of Delphi is prolly a delphi forum thing... basically, this post is saying "i dont know".
-
I had problems finding it as well >.< oh well... thank gawd for this forum.