
Sascha
Active Members-
Posts
29 -
Joined
-
Last visited
Content Type
Forums
Downloads
Forum Articles
Events
Everything posted by Sascha
-
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.
-
@ioa747 Thank you but i think the json version is the best for me.
-
Since i had to much bad experience with C++/MFC and serialisation i choose the JSON example. Thank you for your help.
-
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
-
Detect if my windows is on top - (Moved)
Sascha replied to AutoDEV's topic in AutoIt General Help and Support
Here in the forum: Check if window is topmost -
@ISI360 Thank you. Now it works. Nice job. Regards Sascha
- 250 replies
-
- isn autoit studio
- isn
-
(and 3 more)
Tagged with:
-
@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
- 250 replies
-
- isn autoit studio
- isn
-
(and 3 more)
Tagged with:
-
Maybe this something for the "Autoit Snippets" thread?
-
And i don't recognize a slow start of edge.
-
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
-
@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
-
@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.
-
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
-
"JSON UDF in pure AutoIt" and array count
Sascha replied to Sascha's topic in AutoIt General Help and Support
I got it working now. Thank you for your help. -
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
-
I immediately loved it more then my old regexp tester. Good job. Realy usefull. Thanks.
-
Holding a left control click.
Sascha replied to xtreempje's topic in AutoIt General Help and Support
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 -
BAO-Remover : silent uninstaller for Windows
Sascha replied to PaysanBarbare's topic in AutoIt Example Scripts
Hello PaysanBarbare, to be honest i would expect the script here to see how it is done and not only the executable. Regards Sascha -
Does Aut2Exe support command line interfaces?
Sascha replied to Rorching's topic in AutoIt General Help and Support
Scite -> Tools -> Compile -> Create CUI instead of GUI.EXE -
Nice but it takes 100% CPU time. I added a little Sleep(50) in the while loop. Regards Sascha
-
Thank you. Sometimes it is hard to find the right words to search a solution. Regards Sascha
-
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
-
GUIRegisterMsg and ArrayDisplay hangs
Sascha replied to Sascha's topic in AutoIt General Help and Support
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. -
GUIRegisterMsg and ArrayDisplay hangs
Sascha replied to Sascha's topic in AutoIt General Help and Support
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