1. Dashboard
  2. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  3. Forenregeln
  4. Forum
    1. Unerledigte Themen
  • Anmelden
  • Registrieren
  • Suche
Alles
  • Alles
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche
  1. AutoIt.de - Das deutschsprachige Forum.
  2. Mitglieder
  3. xSunLighTx3

Beiträge von xSunLighTx3

  • Hallo in die Runde!

    • xSunLighTx3
    • 20. November 2021 um 02:13

    Moin Holger, herzlich willkommen. :)

  • Mit EzMySql via SSH Tunnel verbinden

    • xSunLighTx3
    • 24. August 2020 um 19:04

    Moin zusammen,

    ich nutze die EzMySql Library, um mich auf eine MySql-Datenbank zu verbinden:
    https://www.autoitscript.com/forum/topic/11…es-with-autoit/

    https://www.autoitscript.com/forum/topic/85…s-without-odbc/

    Nun gibt es aber das Problem, dass ich via SSH Tunnel keine Verbindung aufbauen kann. Es erscheint dann folgender Fehler:

    https://i.imgur.com/TO75xaw.png

    Zum Verbinden nutze ich die Funktion aus der Lib: _EzMySql_Open(). Leider kann ich daraus keine weiteren Verbindungsmöglichkeiten

    auslesen, wie z.B "use ssl" oder "use ssh tunnel". So habe ich folgende Parameter genutzt:

    Code
    host: localhost
    user: root
    password: xxx
    database: xxx
    port: 10022

    Gibt es da vielleicht eine Möglichkeit, dass man auch via SSH Tunnel verbinden kann? Mit Navicat kann ich problemlos zur Datenbank verbinden.

    Navicat Einstellungen:
    https://i.gyazo.com/thumb/1200/d6b…d847892-png.jpg

    https://i.gyazo.com/thumb/1200/4c3…c618067-png.jpg

  • Tab in einem Tab

    • xSunLighTx3
    • 22. August 2020 um 18:41

    Das sieht ja vom Layout echt outdated aus, zumal AutoIt GUI's eh schon vom letzten Jahrtausend sind. ;(

    Aber bei mir funktioniert alles, autoBert :saint:

  • Feststellen, ob Programm bereits gestartet

    • xSunLighTx3
    • 11. August 2020 um 00:28

    Du müsstest die PID der Prozesse wissen. Wenn du vom Script aus Chrome startest, wirst du die PID ja problemlos bekommen.

    Beispiel:

    Code
    MsgBox(0, "pid", _Execute())
    
    Func _Execute()
        Return ShellExecute("chrome.exe")
    EndFunc
  • gut lesbare Uhr für den Desktop

    • xSunLighTx3
    • 8. Februar 2020 um 12:08

    Ist schon mal ganz knorke geworden, @Racer. :D

    Wie im Andys Beispiel wäre es am beschten, wenn man das GUI bewegen (drag & drop) könnte. ;)

    Zu Andys Uhr: Der Code ist hammerhart zu interpretieren. Da kommt doch schon der Au3 Interpret ins schwitzen. :*

  • AutoIt-Skript funktioniert nicht mehr nach Win 10 Update

    • xSunLighTx3
    • 6. Februar 2020 um 20:29

    Welchen Wert erhältst du, wenn du RunAs mit @error abfängst?

    Laut Dokumentation sollte bei einem Fehler der Wert "0" rauskommen.

    Schau dir ggf. nochmal die Bemerkungen in der Hilfe an, ob dort auch alles beachtet wurde.

    https://www.autoitscript.com/autoit3/docs/functions/RunAs.htm

  • Mausbewegung erkennen

    • xSunLighTx3
    • 28. Januar 2020 um 13:35
    Zitat von MarioIT

    Danke für eure schnelle Hilfe

    die Variante 1 ist super muss nur schaun wo ich meine Aktion setze wenn denn sich dann die Maus bewegt.

    Danke Mario

    Einfach in die Action() Klasse. Schau dir ggf. Beispiel 2 nochmal an. Dort wird die Mausbewegung onevent getriggert. Ist an sich die schönere Lösung, wenn

    das Programm primär um Mausbewegungen geht.

  • GDI+ Parallax Effect

    • xSunLighTx3
    • 26. Januar 2020 um 00:54

    Sieht sehr schön aus. :saint:

  • HTTP und SciTE

    • xSunLighTx3
    • 21. Januar 2020 um 18:20
    Zitat von Schmunke

    alpines ... ja - Danke - damit kann ich was anfangen ^^ ... wenn ich Win 7 hätte ... da ist das so wie du angibst.

    Aber unter Win 10 ist unter C:\Users\<UserName>\AppData\Local\ kein Autoit vorhanden ...

    Anscheinend gibt es diese Dateien gar nicht bei der Installation von AutoIt.

    Du musst SciTE wahrscheinlich manuell nachinstallieren.

  • Frage zu AutoIt3Wrapper

    • xSunLighTx3
    • 9. Januar 2020 um 21:46

    global:

    Code
    # Global initialisation file for SciTE
    # For Linux, place in $prefix/share/scite
    # For Windows, place in same directory as SciTE.EXE (or Sc1.EXE)
    # Documentation at http://www.scintilla.org/SciTEDoc.html
    
    # Globals
    
    
    # Window sizes and visibility
    if PLAT_WIN
        position.left=0
        position.top=0
    if PLAT_GTK
        position.left=5
        position.top=22
    position.width=-1
    position.height=-1
    #position.maximize=1
    #position.tile=1
    #full.screen.hides.menu=1
    minimize.to.tray=0
    split.vertical=0
    #output.horizontal.size=200
    #output.vertical.size=60
    #output.initial.hide=1
    #horizontal.scrollbar=0
    #horizontal.scroll.width=10000
    horizontal.scroll.width.tracking=0
    #output.horizontal.scrollbar=0
    #output.horizontal.scroll.width=10000
    #output.horizontal.scroll.width.tracking=0
    #output.scroll=0
    #error.select.line=1
    #end.at.last.line=0
    tabbar.visible=1
    tabbar.hide.one=1
    tabbar.multiline=1
    toolbar.visible=1
    #toolbar.detachable=1
    #toolbar.usestockicons=1
    #toolbar.large=1
    #menubar.detachable=1
    #undo.redo.lazy=1
    statusbar.visible=1
    fileselector.width=800
    fileselector.height=600
    #fileselector.show.hidden=1
    magnification=-1
    output.magnification=-1
    
    # Sizes and visibility in edit pane
    line.margin.visible=1
    line.margin.width=5
    margin.width=16
    fold.margin.width=16
    #fold.margin.colour=#FF0000
    #fold.margin.highlight.colour=#0000FF
    blank.margin.left=4
    blank.margin.right=1
    buffered.draw=1
    #two.phase.draw=0
    if PLAT_WIN
        technology=1
    #font.quality=3
    if PLAT_MAC
        font.quality=3
    
    # Element styles
    #view.eol=1
    #control.char.symbol=.
    caret.period=500
    view.whitespace=0
    view.indentation.whitespace=1
    view.indentation.guides=1
    view.indentation.examine=3
    highlight.indentation.guides=1
    #caret.fore=#FF0000
    #caret.additional.blinks=0
    #caret.width=2
    caret.line.back=#FFFED8
    #caret.line.back.alpha=63
    edge.column=200
    edge.mode=0
    edge.colour=#F9F9F9
    braces.check=1
    braces.sloppy=1
    selection.fore=#006000
    # DADADA used as background because it yields standard silver C0C0C0
    # on low colour displays and a reasonable light grey on higher bit depths
    if PLAT_WINNT
        selection.alpha=50
        selection.back=#F0A0A8
    if PLAT_GTK
        selection.alpha=30
        selection.back=#000000
    if PLAT_MAC
        selection.alpha=32
        selection.back=#000000
    #selection.additional.fore=#0000A0
    #selection.additional.back=#000080
    #selection.additional.alpha=20
    #selection.rectangular.switch.mouse=1
    #selection.multiple=0
    #selection.additional.typing=0
    #virtual.space=3
    #rectangular.selection.modifier=4
    #whitespace.fore=#FF0000
    #whitespace.back=#FFF0F0
    #error.marker.fore=#0000A0
    #error.marker.back=#DADAFF
    # Display settings for inline errors on the source Jump to first is supported via autoit3wrapper only.
    error.inline=1
    error.jump.to.first=1
    #
    style.error.0=fore:#ff0000,back:#F0F0F0
    style.error.1=fore:#FF0000,back:#FFFF00
    style.error.2=fore:#FFFFFF,back:#FF0000
    #~ style.error.3=$(style.error.0),back:#FFF0FF,fore:#0000FF
    
    #bookmark.fore=#808000
    #bookmark.back=#FFFFA0
    #bookmark.alpha=
    #find.mark=#0000FF
    highlight.current.word=1
    highlight.current.word.by.style=1
    highlight.current.word.colour=#00D040
    highlight.current.word.autoselectword=0    # Only available in SciTE4AutoIt3 version
    highlight.current.word.wholeword=0         # Only available in SciTE4AutoIt3 version
    highlight.current.word.matchcase=0         # Only available in SciTE4AutoIt3 version
    highlight.current.word.minlength=3         # Only available in SciTE4AutoIt3 version
    highlight.current.word.stoponspace=1       # Only available in SciTE4AutoIt3 version
    indicators.alpha=63
    indicators.under=1
    #use.monospaced=1
    # Scripting
    ext.lua.startup.script=$(SciteDefaultHome)/Lua/SciTEStartup.lua
    ext.lua.auto.reload=1
    ext.lua.reset=1
    
    # Checking
    are.you.sure=1
    #are.you.sure.for.build=1
    #save.all.for.build=1
    #quit.on.close.last=1
    load.on.activate=1
    #save.on.deactivate=1
    #are.you.sure.on.reload=1
    #save.on.timer=20
    reload.preserves.undo=1
    check.if.already.open=1
    #temp.files.sync.load=1
    default.file.ext=.au3
    source.default.extensions=.au3|.ini|.bat
    title.full.path=1
    title.show.buffers=1
    #pathbar.visible=1
    save.recent=1
    save.session=1
    # save.session.advanced=1    #restore last seesion when selecting Open file from Explorer -  Only available in SciTE4AutoIt3 version
    session.bookmarks=1
    session.folds=1
    save.position=1
    open.dialog.in.file.directory=1
    #open.dialog.in.file.directory=1
    strip.trailing.spaces=1
    ensure.final.line.end=0
    ensure.consistent.line.ends=1
    #save.deletes.first=1
    #save.check.modified.time=1
    buffers=20
    buffers.zorder.switching=1
    #api.*.cxx=d:\api\w.api
    #locale.properties=locale.de.properties
    #translation.missing=***
    #read.only=1
    #background.open.size=20000
    #background.save.size=20000
    if PLAT_GTK
        background.save.size=10000000
    #max.file.size=1
    
    # Indentation
    tabsize=4
    indent.size=4
    use.tabs=1
    #indent.auto=1
    indent.automatic=1
    indent.opening=0
    indent.closing=0
    #tab.indents=0
    #backspace.unindents=0
    
    # Wrapping of long lines
    #wrap=1
    #wrap.style=2
    #cache.layout=3
    #output.wrap=1
    #output.cache.layout=3
    #wrap.visual.flags=3
    #wrap.visual.flags.location=3
    #wrap.indent.mode=1
    #wrap.visual.startindent=4
    
    # Folding
    # enable folding, and show lines below when collapsed.
    fold=1
    fold.compact=0
    fold.flags=16
    fold.symbols=3
    fold.highlight=1
    fold.highlight.colour=#FF0000
    fold.on.open=0
    fold.comment=1
    fold.preprocessor=1
    
    # Find and Replace
    # Internal search always available with recursive capability so use in preference to external tool
    find.command=
    # findstr is available on recent versions of Windows including 2000
    if PLAT_WIN
        find.command=findstr /n /s /I "$(find.what)" "$(find.files)"
    #find.input=$(find.what)
    #if PLAT_GTK
    #    find.command=grep --line-number "$(find.what)" $(find.files)
    find.files=*.au3
    #find.in.files.close.on.find=0
    #find.in.dot=1
    #find.in.binary=1
    #find.in.directory=
    #find.close.on.find=0
    #find.replace.matchcase=1
    #find.replace.escapes=1
    #find.replace.regexp=1
    #find.replace.regexp.posix=1
    #find.replace.wrap=0
    #find.replacewith.focus=0
    find.replace.advanced=1
    #find.use.strip=1
    #find.strip.incremental=1
    #find.indicator.incremental=style:compositionthick,colour:#FFB700,under
    #replace.use.strip=1
    #replace.strip.incremental=1
    #strip.button.height=24
    
    # Behaviour
    #eol.mode=LF
    eol.auto=1
    clear.before.execute=1
    #vc.home.key=1
    #wrap.aware.home.end.keys=1
    autocompleteword.automatic=0
    autocomplete.choose.single=0
    #autocomplete.*.fillups=([
    #autocomplete.*.start.characters=.:
    caret.policy.xslop=1
    caret.policy.width=20
    caret.policy.xstrict=0
    caret.policy.xeven=0
    caret.policy.xjumps=0
    caret.policy.yslop=1
    caret.policy.lines=1
    caret.policy.ystrict=1
    caret.policy.yeven=1
    caret.policy.yjumps=0
    #visible.policy.strict=1
    #visible.policy.slop=1
    #visible.policy.lines=4
    time.commands=1
    #caret.sticky=1
    #properties.directory.enable=1
    
    # Status Bar
    statusbar.number=4
    statusbar.text.1=\
    li=$(LineNumber) co=$(ColumnNumber) $(OverType) ($(EOLMode)) $(FileAttr)
    statusbar.text.2=\
    $(BufferLength) chars in $(NbOfLines) lines. Sel: $(SelLength) chars.
    statusbar.text.3=\
    Now is: Date=$(CurrentDate) Time=$(CurrentTime)
    statusbar.text.4=\
    $(FileNameExt) : $(FileDate) - $(FileTime) | $(FileAttr)
    
    if PLAT_WIN
        command.scite.help=$(SciteDefaultHome)\..\Autoit3Help.exe "$(CurrentWord)" "$(SciteDefaultHome)\Scite4AutoIt3.chm"
        command.scite.help.subsystem=2
    if PLAT_GTK
        command.print.*=a2ps "$(FileNameExt)"
        command.scite.help=xdg-open "file://$(SciteDefaultHome)/SciTEDoc.html"
    
    # Internationalisation
    #NewFileEncoding=CodePage/UTF8BOM/UTF8/UTF16BE/UTF16LE         # Only available in SciTE4AutoIt3 version
    
    #~ Enhance function of auto checking utf8: providing two methods
    # detect utf8 and add BOM automatically   Credits to SciTE-RU
    #~ utf8.auto.check=1
    # detect utf8 and do not add BOM
    #~ utf8.auto.check=2
    # detect ascii high characters and if none found set default encoding to UTF8 and add BOM
    #~ utf8.auto.check=3
    # detect ascii high characters and if none found set default encoding to UTF8 and do not add BOM
    utf8.auto.check=4
    
    # Japanese input code page 932 and ShiftJIS character set 128
    #code.page=932
    #character.set=128
    # Unicode
    #~ code.page=65001
    code.page=0
    #character.set=204
    #command.discover.properties=python /home/user/FileDetect.py "$(FilePath)"
    # Required for Unicode to work on GTK+:
    #LC_CTYPE=en_US.UTF-8
    if PLAT_WIN
        output.code.page=0
    if PLAT_GTK
        output.code.page=65001
    if PLAT_MAC
        output.code.page=65001
    
    # Export
    #export.keep.ext=1
    export.html.wysiwyg=1
    #export.html.tabs=1
    #export.html.folding=1
    export.html.styleused=1
    #export.html.title.fullpath=1
    #export.rtf.tabs=1
    #export.rtf.font.face=Arial
    #export.rtf.font.size=9
    #export.rtf.tabsize=8
    #export.rtf.wysiwyg=0
    #export.tex.title.fullpath=1
    # Magnification (added to default screen font size)
    export.pdf.magnification=0
    # Font: Courier, Helvetica or Times (Courier line-wraps)
    export.pdf.font=Helvetica
    # Page size (in points): width, height
    # E.g. Letter 612,792; A4 595,842; maximum 14400,14400
    export.pdf.pagesize=595,842
    # Margins (in points): left, right, top, bottom
    export.pdf.margins=72,72,72,72
    export.xml.collapse.spaces=1
    export.xml.collapse.lines=1
    
    # Define values for use in the imported properties files
    chars.alpha=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
    chars.numeric=0123456789
    chars.accented=ŠšŒœŸÿÀàÁáÂâÃãÄäÅ寿ÇçÈèÉéÊêËëÌìÍíÎîÏïÐðÑñÒòÓóÔôÕõÖØøÙùÚúÛûÜüÝýÞþßö
    # This is a better set for Russian:
    #chars.accented=ÀàÁáÂâÃãÄäÅå¨¸ÆæÇçÈèÉéÊêËëÌìÍíÎîÏïÐðÑñÒòÓóÔôÕõÖö×÷ØøÙùÚúÛûÜüÝýÞþßÿ
    
    # The open.filter setting is used in the file selector which has a menu of filters to apply
    # to the types of files seen when opening.
    # There is a limit (possibly 256 characters) to the length of a filter on Windows,
    # so not all source extensions can be in this setting.
    source.files=*.asm;*.au3;*.bcx;*.c;*.cc;*.cpp;*.cxx;*.cs;*.h;*.hh;*.hxx;*.hpp;\
    *.idl;*.odl;*.rc;*.rc2;*.dlg;*.def;\
    *.vb;*.vbs;*.bas;*.frm;*.cls;*.ctl;\
    *.java;*.js;*.py;*.pl;*.rb;*.cgi;*.lua;*.conf;\
    make*;*.mak;\
    *.py;*.sh;*.log;*.txt;*.properties;\
    *.properties;*.htm*;*.xml;*.iface;*.bat;*.e
    
    # Each platform has a different idea of the most important filters
    if PLAT_WIN
        all.files=All Files (*.*)|*.*|
        top.filters=All Source|$(source.files)|$(all.files)
    if PLAT_GTK
        all.files=All Files (*)|*|Hidden Files (.*)|.*|
        top.filters=All Source|$(source.files)|$(all.files)
    # As OS X only greys out filtered files, show all as default
    if PLAT_MAC
        all.files=All Files (*.*)|*.*|
        top.filters=$(all.files)All Source|$(source.files)|
    
    open.filter=\
    All Source|$(source.files)|\
    $(all.files)\
    $(filter.ada)\
    $(filter.au3)\
    $(filter.conf)\
    $(filter.asm)\
    $(filter.asn1)\
    $(filter.ave)\
    $(filter.baan)\
    $(filter.bash)\
    $(filter.caml)\
    $(filter.cmake)\
    $(filter.cpp)\
    #$(filter.ch)\
    $(filter.css)\
    $(filter.d)\
    $(filter.eiffel)\
    $(filter.erlang)\
    $(filter.fortran)\
    $(filter.gap)\
    #$(filter.hs)\
    $(filter.idl)\
    $(filter.inno)\
    $(filter.java)\
    $(filter.js)\
    $(filter.kix)\
    $(filter.lout)\
    $(filter.lua)\
    $(filter.matlab)\
    $(filter.metapost)\
    $(filter.mmixal)\
    #$(filter.modula3)\
    $(filter.nncrontab)\
    $(filter.nsis)\
    $(filter.opal)\
    $(filter.pascal)\
    $(filter.perl)\
    $(filter.php)\
    $(filter.pov)\
    $(filter.powershell)\
    $(filter.prg)\
    $(filter.properties)\
    $(filter.ps)\
    $(filter.python)\
    $(filter.r)\
    $(filter.ruby)\
    #$(filter.rust)\
    $(filter.sql)\
    $(filter.specman)\
    $(filter.tcl)\
    $(filter.tex)\
    $(filter.text)\
    $(filter.txt2tags)\
    $(filter.vb)\
    $(filter.web)\
    $(filter.yaml)\
    $(filter.verilog)\
    $(filter.vhdl)
    
    save.filter=$(filter.au3) $(open.filter)
    
    # Give symbolic names to the set of fonts used in the standard styles.
    if PLAT_WIN
        font.base=font:Verdana,size:10,$(font.override)
        font.small=font:Verdana,size:8,$(font.override)
        font.comment=font:Comic Sans MS,size:9,$(font.override)
        font.code.comment.box=$(font.comment),$(font.override)
        font.code.comment.line=$(font.comment),$(font.override)
        font.code.comment.doc=$(font.comment),$(font.override)
        font.code.comment.nested=$(font.comment),$(font.override)
        font.text=font:Times New Roman,size:11,$(font.override)
        font.text.comment=font:Verdana,size:9,$(font.override)
        font.embedded.base=font:Verdana,size:9,$(font.override)
        font.embedded.comment=font:Comic Sans MS,size:8,$(font.override)
        font.vbs=font:Lucida Sans Unicode,size:10,$(font.override)
        font.monospace=font:Courier New,size:10
        font.override=$(font.monospace)
    if PLAT_GTK
        font.base=font:Bitstream Vera Sans,size:9
        font.small=font:Bitstream Vera Sans,size:8
        font.comment=font:Bitstream Vera Serif,size:9
        font.code.comment.box=$(font.comment)
        font.code.comment.line=$(font.comment)
        font.code.comment.doc=$(font.comment)
        font.code.comment.nested=$(font.comment)
        font.text=font:Bitstream Charter,size:10
        font.text.comment=font:Serif,size:9
        font.embedded.base=font:Serif,size:9
        font.embedded.comment=font:Serif,size:9
        font.monospace=font:Bitstream Vera Sans Mono,size:9
        font.vbs=font:Bitstream Vera Sans Mono,size:9
    if PLAT_MAC
        font.base=font:Verdana,size:12
        font.small=font:Verdana,size:10
        font.comment=font:Georgia,size:13
        font.code.comment.box=$(font.comment)
        font.code.comment.line=$(font.comment)
        font.code.comment.doc=$(font.comment)
        font.code.comment.nested=$(font.comment)
        font.text=font:Times New Roman,size:13
        font.text.comment=font:Verdana,size:11
        font.embedded.base=font:Verdana,size:11
        font.embedded.comment=font:Comic Sans MS,size:10
        font.monospace=font:Courier New,size:12
        font.vbs=font:Lucida Sans Unicode,size:12
    font.js=$(font.comment)
    
    # Give symbolic names to the set of colours used in the standard styles.
    colour.code.comment.box=fore:#007F00
    colour.code.comment.line=fore:#007F00
    colour.code.comment.doc=fore:#3F703F
    colour.code.comment.nested=fore:#A0C0A0
    colour.text.comment=fore:#0000FF,back:#D0F0D0
    colour.other.comment=fore:#007F00
    colour.embedded.comment=back:#E0EEFF
    colour.embedded.js=back:#F0F0FF
    colour.notused=back:#FF0000
    
    colour.number=fore:#007F7F
    colour.keyword=fore:#00007F
    colour.string=fore:#7F007F
    colour.char=fore:#7F007F
    colour.operator=fore:#000000
    colour.preproc=fore:#7F7F00
    colour.error=fore:#FFFF00,back:#FF0000
    
    # Global default styles for all languages
    # Default
    style.*.32=$(font.base)
    # Line number
    style.*.33=back:#C0C0C0,$(font.base)
    # Brace highlight
    style.*.34=fore:#0000FF,bold
    # Brace incomplete highlight
    style.*.35=fore:#FF0000,bold
    # Control characters
    style.*.36=
    # Indentation guides
    style.*.37=fore:#C0C0C0,back:#FFFFFF
    
    # Printing
    #print.colour.mode=1
    print.magnification=-1
    # Windows-only setup: left, right, top, bottom margins, in local units:
    # hundredths of millimeters or thousandths of inches
    print.margins=1500,1000,1000,1500
    # Header/footer:
    print.header.format=$(FileNameExt) -- Printed on $(CurrentDate), $(CurrentTime) -- Page $(CurrentPage)
    print.footer.format=$(FilePath) -- File date: $(FileDate) -- File time: $(FileTime)
    # Header/footer style
    print.header.style=font:Arial,size:12,bold
    print.footer.style=font:Arial Narrow,size:10,italics
    
    # Warnings - only works on Windows and needs to be pointed at files on machine
    #if PLAT_WIN
    #    warning.findwrapped=100,E:\Windows\Media\SFX\Boing.wav
    #    warning.notfound=0,Effect.wav
    #    warning.wrongfile=0,Glass.wav
    #    warning.executeok=0,Fanfare.wav
    #    warning.executeko=100,GlassBreak.wav
    #    warning.nootherbookmark=100,Boing2.wav
    
    # Define the Lexer menu,
    # Each item contains three parts: menu string | file extension | key
    # The only keys allowed currently are based on F-keys and alphabetic keys and look like
    # [Ctrl+][Shift+][Fn|a] such as F12 or Ctrl+Shift+D.
    # A '&' may be placed before a letter to be used as an accelerator. This does not work on GTK+.
    
    #~ keyText=Shift+F11
    #~ keyMake=Ctrl+Shift+F11
    #~ keyHTML=F12
    #~ keyXML=Shift+F12
    # On OS X, F11 is used by Expose, F12 by Dashbard
    if PLAT_MAC
        os.x.home.end.keys=1
        keyText=Shift+F13
        keyMake=Ctrl+Shift+F13
        keyHTML=Ctrl+Shift+F14
        keyXML=Shift+F14
    
    default.languages=\
    #FreeBasic|bas||\
    Text|txt|Shift+F11|\
    #Ada|ads||\
    AutoIt3|au3|Shift+F12|\
    #Apache Confi&g|conf||\
    #Assembler|asm||\
    #ASN.1|asn1||\
    #Avenue|ave||\
    #Baan|bc||\
    &Batch|bat||\
    #Bullant|ant||\
    #&C / C++|cpp||\
    #CMake|cmake||\
    #C&#|cs||\
    #COBOL|cob||\
    #Csound|orc||\
    CSS|css||\
    #D|d||\
    &Difference|diff||\
    #&Eiffel|e||\
    #Erlang|erl||\
    #&Errorlist|err||\
    #FlagShip|prg||\
    #&Fortran|f90||\
    &Fortran|f90||\
    #Gap|g||\
    #Haskell|hs||\
    H&ypertext|html|$(keyHTML)|\
    #&InnoSetup|iss||\
    #&Java|java||\
    #Java&Script|js||\
    #&Kix|kix||\
    #Lisp|lisp||\
    #Lot|lot||\
    #Lout|lt||\
    Lu&a|lua||\
    #Matlab|m.matlab||\
    #&Makefile|mak||\
    #MetaPost|mp||\
    #MMIXAL|mms||\
    #Modula-3|m3||\
    #&nnCron crontab|tab||\
    #NSIS|nsis||\
    #Objective Caml|ml||\
    #Octave|m.octave||\
    #Opal|impl||\
    #Pascal|pas||\
    #Pe&rl|pl||\
    #P&HP|php||\
    #P&LSQL|spec||\
    #P&ostScript|ps||\
    #P&OV-Ray SDL|pov||\
    #PowerShell|ps1||\
    #PowerPro|powerpro||\
    &Properties|properties||\
    #Pytho&n|py||\
    #R|R||\
    #Reso&urce|rc||\
    #Ruby|rb||\
    #Shell|sh||\
    #S&QL|sql||\
    #S&QL|sql||\
    #Specman|e||\
    #&TCL|tcl||\
    #TeX|tex||\
    #&txt2tags|t2t||\
    #&VB|vb||\
    VBScr&ipt|vbs||\
    #Verilog|v||\
    #VHDL|vhd||\
    #&XML|xml||\
    #&YAML|yaml||
    menu.language=$(default.languages)
    
    # User defined key commands
    user.shortcuts=\
    Ctrl+Shift+V|IDM_PASTEANDDOWN|\
    Ctrl+PageUp|IDM_PREVFILE|\
    Ctrl+PageDown|IDM_NEXTFILE|\
    KeypadPlus|IDM_EXPAND|\
    KeypadMinus|IDM_BLOCK_COMMENT|\
    Ctrl+F1|IDM_HELP_SCITE|
    #user.context.menu=\
    #||\
    #Next File|IDM_NEXTFILE|\
    #Prev File|IDM_PREVFILE|
    
    # To keep menus short, these .properties files are not loaded by default.
    imports.exclude=abaqus asl asn1 avenue avs baan blitzbasic bullant \
    cobol cmake csound ecl escript flagship forth freebasic gap haskell inno \
    kix latex lot lout metapost mmixal modula3 nimrod nncrontab nsis \
    opal oscript powerpro powershell purebasic r rebol rust \
    scriptol smalltalk sorcins spice specman \
    tacl tal txt2tags verilog vhdl
    # Newly removed: ave baan escript lot metapost mmixal
    # The set of imports allowed can be set with
    #imports.include=ave
    
    # Import all the language specific properties files in this directory
    import *
    
    # import properties\all the language specific properties files
    #import properties\abaqus
    #import properties\ada
    import properties\asm
    #import properties\asn1
    import properties\au3
    #import properties\ave
    #import properties\baan
    import properties\bcx
    #import properties\freebasic
    #import properties\blitzbasic
    #import properties\bullant
    import properties\caml
    import properties\conf
    #import properties\cobol
    import properties\cpp
    #import properties\cmake
    #import properties\csound
    import properties\css
    import properties\d
    #import properties\eiffel
    #import properties\erlang
    #import properties\escript
    #import properties\flagship
    #import properties\forth
    #import properties\fortran
    #import properties\gap
    #import properties\haskell
    import properties\html
    #import properties\inno
    import properties\json
    import properties\kix
    #import properties\lisp
    #import properties\lot
    #import properties\lout
    import properties\lua
    #import properties\matlab
    #import properties\metapost
    #import properties\mmixal
    #import properties\modula3
    #import properties\nimrod
    #import properties\nncrontab
    import properties\nsis
    #import properties\opal
    import properties\others
    import properties\pascal
    import properties\perl
    #import properties\pov
    #import properties\powerpro
    #import properties\powershell
    import properties\ps
    #import properties\purebasic
    import properties\python
    #import properties\r
    #import properties\rebol
    #import properties\ruby
    #import properties\scriptol
    #import properties\smalltalk
    #import properties\spice
    import properties\sql
    #import properties\specman
    #import properties\tacl
    #import properties\tal
    import properties\tcl
    #import properties\txt2tags
    import properties\tex
    import properties\vb
    #import properties\yaml
    #import properties\verilog
    #import properties\vhdl
    Alles anzeigen
    Code
    user:
    
    title.full.path=1
  • Frage zu AutoIt3Wrapper

    • xSunLighTx3
    • 9. Januar 2020 um 19:20

    Ich kann den Umlautfehler bei mir nicht reproduzieren. Habe es mit deiner Methode versucht, aber bei mir funktioniert alles problemlos.

    Vielleicht liegt es an einer Standard-Kodierung, die dein Windows oder Scitie nutzt. ?(

  • Ini Read geht teilweise nicht

    • xSunLighTx3
    • 7. Januar 2020 um 12:48
    Zitat von Musashi

    Dann solltest Du sie mal als ANSI speichern.

    Bei UTF-8 wird der Datei EF BB BF (Dezimal : 239 187 191) vorangestellt. Das führt dazu, dass IniRead die erste Zeile 'überliest'. Ist die erste Zeile ein Kommentar, ist das egal.

    Bei Dir ist es aber die Sektion [Pfade] , die dann, wie bereits gesagt, komplett ignoriert wird.

    Gruß Musashi

    Das ist ja heftig, wusste ich auch noch nicht. Dachte man hat mit den Kodierungen "einfach" nur ne andere Kodierung für verschiedene Sprachen. Weshalb IniRead das jetzt überliest, verstehe ich aber immer noch nicht. ;(

    Was auch noch interessant wäre: Wie verhält sich IniWrite() im UTF-8 Modus. Wird dort direkt die erste Zeile beschrieben, wäre das ja theoretisch ein Fehler.

    Passiert das eigentlich nur bei der Funktion IniRead*() ? Wenn ich jetzt FileReadLine() o.Ä verwenden würde, hätte man dann das gleiche Szenario mit dem EF BB BF?

    Ich wollte das jetzt nicht ausprobieren, weil ich von der Sache bisher eh keine Ahnung habe. :/

  • abgebrochene Downloads fortsetzen

    • xSunLighTx3
    • 6. Januar 2020 um 11:43

    Zu InetGet: Ich habe die Funktion damals für einen Patcher verwendet. Dort hatte ich festgestellt, dass bei einem Abbruch die gedownloadete Datei quasi noch existiert, aber eben unvollständig ist. Wenn ich das Programm (meinen Patcher) anschließend neugestartet habe, wurde die Datei von dem Stand, wo der Abbruch stattgefunden hat, fortgeführt. Also theoretisch hätte man die Datei nicht löschen müssen (FileDelete), um sie anschließend erneut herunterzuladen. :D Szenario: ca. 20-100mb große Dateien (gepackt)

    Was mich halt extrem an dieser Funktion (InetGet) stört, ist die fehlende Einstellung zum Drossen der Bandbreite.

    Zudem könnte man auch sowas wie diff-patching (falls du das nicht sogar meinst) entwickeln, wäre auch geil. :D


    Das nur so am Rande. :P

  • ISN AutoIt Studio

    • xSunLighTx3
    • 3. Januar 2020 um 14:21

    Moooin ISI, frohes neues hier!

    Bin wieder fleißig am Entwickeln mit einer netten IDE. ;)

    Ich habe noch ein paar Kleinigkeiten auf dem Herzen.

    Vorschlag - Suchen in Dateien:

    Mir ist aber aufgefallen, dass ich beim Durchsuchen (in Dateien) nach Keywords

    zwar Ergebnisse angezeigt bekomme, aber beim Öffnen der Datei eine neue

    Instanz geöffnet wird, statt eine bereits geöffnete Datei nur zu selektieren.

    Besser wäre es, wenn eine bereits geöffnete Datei nur ausgewählt wird.

    Vorschlag - Referenz Funktion:

    Eine Funktion, wie es die bei Eclipse z.B gibt, womit man bspw. über einen Hotkey

    auf eine Referenzfunktion durch einen Funktionsaufruf gelangt.

    Im Code ist beispiel ein Funktionsaufruf: SetVisible() und über F3 kommt man dann

    auf die eigentliche Funktion: Func SetVisible(). Ist ganz hilfreich für große Programme. :D

    Bug - Unerwartetes schließen:

    Beim Schließen des Skripts, welches innerhalb von ISN AutoIt Studio gestartet wurde (F5),

    passiert es abundzu, dass sich das Studio selbst schließt und das ohne irgendwelche Fehlermeldung

    oder das es eine Msgbox gibt, die das Schließen nochmal bestätigt (was bei mir eingestellt ist).

  • GDI DrawLine auf PDF

    • xSunLighTx3
    • 2. Januar 2020 um 22:44

    Klingt sehr interessant. Ich habe damals auch mit Bots angefangen.

    Damals habe ich mich auch schwer mit GDI+ getan, aber im Prinzip ist der Aufbau recht einfach.

    Sorry, dass mein Beispiel von oben so nicht vollständig war. Ich habe ein anderes Beispiel im Anhang hochgeladen. :)

    Falls du Fragen hast, kann ich dir selbstverständlich weiterhelfen. ;)

    Bilder

    • btn1_norm.png
      • 6,51 kB
      • 108 × 31

    Dateien

    Aufbau Beispiel.au3 2,66 kB – 535 Downloads
  • GDI DrawLine auf PDF

    • xSunLighTx3
    • 2. Januar 2020 um 11:10

    So habe ich GDI mit Backbuffer in einer separaten GdiDraw() Funktion genutzt.

    Die Funktion kann man entweder in der Main Methode aufrufen (high cpu) oder über einen Trigger.

    Hier die GdiDraw() Methode:

    Code
    ; Beispiel Deklarationen
    Global $GUI_Width = 800
    Global $GUI_Height = 600
    
    Global $Gdi_x1 = 300
    Global $Gdi_y1 = 0
    Global $Gdi_x2 = 400
    Global $Gdi_y2 = 400
    
    ; GDI_INIT
    Global $graphic = _GDIPlus_GraphicsCreateFromHWND($mainGui);Frontbuffer
    Global $bitmap = _GDIPlus_BitmapCreateFromGraphics($Gdi_x2, $Gdi_y2, $graphic) ; x2, y2
    Global $buffer = _GDIPlus_ImageGetGraphicsContext($bitmap);Backbuffer
    ; END_OF_GDI_INIT
    
    
    Func _GdiDraw()
    
        _GDIPlus_GraphicsClear($buffer) ; Inhalt des Backbuffer`s wird gelöscht
        _GDIPlus_GraphicsFillRect($buffer, 0, 0, $Gdi_x2, $Gdi_y2, $gdiBrushBg) ; x, y <- area start from x1,y1   , x2, y2
    
    
        _GdiDrawGrid()
        _GdiDrawMapObjects()
    
    
        _GDIPlus_GraphicsDrawImage($graphic, $bitmap, $Gdi_x1, $Gdi_y1) ; Backbuffer wird an den Frontbuffer übergeben (x1, y1)
    EndFunc
    Alles anzeigen


    Ein paar Tipps von mir (persönliche Erfahrung):

    Ich würde AutoitOnExitRegister() nutzen, um GDI Objekte aus dem Speicher zu werfen. Dann kann man, um das Programm zu beenden, einfach Exit nutzen.

    Außerdem nutzt du außerhalb von Methoden lokale Variablen. Das macht keinen Sinn,

    da die Variablen außerhalb von Methoden immer Global sind. Und man sollte jede Variable

    entsprechend deklarieren, um Fehler vorzubeugen.

    Du nutzt in der Hauptschleife Sleep(10). Sofern GUIGetMsg() genutzt wird, ist Sleep() unnötig, da das ganze hier automatisch gedrosselt wird. Es ist eher kontraproduktiv, weil sich der Handler nach einem Event um 10ms verzögert.

    Aber nimm das ganze bitte nicht zu ernst, will dir damit nur etwas helfen. :P

  • Autoit script recorder für mouse movement?

    • xSunLighTx3
    • 28. Dezember 2019 um 20:37

    Falls es ein 3D Game ist, kannst du _WinAPI_Mouse_Event() verwenden.

    Für bessere Movements musste die Memory ausm Spiel auslesen und die Werte entsprechend mit memory write verändern.

    Dazu gibt es hier allerdings keinen Support. :D

    Einen Rekorder kannst du mit AutoIt vergessen. Naja es gibt sowas wie GhostMouse (selbst in au3 geschrieben). Aber für Games

    ist die Performance nicht geeignet. Hab das damals mal in SA:MP gemacht. Da sollte mein Makro Rekorder autmatisch die Ernte

    mit ner Maschine ernten. Am Ende musste ich heulend feststellen, dass das ganze viel zu ungenau war. ;(

  • Autoit startet Internetexplorer, anstatt Firefox :(

    • xSunLighTx3
    • 28. Dezember 2019 um 20:32

    Falls IE keine Option ist, kannst du das ggf. auch mit Makros machen.

    IE ist allerdings geil, hab ne IE(11) UDF, die man auch intern im AutoIt GUI nutzen kann.

    Falls du die brauchst, sag Bescheid. :D

  • Steuern eines Youtube Players

    • xSunLighTx3
    • 25. November 2019 um 10:28
    Zitat von stef26

    Vielleicht weil ich mir einen Song ansehen möchte, der GEMA technisch nur auf Youtube gespielt werden darf?

    Über YouTube direkt wird dieser ganz normal gespielt. Nur wenn es eingebettet ist, dann bringt er mir die Meldung.

    Auf jeden fall cool gemacht.

    Wieso kopfschütteln, würdest du das heute mit mehr Erfahrung anders machen?

    Ich glaube das liegt eher an deinem Rechenr bzw. der genutzten IP Adresse.

    AutoIt nutzt quasi einfach nur Internet Explorer (in diesem Fall Version 7), um auf Youtube zuzugreifen.

    Heute würde ich den Aufbau ganz anders gestalten.

    - den gesamten Code müsste man in Funktionen aufteilen

    - Variablen richtig deklarieren

    - unnötige While Schleifen bereinigen

    - objektorientierter arbeiten

    Zudem würde ich für solch ein Projekt wahrscheinlich html/js als gui nutzen.

  • Steuern eines Youtube Players

    • xSunLighTx3
    • 24. November 2019 um 22:28
    Zitat von stef26

    WOW das ist mal ein Code. Hut ab da hast du ja damals jede menge Arbeit rein gesteckt.

    Leider bringt wie du schon vermutet hast Youtube die Fehlermeldung

    We're sorry...

    ... but your computer or network may be sending automated queries. To protect our users, we can't process your request right now.

    Ich vermute mal das lässt Youtube nicht mehr zu. Denke nicht dass man dies umgehen kann...

    Danke auf jeden Fall für deine Rückmeldung.

    Cooles Programm wenn es Youtube zulassen würde

    Liebe Grüsse

    Stefan

    Alles anzeigen

    Danke für dein Feedback, ja damals habe ich da Wochen Arbeit reingesteckt.

    Wenn ich mir das heute anschaue, kann ich aber nur mit dem Kopf schütteln. ;(

    Mit dem Parser meinte ich eigentlich, dass der html code von Youtube nicht mehr korrekt verarbeitet wird.

    Also deine Fehlermeldung, welche direkt von Youtube kommt, habe ich nicht. Merkwürdig.. :/

Spenden

Jeder Euro hilft uns, Euch zu helfen.

Download

AutoIt Tutorial
AutoIt Buch
Onlinehilfe
AutoIt Entwickler
  1. Datenschutzerklärung
  2. Impressum
  3. Shoutbox-Archiv
Community-Software: WoltLab Suite™