I've been using Windows 10 Pro 64 Bit for a few days.
(Installed a new SSD and used my Win7 key during the Win10 setup - fresh install)
Most AHK scripts, which I've tested, seem to work.
(I haven't tested everything yet.)
However, for unknown reason no gdip scripts work anymore.
E.g. painting lines on the screen | creating a printscreen | saving as a file etc.
These two scripts for example don't work anymore:
Code: Select all
#SingleInstance, force ; Nur eine Instanz erlauben und laufende Instanzen überschreiben
#include Gdip.ahk ; Gdip-Bibliothek einbinden
;Create printscreen and save it as file
F5::
datei = C:\Users\USER\Documents\Logitech Gaming Software\Profil-Screenshots\test.png
pToken := Gdip_Startup() ; Gdip-Instanz starten
WinGetPos, x, y, w, h, A ; Abmessung und Position des aktuellen Fensters ermitteln
pBitmap := Gdip_BitmapFromScreen(x "|" y "|" w "|" h) ; Bildschirmfoto anhand der ermittelten Werte erstellen
Gdip_SaveBitmapToFile(pBitmap, datei) ; Bild aus Zwischenlage in dem angegebenen Verzeichnis erstellen
Gdip_DisposeImage(pBitmap) ; Grafiken aus Speicher entfernen
Gdip_Shutdown(pToken) ; Gdip-Instanz schließen
return
;Create printscreen (same as Alt+PrntScr)
F2::
pToken := Gdip_Startup() ; Gdip-Instanz starten
WinGetPos, x, y, w, h, A ; Abmessung und Position des aktuellen Fensters ermitteln
pBitmap := Gdip_BitmapFromScreen(x "|" y "|" w "|" h) ; Bildschirmfoto anhand der ermittelten Werte erstellen
Gdip_SetBitmapToClipboard(pBitmap) ; Aufgenommenes Bild an die Zwischenablage senden
Gdip_DisposeImage(pBitmap) ; Grafiken aus Speicher entfernen
Gdip_Shutdown(pToken) ; Gdip-Instanz schließen
return
Inside of my AHK script folder there's both the gdiplus.dll (31.08.2018) and the Gdip.ahk (standard lib v1.45 by tic (Tariq Porter) 07/09/11)
I get no error messages and didn't change anything since I copied and pasted the whole AHK script folder (from Win7 to ext HDD to Win10).
My AHK version is the same as it was on Windows 7 (1.1.29.0)
What could be the problem?
Thanks for any help!
Cheers!