Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/21/2012 in all areas

  1. $ExtReg = inputbox("input extension" , "type the extension with the '.'" , ".au3") $name = regread("HKLMSOFTWARECLASSES" & $ExtReg , "") ;~ msgbox (0, '' , $name) $path = regread("HKLMSOFTWARECLASSES" & $name & "shellopencommand" , "") msgbox (0, '' , $path)
    1 point
  2. in that case, check out this, In terms of getting what you are looking for HKEY_CLASSES_ROOT.twbxshellopencommand if the command is not there check out this to get a grasp on how it might be set up. http://msdn.microsoft.com/en-us/library/cc144158%28VS.85%29.aspx
    1 point
  3. I would try the idiot proof way of checking the default folder relative to each drive, upon failure do a recursive search for a files you know should exist.
    1 point
  4. $bFileOne = FileExists ("file") $bFileTwo = FileExists ("file") If $bFileOne And $bFileTwo Then ; Both Files Exist ;Now Do Something ElseIf $bFileOne And ( Not $bFileTwo ) Then ; File Two Doesnt Exist ; DO whatever you want ElseIf ( Not $bFileOne ) And $bFileTwo Then ; File One Doesnt Exist Else ; None of the files exist EndIf Your Question has already been answered
    1 point
  5. LarsJ

    WM_COPYDATA to fb2k

    Have you removed the "+1" added to the string lengths? I have testet the code in the first post with the modifications in post #10. It works for me (XP).
    1 point
  6. LarsJ

    WM_COPYDATA to fb2k

    Ontosy, I don't think you need the "+1" (none of them), but I think you need to take care of the spaces in the path so use a $cmd like this: $Cmd = Chr(34) & $Path & "\foobar2000.exe" & Chr(34) & " " & $Cmd & Chr(0) & Chr(34) & $Path & Chr(34) & Chr(0)
    1 point
  7. Even WinMove can't $Gui = GUICreate("Unmovable window", 300, 200, 100, 50) GUISetState() $GP = WinGetPos($Gui) GUIRegisterMsg(0x0046, "WM_WINDOWPOSCHANGING") Do Until GUIGetMsg()=-3 Func WM_WINDOWPOSCHANGING($hWnd, $Msg, $wParam, $lParam) Local $stWinPos = DllStructCreate("uint;uint;int;int;int;int;uint", $lParam) DllStructSetData($stWinPos, 3, $GP[0]) DllStructSetData($stWinPos, 4, $GP[1]) EndFunc
    1 point
  8. Dim is bad. Use Local or Global exclusively.
    1 point
  9. I didn't find the post from martin but here his code: ;code by martin #include <GUIConstantsEx.au3> Const $WM_SYSCOMMAND = 0x0112 Const $SC_MOVE = 0xF010 $gui = GUICreate("Stuck Here") GUISetState() GUIRegisterMsg($WM_SYSCOMMAND, "On_WM_SYSCOMMAND") WinSetOnTop($gui,"",1) While GUIGetMsg() <> -3 WEnd Func On_WM_SYSCOMMAND($hWnd, $Msg, $wParam, $lParam) If BitAND($wParam, 0xFFF0) = $SC_MOVE Then Return False;stop moves Return $GUI_RUNDEFMSG EndFunc Br, UEZ
    1 point
  10. I welcome all. Add post to the forum tools AutoIt - it is real? I mean, without the use of IE, Opera and other browsers (I've done through the browser, but it is slow and awkward). Or using a engine IE, but in this case - on the screen was not the browser window. That is, needed, for example, go to the address then find a box to send, write data into this field, and to send them. How do I do? I am sorry for my English.
    1 point
  11. Hi everyone, I've been searching for a while to a solution to this, and I didn't seem to find it out... What I intend to do, is to somehow, add to my gui, an image that is currently displaying on an IE page. Is it possible? (I bet it is) I've been trying something with _iegetobjbyid() , and creating the object successfuly, but now, how do I IMPLEMENT it on the gui? Some tips would be apreciated. PS: I'm sorry that i didn't brought up any code, but im realy "blind" on how to do this :S EDIT: Since i'm not having any responses, I assume that i said something that doesn't make sense, actualy I'm new with com/objects thing, and I don't realy get how they work. Anyways, I work with many things in Autoit that I don't truly understand, and have made plenty of working applications. Yet, I just need to somehow, (either with objects or not) to make an image that is showing on a web page to become part of the gui without downloading it. Can it be done?
    1 point
  12. Good Morning Ladies and Gents, I went through the list of question. I did not see this question. I am trying to read on a pc, all programs install. My problem is the applications and their unique keys. IS there a way I can read the key as a variable or something? sort of like @computername? $var = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\uninstall", "DisplayName") MsgBox(4096, "Currently installed programs:", $var)
    1 point
  13. Valik

    Asking for source

    This is regards to the much debated "asking for source" topic. Until further notice, here's how it works. You ask for the source to somebodies script or say something along the lines "no source, I'm not running it" you are going to get a 3 day ban. If you don't want to run something because it doesn't have source code, fine, we don't care so don't post telling us about it. Remember, YOU do not make the rules on this forum. YOU do not dictate what can and can not be posted. YOU do not own the rights to people's work and YOU do not tell people what they can do with their intellectual property. People have the right to post scripts on this forum without posting the source. If you don't agree with that policy, well, too bad, nobody cares so keep it quiet. This is your warning. Violators will be shot, et cetera.
    1 point
×
×
  • Create New...