Thanks in advance.
[solved]name of a printscreen to be a variable
- smorgasbord
- Posts: 493
- Joined: 30 Sep 2013, 09:34
[solved]name of a printscreen to be a variable
http://www.autohotkey.com/board/topic/7 ... matically/ ; the original post, scroll down to see http://www.autohotkey.com/board/user/16360-g-sperotto/'s post
Thanks in advance.
Spoiler
please help regarding this ==> Gdip_SaveBitmapToFile(pBitmap, "File.png" ; i want File.png to be a variable, how?Thanks in advance.
Last edited by smorgasbord on 08 Oct 2013, 10:13, edited 1 time in total.
John ... you working ?
Re: name of a printscreen to be a variable
Code: Select all
var := "File.png"
Gdip_SaveBitmapToFile(pBitmap, var)
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
- smorgasbord
- Posts: 493
- Joined: 30 Sep 2013, 09:34
- smorgasbord
- Posts: 493
- Joined: 30 Sep 2013, 09:34
Re: name of a printscreen to be a variable
that is a not a variable i guess if you put it in "". so it did not work
![Confused :?](./images/smilies/icon_e_confused.gif)
![Confused :?](./images/smilies/icon_e_confused.gif)
![Confused :?](./images/smilies/icon_e_confused.gif)
![Confused :?](./images/smilies/icon_e_confused.gif)
John ... you working ?
Re: name of a printscreen to be a variable
Code: Select all
test := "Hallo"
var1 := test ; another var ==> Hallo
var2 := "File.png" ; Single Quotes ==> File.png
var3 := """File.png""" ; Double Quotes ==> "File.png"
MsgBox, % var1 "`n" var2 "`n" var3
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
- smorgasbord
- Posts: 493
- Joined: 30 Sep 2013, 09:34
Re: name of a printscreen to be a variable
here is the complete code, i want the image to be saved with %line%.png but i cannot
Thanks
![Sad :(](./images/smilies/icon_e_sad.gif)
Spoiler
John ... you working ?
Re: name of a printscreen to be a variable
Code: Select all
var := "C:\Users\smorgasbord\Desktop\smor\" . line . ".png"
- smorgasbord
- Posts: 493
- Joined: 30 Sep 2013, 09:34
Re: name of a printscreen to be a variable
just me wrote:?Code: Select all
var := "C:\Users\smorgasbord\Desktop\smor\" . line . ".png"
![Confused :?](./images/smilies/icon_e_confused.gif)
![Sad :(](./images/smilies/icon_e_sad.gif)
John ... you working ?
Re: name of a printscreen to be a variable
Code: Select all
var := "C:\Users\smorgasbord\Desktop\smor\" . line . ".png"
MsgBox, %var%
- smorgasbord
- Posts: 493
- Joined: 30 Sep 2013, 09:34
Re: name of a printscreen to be a variable
I am really sorry. I forgot to change the file name. It works 100% as i want. again sorry.
Thanks
thanks for asking "what does msgbox show"just me wrote:?Code: Select all
var := "C:\Users\smorgasbord\Desktop\smor\" . line . ".png"
Thanks
John ... you working ?