<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Копирование диапазона экселя.]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14772&amp;type=atom" />
	<updated>2019-05-10T12:20:56Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14772</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование диапазона экселя.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134277#p134277" />
			<content type="html"><![CDATA[<p>stealzy, ясно.<br />Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[ОсиповаТатьяна]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39847</uri>
			</author>
			<updated>2019-05-10T12:20:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134277#p134277</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование диапазона экселя.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134265#p134265" />
			<content type="html"><![CDATA[<p>inseption86, спасибо большое.<br />А как сделать, чтобы вот это окно экселя - не моргало на весь экран ?<br />Оно ведь при запуске - открывается на весь экран и быстро исчезает.</p><p>Можно ли сделать, чтобы оно (это окно экселя) - как-то в скрытом режиме открывалось ?</p>]]></content>
			<author>
				<name><![CDATA[ОсиповаТатьяна]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39847</uri>
			</author>
			<updated>2019-05-09T16:37:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134265#p134265</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование диапазона экселя.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134260#p134260" />
			<content type="html"><![CDATA[<p><strong>ОсиповаТатьяна</strong></p><div class="codebox"><pre><code>#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
#SingleInstance force 

#include gdip_all.ahk  ;https://www.autohotkey.com/boards/viewtopic.php?f=6&amp;t=6517

path = %A_Desktop%\1.xlsx

xl := ComObjCreate(&quot;Excel.Application&quot;)
xl.Visible := true

Book1 := Xl.Workbooks.Open(path)

Book1.workSheets(3).Range(&quot;B4:E8&quot;).copy

pToken := Gdip_Startup()
pBitmap := Gdip_CreateBitmapFromClipboard()
FormatTime, TimeString,, HH-mm-ss
vPath := A_ScriptDir &quot;\&quot; TimeString &quot;.png&quot;

Gdip_SaveBitmapToFile(pBitmap, vPath)
Gdip_DisposeImage(pBitmap)
Gdip_Shutdown(pToken)


Book1.close(false)


MsgBox, 4160, , Готово!

xl.quit
ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2019-05-09T15:35:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134260#p134260</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование диапазона экселя.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134256#p134256" />
			<content type="html"><![CDATA[<p>inseption86, спасибо.<br />Но этот скрипт копирует не весь диапазон.</p><p>Там ведь - еще фигура есть в этом диапазоне.</p>]]></content>
			<author>
				<name><![CDATA[ОсиповаТатьяна]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39847</uri>
			</author>
			<updated>2019-05-09T15:04:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134256#p134256</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование диапазона экселя.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134255#p134255" />
			<content type="html"><![CDATA[<p><strong>ОсиповаТатьяна</strong></p><p>Так в .pdf</p><div class="codebox"><pre><code>#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
#SingleInstance force 

path = %A_Desktop%\1.xlsx

xl := ComObjCreate(&quot;Excel.Application&quot;)
xl.Visible := false
xl.screenUpdating := 0
Book1 := Xl.Workbooks.Open(path)

Book1.workSheets(3).Range(&quot;B4:E8&quot;).copy

Book2 := xl.Workbooks.add
Book2.workSheets(1).Range(&quot;A1&quot;).PasteSpecial

FormatTime, TimeString,, HH-mm-ss

path = %A_ScriptDir%\%TimeString%.pdf
Book2.worksheets(1).ExportAsFixedFormat(0, path) 

Book1.close(false)
Book2.close(false)

MsgBox, 4160, , Готово!

xl.quit
ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2019-05-09T14:50:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134255#p134255</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование диапазона экселя.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134254#p134254" />
			<content type="html"><![CDATA[<p>Имеется ввиду не скриншот PrintScreen, а сохранение диапазона - в файл jpg.</p>]]></content>
			<author>
				<name><![CDATA[ОсиповаТатьяна]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39847</uri>
			</author>
			<updated>2019-05-09T14:39:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134254#p134254</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование диапазона экселя.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134253#p134253" />
			<content type="html"><![CDATA[<p>В скрытом режиме скриншоты не делаются.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2019-05-09T14:37:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134253#p134253</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Копирование диапазона экселя.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134252#p134252" />
			<content type="html"><![CDATA[<p>Здравствуйте, уважаемые специалисты.</p><p>Есть файл экселя 1.xls.<br />И в нем на листе3 - есть диапазон B4:E8<br />Как скриптом Autohotkey&nbsp; - сделать скриншот этого диапазона, открыв файл 1.xls - в скрытом режиме и сохранить скриншот в папку со скриптом ?</p>]]></content>
			<author>
				<name><![CDATA[ОсиповаТатьяна]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39847</uri>
			</author>
			<updated>2019-05-09T14:20:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134252#p134252</id>
		</entry>
</feed>
