AUTOHOTKEY Scriptings


Philosophy, Politics, Humor, what ever should have its own place far, far away from galleries and feedback... here we can go for it almost shamelessly! :)

Forum rules
More than anywhere on this forum I'd ask you all to be courteous and respectful to each other, but don't hesitate to speak your mind! :geek:
Please, do not advertise commercial software here!
User avatar

Posts: 1291

Joined: Sat May 31, 2014 12:35 pm

Post Tue Feb 09, 2016 6:04 pm

AUTOHOTKEY Scriptings

Hey dear guys, I wrote today an AUTOHOTKEY Script - I use this tool since 2 months and I'm not very good in scripting/programing :shrug: ... but AUTOHOTKEY is so cool too ... and I wrote a small script that works between

PHOTOSHOP and VERVE

  Code:
/*
PNG Importing between PHOTOSHOP and VERVE, with [WINDOWS] + [V]
it is important that VERVE and PHOTOSHOP use the same folder for png exchange
*/
/*
PNG Importing between PHOTOSHOP and VERVE, with [RIGHTWINDOWS] + [V]
it is important that VERVE and PHOTOSHOP use the same folder for png exchange
*/
>#V::
send ^+s ;this is the shortcut in Photoshop for "Save as" - CONTROL + SHIFT + S
sleep 300
send temptoverve.png ; creates in Photoshop the temptoverve.png in one of your last folders, e.g. desktop
*/ 
sleep 300
send {enter}
sleep 300
send {enter}
sleep 300
send {enter}

msgbox, wait until PNG is saved

if WinExist("ahk_exe Verve_painter.exe")
    WinActivate, ahk_exe Verve_painter.exe ; it changes to the VerveWindows if it is active
else
    Run, "C:\Program Files\Sonstige Software\verve_painter.exe" ; it runs Verve
sleep 800
send o ; send o -> load the temptoverve.png file from your desktop
sleep 800
send temptoverve.png
send {enter}   
return


I'm not very good in scripting - but U will have fun ...

If your computer is fast enough, you can delete the sleep-timers or set it lower
Last edited by Zeropainter on Tue Feb 09, 2016 8:41 pm, edited 2 times in total.
my system: intel7 - 2600k, gtx 970, dualboot windows 7 64 bit / ubuntu 14.04 lts
my deviantartpage: http://zeropainter.deviantart.com/gallery
my youtube channel: zeropainter - ok, there are only 2-3 very short videos
User avatar

Site Admin

Posts: 7280

Joined: Sun Nov 10, 2013 1:38 pm

Post Tue Feb 09, 2016 8:07 pm

Re: AUTOHOTKEY Scriptings

Curious idea, Zero! Thanks for sharing that! :ob
Here to help! :D
System Info: AMD Radeon RX Vega 10, AMD Ryzen 7 (2.3 Ghz), Windows 11
Taron.de | Twitter | Pinterest | YouTube
User avatar

Posts: 1291

Joined: Sat May 31, 2014 12:35 pm

Post Tue Feb 09, 2016 8:34 pm

Re: AUTOHOTKEY Scriptings

I see that the current VERVE Version(s) have soemtimes problems with PNG Importing from photoshop* - it even destroys the VERVE GUI - can you give me/us advises, what the best settings for export?

If I save PNG for web - it runs okay, but for web it will result sometimes a little bit other colors.

edit I changed my script

- maybe, if we have better scripters like me in that forum, he/she can change the messagebox-line code into somth. better one

  Code:
msgbox, wait until PNG is saved


but

  Code:
file = some file path name
FileAppend, %data%, %file%
  Loop {
    FileMove, %file%, %file% ; renames the file to the same file name
   if !ErrorLevel  ; if ErrorLevel = 0 the file write is complete
     break
   sleep, 250  ; kill some time before checking again
  }
  msgbox, Finished


but this doesn't work

https://autohotkey.com/board/topic/5792 ... file-save/

Because Saving PNG can take some time ....
my system: intel7 - 2600k, gtx 970, dualboot windows 7 64 bit / ubuntu 14.04 lts
my deviantartpage: http://zeropainter.deviantart.com/gallery
my youtube channel: zeropainter - ok, there are only 2-3 very short videos
User avatar

Posts: 1291

Joined: Sat May 31, 2014 12:35 pm

Post Wed Feb 10, 2016 4:49 pm

Re: AUTOHOTKEY Scriptings

Thats my next script, if you use AHK just collect or change it in one AHK file.

PAINTING ON MATERIALS / FIX TRANSPARENT AREA

  Code:
Mask Invert - Verve Only [RightWindows]+[A]
*/
>#A::
sleep 300
send +q
sleep 300
send ^+q
sleep 300
return


[RIGHT WINDOWS KEY] + [A]

Just hit [Right Windows]+[A]

And AHK did send SHIFT+Q .... and CTRL+SHIFT+Q

it saves you 2-3 seconds, but in a year this is maybe a hour :mrgreen:
my system: intel7 - 2600k, gtx 970, dualboot windows 7 64 bit / ubuntu 14.04 lts
my deviantartpage: http://zeropainter.deviantart.com/gallery
my youtube channel: zeropainter - ok, there are only 2-3 very short videos

Return to Off Topic

Who is online

Users browsing this forum: No registered users and 50 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software