Jump to content

amanda089

Active Members
  • Posts

    110
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

amanda089's Achievements

Adventurer

Adventurer (3/7)

0

Reputation

  1. Any ideas?
  2. Two things. 1) I want to make a transparent, ontop, window that I can draw on and click through so that I din't have to redraw constantly such as when I use the hwnd/hDC of another window. 2) How can I set an autoit gui as a child of a non-autoit window? I saw mention of how to do #1 somewhere but I can't find it again.
  3. Grr, I hate using arrays or more variables than I need to. Particularly since I'm already using 4 byte ptr's and having to check if they are still valid every loop
  4. It depends on the instance and if there is another instance in a different tab. That is the confusing part. the instance number only changes with additional websites that use plugins such as java or flash. You can test the code out yourself by opening a flash website in both browsers, etc.
  5. I'm trying to automate some things utilizing both firefox and chrome and a flash website. I would like to know the best and fastest way to correctly identify the flash control (and instance) for both browsers. Here is the code that I use now. I had to remove the instance checking because it wasn't identifying anything. Called in every loop of the main program: Func CheckHWnd($HWnd, $Call) Local $size = WinGetPos($HWnd) Select Case (Not IsArray($size) Or Not IsDeclared($size[3])) Or $HWnd = "" Call($Call) Return Case Else If ($size[2] <> 1024 Or $size[3] <> 820) Then Call($Call) EndSelect EndFunc ;==>CheckHWnd The above function will call either of these functions: Func GetFireFox() Local $classlist = StringSplit(WinGetClassList($Title_Firefox, ""), @LF, 2) Local $PluginWindows = _ArrayFindAll($classlist, "GeckoPluginWindow") For $flash = 0 To (UBound($PluginWindows) - 1) Local $str = "[CLASS:GeckoPluginWindow]" Local $FFC = ControlGetHandle($Title_Firefox, "", $str) Local $posi = WinGetPos($FFC, "") If ($posi[2] = 1024) Then $FF_Pos = $posi $FireFoxCtrl = $FFC Return $FFC EndIf Next Return $FireFoxCtrl EndFunc ;==>GetFireFox Func GetChrome() Local $classlist = StringSplit(WinGetClassList($Title_Chrome, ""), @LF, 2) Local $PluginWindows = _ArrayFindAll($classlist, "NativeWindowClass") For $flash = 0 To (UBound($PluginWindows) - 1) Local $str = "[CLASS:NativeWindowClass]" Local $CHC = ControlGetHandle($Title_Chrome, "", $str) Local $posi = WinGetPos($CHC, "") If ($posi[2] = 1024) Then $CH_Pos = $posi $ChromeCtrl = $CHC Return $CHC EndIf Next Return $ChromeCtrl EndFunc ;==>GetChrome I use the returned HWnd pointer in both direct drawing and in these functions: Func FirefoxClick($x, $y) ControlClick("", "", $FireFoxCtrl, "primary", 1, $x, $y) EndFunc ;==>FirefoxClick Func ChromeClick($x, $y) ControlClick("", "", $ChromeCtrl, "primary", 1, $x, $y) EndFunc ;==>ChromeClick The direct drawing (a cross and text, found in these forums) and the clicking work correctly, when the pointer is valid. But, say, when the window in chrome is refreshed and the flash plugin instance is incremented. It doesn't return the correct pointer at all. If you know of any ways to optimize this code, or correctly identify the instance number, I would much appreciate it.
  6. the most difficult way that I can think if, is having the locations and sizes for *every* function, cutting out the ones that aren't used, then rebasing (or whatever it is called), then going ahead and compiling the script... Side Effect: your compiled script can no longer be used as a stand along interpretor for any au3 files.
  7. lol. I'm just learning vb .net and even I know how difficult it is to do dynamic recompiling
  8. I think Azu is talking about dynamically recompiling the stub to only include the builtin functions used in the compiled script.
  9. The 128-bit (16-byte) MD5 hashes (also termed message digests) are typically represented as a sequence of 32 hexadecimal digits. The following demonstrates a 43-byte ASCII input and the corresponding MD5 hash: MD5("The quick brown fox jumps over the lazy dog") = 9e107d9d372bb6826bd81d3542a419d6 Even a small change in the message will (with overwhelming probability) result in a completely different hash, e.g. changing d to c: MD5("The quick brown fox jumps over the lazy cog") = 1055d3e698d289f2af8663725127bd4b The hash of the zero-length string is: MD5("") = d41d8cd98f00b204e9800998ecf8427e Thats the example from wikipedia. plain-text is just that, plain text, or any text that a person can easily read.
  10. you really should use a hash of the password, plain-text passwords are inherently unsafe.
  11. I just finished writing an updater in VB .NET as part of me learning how to write VB .NET applications. I figure someone would want to take a look at it, so I am posting it. The zip file contains the binary, readme, and a src zip. If you want to compile the source yourself, I wrote it in VB .NET 2005 Beta, not sure if earlier versions of VB will compile it. Scan it to death if you want to do that as well, I only have avast available on my pc. EDIT: Removed Attachement
  12. if you want to do conditionals like that you will have to use javascript or a serverside language.
  13. By your choice of words, you do have something to hide. Nobody becomes defensive because of somebody doing something that will not affect them if they are not hiding anything.
  14. coolness, I suggest you look at <META HTTP-EQUIV="refresh" CONTENT="0;URL=http://www.foo.com/foo.html"> for all your redirections, there are also serverside ways to redirect a page to a different server in virtually any serverside scripting language. And none of them REQUIRE / ASK / WANT you to download anything
  15. By default BootExecute has one item that is part of windows (checks the HDs for errors), the user of your program shouldn't be able to modife that entry.
×
×
  • Create New...