Jump to content

Sascha

Active Members
  • Posts

    29
  • Joined

  • Last visited

Everything posted by Sascha

  1. Yes: ShellExecute('Visual Studio 2022') does not work. and RunApp('Visual Studio 2022') does But for me there is no use to start "named" applications with RunApp.
  2. Nice job. Works fine. It would be usefull to me if you add an Ok and Cancel Button and return the selected line (incl. double mouse click) . So we would have an easy to use selection dialog. Only my 2 cents. Thank you. Regards Sascha
  3. @ioa747 Thank you but i think the json version is the best for me.
  4. Since i had to much bad experience with C++/MFC and serialisation i choose the JSON example. Thank you for your help.
  5. Hello together, I would like to know what may be the best way to get data with the follwing structure from/to a file: Local $mMap[] Local $mPerson[] $mPerson["no"] = 42; $mPerson["first"] = "Jerry" $mPerson["name"] = "Mouse" $mMap[42] = $mPerson $mPerson["no"] = 43; $mPerson["first"] = "Tom" $mPerson["name"] = "Cat" $mMap[43] = $mPerson ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : 43 = ' & $mMap[43].first & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : 42 = ' & $mMap[42].first & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console After loading i would like to do some changes or additions and then save the changes. Should i use json? and if so how would the json file look like to access the data by key? Regards Sascha
  6. Here in the forum: Check if window is topmost
  7. @ISI360 Thank you. Now it works. Nice job. Regards Sascha
  8. @philpw99 ; ... Other AutoIt code lines ; include the gui code Include "myGui.isf" ; run the main declaration function then get a map variable, which contains all control handles. $mMyGUI = mygui() ; Manipulate the controls GUICtrlSetData( $mMyGUI.MyTextCtrl, "Text for my edit") GUICtrlSetData( $mMyGUI.MyList, "item1|item2|item3") ; Show the GUI by using gui handle. GuiSetState($mMyGUI.handle) How did you do that? The function mygui() ist not part of the automatic gernerated code or did i miss something? I created a form project and included testform.isf and i have not been able to call the testform() function. Regard Sascha
  9. Maybe this something for the "Autoit Snippets" thread?
  10. And i don't recognize a slow start of edge.
  11. Wow. That works. Edge now allways starts up maximized when running from my script and it starts up with the last used size when starting from the icon. Thank you @ioa747 Regards Sascha
  12. @SOLVE-SMART I have no idea if there are any registry changes because of company policies. But even Win-R with "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --start-maximized does not open edge maximized so this may be. I think i have to live with WinSetState. Thank you both for your help. Regards Sascha
  13. @ioa747 Does not work for me. Edge does not start maximized. I even tried to use @SW_MINIMIZE and the Browser still starts with the size it was closed the last time used it.
  14. I try to open ms edge maximized with a link to a website with this command: ShellExecute("C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe","https://www.autoitscript.com/site/autoit/",@ScriptDir,Default,@SW_MAXIMIZE) But if edge was closed before in a none maximized situation it does not start maximized again. I know i can maximize it with the following commands WinWaitActive($title) WinSetState($title,"",@SW_MAXIMIZE) But why does it not start maximized with ShellExecute as expected? Regards Sascha
  15. I got it working now. Thank you for your help.
  16. Hello, is there any reason why i can't make this example from the german forum output the array size? #include <JSON.au3> Example4() Func Example4() ConsoleWrite(@CRLF & @CRLF) ConsoleWrite(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" & @CRLF) Local $sJSONTest = '[{"_object": "typ","card": "test1"},{"_object": "typ","card": "test2"},{"_object": "typ","card": "test3"},{"_object": "typ","card": "test4"}]' Local $o_Object = _JSON_Parse($sJSONTest) ConsoleWrite("$o_Object: " & _JSON_Generate($o_Object) & @CRLF) $vTmp = _JSON_Get($o_Object, "[1]") ConsoleWrite("$vTmp: " & _JSON_Generate($vTmp) & @CRLF) ConsoleWrite("$vTmp.Count: " & $vTmp.Count & @CRLF) ;Hier würde ich gerne alle enthaltenden ITEMS zählen, in dem Beispiel wären es 4 und in einer Schleife einzeln durchgehen EndFunc I can see no value for $vTmp.Count. Regards Sascha
  17. I immediately loved it more then my old regexp tester. Good job. Realy usefull. Thanks.
  18. If you have a solution for your problem it would be nice to post some more information so other users may use it. Regards Sascha
  19. Hello PaysanBarbare, to be honest i would expect the script here to see how it is done and not only the executable. Regards Sascha
  20. Scite -> Tools -> Compile -> Create CUI instead of GUI.EXE
  21. Nice but it takes 100% CPU time. I added a little Sleep(50) in the while loop. Regards Sascha
  22. Thank you. Sometimes it is hard to find the right words to search a solution. Regards Sascha
  23. Hello together, i wrote a little script to simplify the generation of a software documentation. Take some words out of a word table, bring it in another sequence and paste it to another document. Here is what i did: ;ClipPut() Send("{TAB}{SHIFTDOWN}{TAB}{SHIFTUP}{CTRLDOWN}c{CTRLUP}") ;$Param = ClipGet() Send("{TAB}{CTRLDOWN}c{CTRLUP}") ;$Desc = ClipGet() Send("{TAB}{CTRLDOWN}c{CTRLUP}") ;$Unit = ClipGet() Send("{TAB}{CTRLDOWN}c{CTRLUP}") ;$Range = ClipGet() ClipGet has been commented out. My problem is that after my script is run the keys for CTRL and ALT stay pressed. Sending {CTRLUP} and {ALTUP} (which i don't use !!!) at the end does not solve the problem. My keyboard layout is ok and the problem even exist if i run the script in the notepad window. To fix the problem i have to press CTRL and then ALT on the keyboard. I searched this forum but did not find a solution. Regards Sascha
  24. In a multithreaded C++ application the use boolean flags as semaphores will (can) lead to chaos. Thats why i thinks it is not so clean.
  25. Thank you. The only quick way to go around this was to set boolean flag in the the message function. I now call my method from within the message loop if the flags are set. My solution seems a little bit dirty to me but works
×
×
  • Create New...