Jump to content

diepfeile

Members
  • Posts

    18
  • Joined

  • Last visited

Everything posted by diepfeile

  1. Well, just reinstalling with default x64 without prior uninstalling seems to be the easiest fix.
  2. Damn, it's the x64 vs x86 again. It works in 64 bit. So much for the "x86... recommended for compatibility". How can I change the default to x64, without reinstalling?
  3. Running a program through Autoit isn't working anymore. Interestingly FileExists returns 0, yet it still works in explorer and the console normally. Cannot select it in FileOpenDialog either. It worked in the past, it's a really simple script: a button press calls the function: Func SnippingTool() Run(@WindowsDir & '\System32\SnippingTool.exe') EndFunc ;==>SnippingTool Stuff I have tried: $sFile = @WindowsDir & '\System32\SnippingTool.exe' ; not working $sFile = @WindowsDir & '\System32\SoundRecorder.exe' ; also not working $sFile = @WindowsDir & '\System32\charmap.exe' ; working ;$sFile = FileOpenDialog('',@WindowsDir & '\System32', 'Executables (*.exe)') ; not selectable here $res = Run($sFile, @WindowsDir & '\System32') MsgBox(0, $res & FileExists($sFile), $sFile) ; fileexists returns 0, yet the file should exist Is the 3.3.16.0 buggy or what am I missing?
  4. Thanks it seems to be working now. Is that applicable to all 32bit dlls? How do I get Scite to start in 64bit by default without needing to flag every file with #AutoIt3Wrapper_UseX64=Y?
  5. I'm using the following: Autoit 3.3.14.5 newly installed Beta 3.3.15.5 SQlite version 3380000 aka 3.38.0 I put sqlite3.dll and sqlite3_x64.dll in C:\Windows\System32 since many scripts depend on them. I extended the output of _SQLite_Startup() with: ConsoleWrite("@AutoItX64 " & @AutoItX64 & @CRLF) ConsoleWrite("$sDll_Filename " & $sDll_Filename & @CRLF) ConsoleWrite("_SQLite_LibVersion=" & _SQLite_LibVersion() & @CRLF) Also using the script from https://www.autoitscript.com/autoit3/docs/libfunctions/_SQLite_Startup.htm for testing. >Running:(3.3.14.5):C:\Program Files (x86)\AutoIt3\autoit3.exe "R:\Download\aasdf.au3" @AutoItX64 0 $sDll_Filename sqlite3.dll _SQLite_LibVersion=0 >Running:(3.3.14.5):C:\Program Files (x86)\AutoIt3\autoit3_x64.exe "R:\Download\aasdf.au3" @AutoItX64 1 $sDll_Filename sqlite3_x64.dll _SQLite_LibVersion=3.38.0 >Running:(3.3.15.5):C:\Program Files (x86)\AutoIt3\Beta\autoit3.exe "R:\Download\aasdf.au3" @AutoItX64 0 $sDll_Filename sqlite3.dll _SQLite_LibVersion=0 >Running:(3.3.15.5):C:\Program Files (x86)\AutoIt3\Beta\autoit3_x64.exe "R:\Download\aasdf.au3" @AutoItX64 1 $sDll_Filename sqlite3_x64.dll _SQLite_LibVersion=3.38.0 Why doesn't it work in 32bit, despite me having the 32bit sqlite.dll? Autoit urges running scripts in 32bit mode and Scite starts scripts just in 32bit mode without the flag? With #AutoIt3Wrapper_UseX64=Y it just works, both normal Autoit and beta! sqlite3.dll sqlite3_x64.dll
  6. Yeah hmm, found some weird stuff on the forum about them. Luckily I haven't encountered anything in my scripts, despite using them in nearly everyone of them, sometimes even maps in maps! Damn they are such a nice addition, but now I know why they are still in beta.
  7. What is buggy about them? I had no problems using them, they compound arrays very nicely.
  8. I tried the Beta Maps and they are really cool. When will they be implemented in the normal version? And will they be implemented better, like in Python? Autoit Beta now: Local $mMap[] $mMap['Colorado'] = 'Rockies' $mMap['Boston'] = 'Red Sox' $mMap['Minnesota'] = 'Twins' Python: MLB_team = { 'Colorado' : 'Rockies', 'Boston' : 'Red Sox', 'Minnesota': 'Twins', 'Milwaukee': 'Brewers', 'Seattle' : 'Mariners' }
  9. I should have the latest Beta Version: 3.3.15.0 "Click: Tools > Scite Config" This only works for me, if I have a saved file opened, doesn't work with a new one open. Thanks for the tip, I hoped that worked automatically though.
  10. Yes, It looks like it isn't triggered automatically with #include... I already have my own UDFs, but they don't show up in the autocomplete nor do I get tips for their parameters, despite having them already #include'd. https://www.bilder-upload.eu/bild-dd7b3b-1561642673.png.html I found that though: https://www.autoitscript.com/forum/topic/70491-add-user-call-tips-to-scite-for-extra-udfs/
  11. Scite has autocomplete and infos support for the main includes (e.g. #include Array.au3). https://www.bilder-upload.eu/bild-c2d9d2-1561640906.png.html How do I achieve that for my UDFs?
  12. I wanted to create a HTML entity replacer. I solved it with a local static and an if-clause: Func HTMLDecode(ByRef $sHTML) $aEntities = StringRegExp($sHTML, '&(?>[A-z]+|#\d{2,4});', 3) ;_ArrayDisplay($aEntities,'$aEntities') ;CW('UBound($aEntities) ' & UBound($aEntities) & ' ' & IsArray($aEntities)) If IsArray($aEntities) = False Then Return ; nothing to replace... Local $mDistictEntities[] For $i = 0 To UBound($aEntities) - 1 $mDistictEntities[$aEntities[$i]] += 1 Next ;_ArrayDisplay(MapKeys($mDistictEntities),'MapKeys($mDistictEntities)') ;CW(MapToString($mDistictEntities)) ;FileWrite('HTML Entities.txt', MapToString($mDistictEntities) & @CRLF & @CRLF) Local Static $mHTMLEntities[] ; https://de.wikipedia.org/wiki/Hilfe:Sonderzeichenreferenz If UBound($mHTMLEntities) = 0 Then $mHTMLEntities['"'] = '"' $mHTMLEntities['"'] = '"' $mHTMLEntities['&'] = '&' ; 38 $mHTMLEntities['''] = "'" $mHTMLEntities['>'] = '>' ; 62 $mHTMLEntities[' '] = ' ' ; 160 $mHTMLEntities[' '] = ' ' ; 160 $mHTMLEntities['©'] = '©' $mHTMLEntities['©'] = '©' ; 169 $mHTMLEntities['«'] = '«' ; 171 Guillemet linksweisend („französisches Anführungszeichen“) $mHTMLEntities['«'] = '«' ; 171 Guillemet linksweisend („französisches Anführungszeichen“) $mHTMLEntities['­'] = '­' ; 173 Trennmöglichkeit, weiches Trennzeichen (soft hyphen) $mHTMLEntities['»'] = '»' ; 187 Guillemet rechtsweisend („französisches Anführungszeichen“) $mHTMLEntities['»'] = '»' ; 187 Guillemet rechtsweisend („französisches Anführungszeichen“) $mHTMLEntities['Á'] = 'Á' ; 193 $mHTMLEntities['É'] = 'É' ; 201 $mHTMLEntities['é'] = 'é' $mHTMLEntities['Ä'] = 'Ä' $mHTMLEntities['Ä'] = 'Ä' ; 196 $mHTMLEntities['Ö'] = 'Ö' $mHTMLEntities['Ö'] = 'Ö' ; 214 $mHTMLEntities['Ü'] = 'Ü' $mHTMLEntities['Ü'] = 'Ü' ; 220 $mHTMLEntities['ß'] = 'ß' $mHTMLEntities['ß'] = 'ß' $mHTMLEntities['ä'] = 'ä' $mHTMLEntities['ä'] = 'ä' $mHTMLEntities['è'] = 'è' $mHTMLEntities['ö'] = 'ö' $mHTMLEntities['ö'] = 'ö' $mHTMLEntities['ü'] = 'ü' $mHTMLEntities['ü'] = 'ü' $mHTMLEntities['ı'] = 'ı' ; Turksprachen, ähnlich 'i' $mHTMLEntities['ş'] = 'ş' ; Turksprachen, Deutsch: sch $mHTMLEntities['̈'] = '̈' ; Kombinierendes Trema: macht aus normalen Buchstaben Umlaute $mHTMLEntities[' '] = ' ' ; schmales Leerzeichen $mHTMLEntities[' '] = ' ' ; 8201 schmales Leerzeichen $mHTMLEntities['​'] = '' ; breitenloses Leerzeichen (Trennmöglichkeit) $mHTMLEntities['–'] = '–' ; 8211 Halbgeviertstrich (Gedankenstrich) $mHTMLEntities['–'] = '–' ; 8211 Halbgeviertstrich (Gedankenstrich) $mHTMLEntities['‘'] = '‘' ; einfaches Anführungszeichen (englisch: öffnend, deutsch: schließend) $mHTMLEntities['’'] = '’' ; einfaches Anführungszeichen schließend (englisch); typographisch korrekter Apostroph $mHTMLEntities['‚'] = '‚' ; einfaches Anführungszeichen unten (deutsch öffnend) $mHTMLEntities['“'] = '“' ; 8220 $mHTMLEntities['„'] = '„' ; 8222 ;
 ??? $mHTMLEntities['€'] = '€' ; 8364 $mHTMLEntities['€'] = '€' ; 8364 $mHTMLEntities['★'] = '★' ; Schwarzer Stern EndIf For $vKey In MapKeys($mDistictEntities) If MapExists($mHTMLEntities, $vKey) = False Then ClipPut($vKey) MsgBox(0, 'HTML Entity Decode missing!', $vKey) EndIf ;CW($vKey& ' - ' & $mHTMLEntities[$vKey]) $sHTML = StringReplace($sHTML, $vKey, $mHTMLEntities[$vKey], 0, 1) Next EndFunc ;==>HTMLDecode
  13. iamtheky way works in theory but not in practice: Func MapToString(Const ByRef $mMap) Local $sString = "Count: " & UBound($mMap) For $vKey In MapKeys($mMap) $sString &= @CRLF & $vKey & ": " & $mMap[$vKey] Next Return $sString EndFunc ;==>MapToString Func TimeStamp($sSeparator = ":") Return @HOUR & $sSeparator & @MIN & $sSeparator & @SEC EndFunc ;==>TimeStamp Func CW($sText) ConsoleWrite(TimeStamp("-") & " " & $sText & @CRLF) EndFunc ;==>CW #cs Func FillMap() Local $mM[] $mM["sdf"] = 234 MapAppend($mM, "asd") MapAppend($mM, "asdf") Return $mM EndFunc ;==>FillMap Global Const $mMap = FillMap() #ce Local $mM[] $mM["sdf"] = 234 MapAppend($mM, "asd") MapAppend($mM, "asdf") Global Const $mMap = $mM CW(MapToString($mMap)) MapAppend($mMap, "no work or does it") CW(MapToString($mMap)) Can still change the map in both cases!
  14. Sorry no, it's not closer. This is also not working: Local $mM[] $mM['sdf'] = 234 MapAppend($mM,'asd') MapAppend($mM,'asdf') Const $mMap[] = $mM So I'm out of ideas.
  15. Normally I fill them like this: Local $mMap[] $mMap['sdf'] = 234 Have tried all that: ;Const $mMap[] = [['asd',11],['sdf',22]] ;Const $mMap[] = [[1,11],[2,22]] ;Const $mMap[] = [1,2,3] ;Const $mMap[] = 3 Const $mMap[] $mMap['sdf'] = 234 MapAppend($mMap,'asd')
  16. How do you create a Const Map?
  17. it should search for the same pattern multiple times and put it's findings into $data, but it's not working any suggestions? #include <Array.au3> $text = "1234asd1234kjhfkg1234jhdfgk1234kdhfg1234dfgdfg1234dfgd1234" $data = StringRegExp($text,"(34([[:alpha:]]+)12){1,10}",1) _ArrayDisplay($data,"data")
  18. i want to make a script that hammers a key while i hold down a specific key. preferably these keys should be the same. i had the script but lost it due to hdd-crash. that's how far i got. unfortunaly it's a toggle for the key-hammering and the keys can't be the same. HotKeySet("{^}","toggle"); $toggle = 0; Func toggle() $toggle = NOT $toggle EndFunc while 1 sleep (Random(100,125)) if $toggle = 1 Then cast() endif wend func cast() Send("2") EndFunc
×
×
  • Create New...