
Lococobra
Active Members-
Posts
34 -
Joined
-
Last visited
Lococobra's Achievements

Seeker (1/7)
0
Reputation
-
GUI Overlay won't stay on top of start menu
Lococobra replied to Lococobra's topic in AutoIt General Help and Support
Yeah I did, but I just don't think it's worth going so far. It's not a super important application, and I already have a... okay solution. Good enough :] -
GUI Overlay won't stay on top of start menu
Lococobra replied to Lococobra's topic in AutoIt General Help and Support
I should probably call this thread. I think the best I'll be able to do is just constantly throw that topmost flag at my overlays. A rather rudimentary solution.. but the only one that really works it would seem. Though I do wonder how F.lux has seemingly overcome this hurdle. -
GUI Overlay won't stay on top of start menu
Lococobra replied to Lococobra's topic in AutoIt General Help and Support
Do you have multiple monitors? If not you won't see anything. The script dims monitors the mouse is not currenty in. For testing though, your code looks like it has the same effect. Yeah, like I said before, I think that the start menu just resets its topmost flag every time it is interacted with in any way. -
GUI Overlay won't stay on top of start menu
Lococobra replied to Lococobra's topic in AutoIt General Help and Support
Guinness, unfortunately your solution doesn't work. Figure it might be easier if I just give you guys the code. You can grab the code here The solution I have is.. decently elegant (it's commented out on line 43). I'm using WinActive to check if the Shell_TrayWnd is on top, and if so I immediately raise that screen's overlay back on top. This works really well because generally if you're clicking on the start menu your mouse is already on that screen, meaning you won't see the start menu pop above the overlay and then get hidden behind it again.. but if your mouse is on another monitor and you click the windows key you'll see a little flash as it raises and lowers. If you only have one monitor you can check out what the overlay looks like by modifying line 33 as follows: If $i = $CurMonitor Then change to... If $i = $CurMonitor And 1 = 0 Then -
I've been working on a small app for people with multiple monitors that creates a semi-transparent gui overlay in each monitor which the mouse is not currently in. The effect is that the current monitor will be at full brightness while the other monitor(s) will be very dim. I have everything running quite well, but there's one issue. The start menu doesn't want to stay down. I'm using WS_EX_TOPMOST to keep the Overlays on top, but it seems that every time the start menu is clicked.. it sets its topmost value back, which makes it higher than mine. The solution I'm currently running with is to just constantly set the primary monitor's overlay to be top-most, which works.. but it means I'm sending the system messages like crazy. Better would be to hook in to each time the start menu is clicked, but I have no clue how to do that. Any other ideas?
-
Let me explain to you a different reason why this is not feasible. There are well over 69 million five letter .com domain names (assuming you include numbers and hyphens). Assuming that each request you made took 500ms to check if it was available, and you were only checking one domain at a time, it would take more than 400 days to find the status of every five character domain name. Even if you were able to do multi-threaded checking (by launching multiple concurrent processes that each went and checked a single domain name), and even if you were able to speed up the request time a lot, you're still looking at multiple weeks of pulling down information. Another question is, how are you going to store this information? Do you know how to use SQLite? Are you going to store all of this in a text file? Since you're asking for help here, I'm assuming you're not a very experienced programmer. Simply from the perspective of the scope of this project, this is not something you should attempt to endeavor. And in any case, I just gave you two links to web sites that already do exactly what you want for you! If all you want is a sweet five character domain name, do the legwork and find it! If on the other hand, you're trying to just buy up short .com domains so that you can sell them in the future.. (which it sounds like is exactly what you want to do), then this is clearly the wrong place for that sort of question. Go find some black hat script kiddies and go to town.
-
This site seems to have a number of tools that you might be interested in: http://www.domainnamesoup.com/ Also, this one has been a favorite of mine for a while: http://domai.nr/
-
.NET Framework Controls not Cooperating
Lococobra replied to Lococobra's topic in AutoIt General Help and Support
Yes, this would certainly seem to be the case, which is why I'm asking for other answers. Although I have no control over the application, I have talked to its developers a handful of times and I know with 100% certainty that it is written entirely using the .NET framework. -
Well there is one very obvious problem. You're using user input as a regular expression. There are many characters that have special meaning in regular expressions, so this is not going to work. You could run the user input through a number of filters to escape any characters that have special meaning. Also, you should probably include a case insensitivity flag in there "(?i)". To get you started.. here are the characters that you need to escape: (I think this is all of them but I'm not 100% sure) ()[]{}.+*?\|
-
You do know that every single four letter .com domain name has already been registered right? I'm not sure about .net or others though. There are already a number of tools/websites online that help search for short domain names. Why are you trying to reinvent the wheel?
-
Having worked on a simplistic markov chain implementation in PHP, I would be willing to say that this would be difficult impossible to write in AutoIt even if you were an experienced programmer and had a masters degree in mathematics. Start with something feasible :]
-
.NET Framework Controls not Cooperating
Lococobra replied to Lococobra's topic in AutoIt General Help and Support
Okay... don't take my word for it then. So for example, here are some of my attempts to evaluate the status of a checkbox. Local $HWND = WinGetHandle("Testing123") Local $CTRL = ControlGetHandle($HWND, "", "[NAME:chkSelectAll_8]") WinActivate($HWND) ;Works ControlCommand($HWND, "", $CTRL, "Check") ;Works but toggles the checkbox instead of setting it to checked ("UnCheck" has no effect at all) Sleep(1000) ;The obvious way of doing it.. MsgBox(0, '', ControlCommand($HWND, "", $CTRL, "IsChecked", "")) ;No dice... lets try this instead? MsgBox(0, '', _GUICtrlButton_GetCheck($CTRL)) ;Maybe there's a bug in the _GUICtrlButton_GetCheck implementation? Local Const $MY_BM_GETCHECK = 0xF0 Local $ret = DLLCall("user32.dll","int","SendMessage", _ "hwnd",$CTRL, _ "int",$BM_GETCHECK) If @error Then MsgBox(0, '', 'error: '&@error) Else MsgBox(0, '', $ret[0]) EndIf All of the above return "0" if the checkbox is checked or unchecked. -
.NET Framework Controls not Cooperating
Lococobra replied to Lococobra's topic in AutoIt General Help and Support
Well the question is really.. Is there anything I am just obviously completely unaware of? I've done extensive searching through the forums as well looked for non-autoit solutions and I'm out of things to try. As you say, I do believe I've tried everything. So yeah, any out of the box methods of automating windows controls? -
.NET Framework Controls not Cooperating
Lococobra replied to Lococobra's topic in AutoIt General Help and Support
bump... -
Run command with additional parameter
Lococobra replied to dsingh's topic in AutoIt General Help and Support
It looks as though that domain parameter is needed. Have you already tried running the following? Run('"C:\Program Files\Digi\DigiTable\bin\Digi.exe" --domain F0399437-FD0C-4A48-B101-xxxxxxxxxxxx') or if you want to be clever... Run('"'&@ProgramFilesDir&'\Digi\DigiTable\bin\Digi.exe" --domain F0399437-FD0C-4A48-B101-xxxxxxxxxxxx')