Gdip_all und als Filename eine Variable

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Gdip_all und als Filename eine Variable

Re: Gdip_all und als Filename eine Variable

Post by nacken012 » 05 Feb 2024, 07:59

Ich Danke, Euch, das klappt perfekt :-)

Re: Gdip_all und als Filename eine Variable

Post by just me » 05 Feb 2024, 03:24

Ergänzung:

Du kannst weder in v2 noch in v2 in Ausdrücken wie Funktionsaufrufen mit Parametern

Code: Select all

Gdip_SaveBitmapToFile(snap, "g:\_Knights & Brides Tool\Bilder\Versuch\%Name%.bmp")
innerhalb von in Anführungszeichen eingeschlossenen Stringliteralen

Code: Select all

"Ich bin ein Stringliteral!"
auf den Inhalt von Variablen Bezug nehmen.

Das mit den %-Zeichen funktioniert nur mit der traditonellen Command-Syntax ohne Anführungszeichen

Code: Select all

FileRead, Content, C:\Verzeichnis\%VariableAlsName%.txt

Re: Gdip_all und als Filename eine Variable

Post by andymbody » 05 Feb 2024, 00:41

Versuche dies
Gdip_SaveBitmapToFile(snap, "g:\_Knights & Brides Tool\Bilder\Versuch\" Name ".bmp")

Gdip_all und als Filename eine Variable

Post by nacken012 » 05 Feb 2024, 00:25

Hallo Leute, stehe irgendwie auf dem Schlauch und bekomme es nicht hin als Bildname eine Variable anzugeben

Code: Select all

Gui, New, +AlwaysOnTop, ,Bilder Snapshoot
Gui, Add, Edit, x10 y10 w120 vName

Gui, Add, Button, x90 y50 gDaten, Speichern
Gui, Show, x1400 w250 h100, Name eintragen

return

Daten:
Gui, Submit ;, nohide
Gui, Cancel

pToken := Gdip_Startup()
snap := Gdip_BitmapFromScreen(745 "|" 314 "|" 112 "|" 69)
Gdip_SaveBitmapToFile(snap, "g:\_Knights & Brides Tool\Bilder\Versuch\%Name%.bmp")

Top