Jump to content

whim

Active Members
  • Posts

    351
  • Joined

  • Last visited

About whim

  • Birthday 03/28/1953

Profile Information

  • Location
    Holland or France

whim's Achievements

Universalist

Universalist (7/7)

2

Reputation

  1. @ARPFre You could also set the default startup tab for taskmanager in its' Options menu, or manipulate the registry where it saves it's options: in HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\TaskManager Modify the REG_DWORD named StartUpTab Values range from 0 to 6 for tabs from left to right. (checked this on Win 10 21H2)
  2. another non-regex version $data = "2020-06-08 09:23:33 : abcdefghifjklm" $s = StringSplit($data, ": ") ConsoleWrite(" Right part = '" & $s[$s[0]] & "'" & @CRLF)
  3. I'm under the impression that AutoIt's default path searching works slightly different than the one employed by cmd. I've taken to always specifying full paths wherever a file argument is required, and haven't run into this since. Not checked with your code(s) though, YMMV wim
  4. Help file for FileOpenDialog says: "@WorkingDir is changed on successful return." Suggestion: use @ScriptDir instead. hope that helps, whim
  5. Hi, Try quoting your path: Func RunRegardless($1, $2 = "", $3 = Default, $4 = Default) Local $FilePath = $1, $wd = $2 If StringInStr($1, " ") Then $FilePath = '"' & $1 & '"' If StringInStr($2, " ") Then $wd = '"' & $2 & '"' Return Run($FilePath, $wd, $3, $4) EndFunc edit: changed "" to Default for params 3 and 4 ... edit2: added auto-quoting for working dir as well.
  6. Hi Ant, This worked for me (as in: gives the answer you specified) Global $input = "GPGLL,5300.97914,N,00259.98174,E,125926,A" Global $result = NMEA_Checksum($input) MsgBox(0, "NMEA Checksummmer", " input: " & $input & @CR & "output: " & $result) Func NMEA_Checksum($string) Local $ret = 0 For $i = 1 To StringLen($string) $ret = BitXOR($ret, Asc(StringMid($string, $i, 1)) ) Next Return Hex($ret, 2) EndFunc Not knowing WTF an 'NMEA checksum' is, I obviously can't be sure, so over to you ... have fun, whim
  7. Have you tried wrapping the 'offending' filepath(s) in double quotes ? It usually helps when paths with spaces are involved. cheers, whim
  8. Hi rudi, I think you missed closing the "FileFindFirstFile" search handle While 1 ConsoleWrite(".") $z += 1 If $z > 100 Then ConsoleWrite(@CRLF) $z = 1 EndIf $h = FileFindFirstFile($InDir & "*") If @error <> 0 Then ; nix zu tun, warten, dann weiter loopen. Sleep(2000) Else While 1 ; es gibt was, alles abgrasen. $Next = FileFindNextFile($h) If @error Then ExitLoop If Not FileExists($InDir & $Next) Then ContinueLoop ; schon wieder gelöscht: weiter suchen / warten... Compress($InDir, $Next) WEnd EndIf FileClose($h) ;<<<<<<<<<<<<<<< something like this here ? CheckFileAge() WEnd cheers, wim
  9. @Imbuter2000 Right... and I assume you'd also sue your local hardware store if you hit your thumb with a hammer ?
  10. Please read this
  11. Make sure you surround your paths with double quotes. Check Help File -> Using AutoIt -> Language Reference -> Variables, where you'll find how to include them in your strings:
  12. You'll need to DISABLE your picture, see Remarks in 'GUICtrlCreatePic' help file entry.
  13. This has bitten me before, I cured it by using GUISetState(@SW_SHOWNA, $gui_handle) Note that the list of params in the help file for GUISetState appears to be incomplete, there's a couple more of them in the list of AutoIt Related Macro's: hope that helps, whim
  14. Read Decompiling FAQ here
  15. Not sure I understand, but maybe you mean : Run("C:\myscript.exe", "C:\") If not, please explain better ... Edit: note that in your first post, you have neither provided a full path to your exe, nor a working directory - see Help file
×
×
  • Create New...