Jump to content

Armand

Active Members
  • Posts

    520
  • Joined

  • Last visited

About Armand

  • Birthday 06/26/1986

Profile Information

  • Location
    Moldova

Recent Profile Visitors

931 profile views

Armand's Achievements

Universalist

Universalist (7/7)

2

Reputation

  1. @Valuater great response, way to go! @SadBunny I have the whole coordinates and i need to calculate the area - by that i mean the number of pixels - I can convert these to whatever I want afterwards anyway. I can also see circles and rectangles and such but how to i make a code to analyze and calculate that?!
  2. Hi, I've attached an example picture of a shape which i would like to calculate it's area. Let's say a user has marked this kind of shaped area on the screen and you need to run some calculations on it, like getting the area of it. - How would you go about this problem? Thanks in advance
  3. Awesome ! johnmcloud Thanks for the quick solution p.s. thank you too guinness
  4. doesn't seem to work on anything other then AU3 GUIS... I want to change other applications window's icon... like notepad's... trying this: #include <GUIConstantsEx.au3> #include <WinAPI.au3> #include <WindowsConstants.au3> HotKeySet("+!t", "ChangeWindowTitle") Global $CurrentActiveWindow, $PreviousActiveWindow While 1 Sleep(1000) CheckTitles() WEnd Func CheckTitles() If WinGetTitle("[ACTIVE]") <> $CurrentActiveWindow Then $PreviousActiveWindow = $CurrentActiveWindow $CurrentActiveWindow = WinGetTitle("[ACTIVE]") EndIf EndFunc Func ChangeWindowTitle() WinSetTitle("[ACTIVE]", "", $PreviousActiveWindow) $hWnd = WinGetHandle("[ACTIVE]") If Not IsHWnd($hWnd) Then MsgBox(0, "ERROR", "") _GUISetIcon($hWnd, "H:\Programming\AU3 in progress\Failure.ico", "") EndFunc Func _GUISetIcon($hWnd, $sFilePath, $iName) If Not IsHWnd($hWnd) Then Local $iLabel = GUICtrlCreateLabel('', -99, -99, 1, 1) $hWnd = _WinAPI_GetParent(GUICtrlGetHandle($iLabel)) If @error Then Return SetError(@error, 0 * GUICtrlDelete($iLabel), 0) EndIf GUICtrlDelete($iLabel) EndIf Local $hIcon = _WinAPI_LoadImage(_WinAPI_GetModuleHandle($sFilePath), $iName, 1, 32, 32, 0) Return _SendMessage($hWnd, $WM_SETICON, 1, $hIcon) EndFunc ;==>_GUISetIcon
  5. Hi, I'd like to know if it's possible to change the icon of window other then my own created one. For example - notepad's icon into some other icon. Thanks in advance, SK.
  6. Anyone else have a better idea maybe ?!
  7. Hi, I don't mind it loading the pages but I don't want it to annoy my eyes & eating my memory... how do I ".Quit" it ?! Tried: $Obj = ObjGet("", "FlashGet3.Internet Explorer_Server") $Obj.Quit $Obj = 0 Doesn't work But this Hides it well: ControlHide("FlashGet 3.3", "", "Internet Explorer_Server1") ControlHide("FlashGet 3.3", "", "Internet Explorer_Server2") I really hate it taking out my memory... any idea ?! Have a nice day, SK.
  8. Well... solved it already... forgot to update in here as i was needing it for a PHP project i'm working on ... here is what i came up with: $rules = 1; // At least 1 rule. // First, calculate how many rules do we need to create. foreach($all_question as $question) { $rules *= $question->answer_count; } // Parse all rules. $ruleArr = array(); $ruleArrStr = array(); $lastQ = count($all_question)-1; $lastC = $lastQ; for ($i = 0; $i < $rules; $i++){ // Set the array to work with. for ($c = 0; $c < count($all_question); $c++){ $ruleArr[$i][$c] = 1; } // Prep the first search string. $str = implode(', ', $ruleArr[$i]); // Run the loops. while(array_search($str, $ruleArrStr)!==false){ while($ruleArr[$i][$lastC] == $all_question[$lastC]->answer_count){ $ruleArr[$i][$lastC] = 1; $lastC-=1; if($lastC<0){break 2;} } $ruleArr[$i][$lastC] += 1; $lastC = $lastQ; // Keep the loop running if needed. $str = implode(', ', $ruleArr[$i]); } // Save these strings that fit. $ruleArrStr[$i] = implode(', ', $ruleArr[$i]); } I have to admit, yours does look a hell lot nicer Probably also works faster... less searching and so on... Maybe i'll translate it to php anyways... Thanks man !!!
  9. no-body eh !? these loops are driving me crazy
  10. No it shouldn't ... the math problem is not even there ... The issue is how to loop through and create the proper output !
  11. Hi, I've this topic which deals with something similar but not exactly the same... As my question is a bit more difficult... I'd like to know how to get all the possible answer results of a an online survey. Ex: Question1 - 1/2/3 Question2 - 1/2 Question3 - 1/2 All possible permutations of the above survey will be 3*2*2 (12) that i know... What I need is to output all the possible results into a table... Ex: __________________ 1,1,1 | 2,1,1 | 3,1,1 | 1,1,2 | 2,1,2 | 3,1,2 | 1,2,1 | 2,2,1 | 3,2,1 | 1,2,2 | 2,2,2 | 3,2,2 | __________________| I know i should use some recursive method for that... any idea ?! Any help will be appreciated. Thanks in advance, SK.
  12. @Xand3r Using Http1.1 request with gzip encoding header... @Richard Robertson Yeah, well... the gzipped data received by http1.1 request doesn't work as a .gz file ... i tried that ... Thanks though. Any other ideas ?!
  13. @Richard Robertson Thank you so much my man... what would i have done without you... Anyone else got any useful advices maybe ?! Please!
  14. yeah i do ... but what if i really want to ?!
  15. Decompressing HTTP1.1 gzip data ?! Yeah i know there is the zlib udf but how do you use that ?! Any idea anyone ?!
×
×
  • Create New...