Jump to content

Zilee

Members
  • Posts

    18
  • Joined

  • Last visited

Zilee's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I've set a text input to the enter key and every time I press once the action is provoked twice. So whenever I press enter the MsgBox is displayed twice when it should only display once. Dim $AccelKeys[1][2]=[ ["{enter}", $mainInput] ] GUISetAccelerators($AccelKeys) Dim $arr; _FileReadToArray("exeList.txt", $arr); Do ;Run twice at one {enter} press $msg = GUIGetMsg() Select Case $msg = $mainInput MsgBox(0,0,"msg"); For $i=1 To $arr[0] $arr2 = StringSplit($arr[$i], "="); If StringUpper($arr2[1]) == GUICtrlRead ($mainInput) Then Run($arr2[2]); EndIf Next EndSelect Until $msg = $GUI_EVENT_CLOSE What could explain this behavior?-
  2. Hi, in php there is a method_call function that is called every time a method is used so you can test things such as it's name or change it's behavior to add a global action to all of them in one swoop. Is there something similar in autoit?
  3. Not sure I follow you. I can't find that function inside the documentation.
  4. Hm sorry, the active window would suffice. I shall check the example forum, but more feedback is appreciated.
  5. I was just wondering if it was possible to get the handle of every single element of any given gui software.
  6. Yeah I went too fast, only checked the content of [1] instead of [0] so I was seeing their address instead of the titles. Decided to change the code so that it could take an array of exclusions. Thanks mate. For some reason Program Manager was in the list of windows to close.
  7. Anyone :<
  8. I have this code sample I found on the web, for some reason I get two prompts to the Log Off window, after these two are gone the windows all get closed which is a good thing. I'm just wondering how I should get rid of those two window prompts, here's the code : Func killAllWindows() $WinListArr = WinList() For $i = 1 To $WinListArr[0][0] If WinVisible($WinListArr[$i][1]) Then WinClose($WinListArr[$i][1]) Next EndFunc Func WinVisible($Title, $Text="") Return BitAnd(WinGetState($Title, $Text), 2) EndFunc killAllWindows()
  9. We have a debugging application running overnight, I have to create a script that can re-launch the next segment in case of failure. I was wondering if it was possible to calculate the last time the keyboard was used. Because in order for the program to really know something froze or an unusual dialog window has popped up would be by knowing the keyboard hasn't been operating for x length of time and that the mouse hasn't moved at all either.
  10. 1- Can the scripting.Dictionnary .key() method return the keys in the order they have been added? The software I'm currently working on uses Dictionaries, but I need to add duplicate key's, is there another structure I could use instead? Right now I append a number to the duplicated values then remove them, but the way I received the keys(From the keys() method) they are ordered alphabetically so I have to sort them back to their previous order(They dictionary contains function calls...).
  11. Thanks friends. Should have known better. Aloha
  12. Sup guys. I insert a long path inside a ctrl input, I don't want to let the users edit the path once it's placed inside the edit so I added the readonly attribute. Only issue is, I can't use the mouse to select long strings, the hidden text simply doesn't move along. Keyboard arrows and HOME/END key's aren't doing much good either. I can't make my input longer since my window has a size I don't want to change.
  13. Well I know how to use the CMDLines[] it's similar to args in java or c++ passed to a main. I'm just wondering how real-world applications incorporate command line support. I'm not sure but I have a feeling they might check for arguments and if there is at least one then they launch an other exe which is pure cmd style. Autoit doesn't allow OOP so I am obligated to duplicate functions because they are mixed with gui elements(Such as an export function that relies on a treeview(gui) to get each of it's elements).
  14. I have this program at work that's been written a while back and the author doesn't work here anymore. Anyways, now I have been asked to add command line support to this GUI app. I don't know if I should meddle and try to patch the existing code or instead duplicate the necessary methods and create a pure cmd version of it(Ie a seperate .exe). If I do duplicate it future changes will have to be done at two different places, but if I patch the GUI application it might get ugly and I've read that you can't write output to the shell from an gui application. Anyways, I would appreciate feedback.
  15. Alright thanks. I will resort to simply append it to the string containing the trace. I think I will create a python script to do it for me though.
×
×
  • Create New...