DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: [REQ]Zoom in and out in different programs.  (Read 16,582 times)

Coeluh

  • Family Guy ^^
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 273
[REQ]Zoom in and out in different programs.
« on: February 28, 2009, 11:15 AM »
Hi There,

I've these 2 configurable keys on my new Logitech Media keyboard.  I want them for using it for zoom in and out buttons, like on other logitech keyboards? Maybe could there be an exe which presses the ctrl key and scrolls down 1 click.  And one exe for scrolling up one click while holding ctrl key. It shouldn't be that hard, right?

yksyks

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 476
Re: [REQ]Zoom in and out in different programs.
« Reply #1 on: February 28, 2009, 10:05 PM »
Before others here start recommending AutoHotKey, which is nice, but a bit overkill just for this, I'd recommend the free HotkeyP utility. I'm using it for similar purposes.

Coeluh

  • Family Guy ^^
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 273
Re: [REQ]Zoom in and out in different programs.
« Reply #2 on: March 04, 2009, 10:11 PM »
Before others here start recommending AutoHotKey, which is nice, but a bit overkill just for this, I'd recommend the free HotkeyP utility. I'm using it for similar purposes.
I'm not running AHK cause I prefer some small thing I can use and does not have to run the whole time.

yksyks

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 476
Re: [REQ]Zoom in and out in different programs.
« Reply #3 on: March 05, 2009, 09:16 AM »
That's why I suggested HotkeyP instead of AHK. Is 64 kB small enough?  ;)

Coeluh

  • Family Guy ^^
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 273
Re: [REQ]Zoom in and out in different programs.
« Reply #4 on: March 05, 2009, 02:48 PM »
That's why I suggested HotkeyP instead of AHK. Is 64 kB small enough?  ;)
Yeah but that things looks like a tray application...

yksyks

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 476
Re: [REQ]Zoom in and out in different programs.
« Reply #5 on: March 05, 2009, 03:26 PM »
It can have a tray icon, but you can switch it off, if you prefer, it's not needed for normal operation.

Coeluh

  • Family Guy ^^
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 273
Re: [REQ]Zoom in and out in different programs.
« Reply #6 on: March 05, 2009, 04:32 PM »
It can have a tray icon, but you can switch it off, if you prefer, it's not needed for normal operation.
No I mean it in this way: The program should only run when I press a shortcut. And close immediately.
« Last Edit: March 05, 2009, 04:44 PM by Coeluh »

yksyks

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 476
Re: [REQ]Zoom in and out in different programs.
« Reply #7 on: March 05, 2009, 05:14 PM »
Oh yes, got it. And you want to trigger such a program by assigning it to the special keys using the supplied Logitech application, right? This might lag a bit.

My idea—and what I'm actually using, just with Genius keyboard—was to replace this application with HotkeyP, which has much smaller footprint and is incredibly more versatile. (I don't know this Logitech thing, but I suppose it's terrible to the same extent as the one from Genius.)

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,175
    • Coding Snacks
    • Participated in NANY Challenge Three Times
    • Plugin Coding Medal
Re: [REQ]Zoom in and out in different programs.
« Reply #8 on: March 05, 2009, 06:08 PM »
Code
send ^{WheelDown}

Code
send ^{WheelUp}

Install AHK, save each code snippet to an .ahk file, for each.ahk compile to .exe, deinstall AHK (if you want to).
Or used the attached, already compiled files (but I really recommend installing and playing around with AHK - you'll very soon find yourself making your own small programs with ease and pleasure  :))

36dea797d770df7282aba90dcef3fce6 *CWheelUp.exe
dacd60b53475ec06bc81765f67657f9c *CWheelDown.exe

« Last Edit: March 05, 2009, 06:14 PM by Nod5 »

Coeluh

  • Family Guy ^^
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 273
Re: [REQ]Zoom in and out in different programs.
« Reply #9 on: March 05, 2009, 06:19 PM »
Code
send ^{WheelDown}

Code
send ^{WheelUp}

Install AHK, save each code snippet to an .ahk file, for each.ahk compile to .exe, deinstall AHK (if you want to).
Or used the attached, already compiled files (but I really recommend installing and playing around with AHK - you'll very soon find yourself making your own small programs with ease and pleasure  :))

36dea797d770df7282aba90dcef3fce6 *CWheelUp.exe
dacd60b53475ec06bc81765f67657f9c *CWheelDown.exe

THanks man!

I've got AHK myself now. But it does not work in photoshop. I changed it to ^!{WheelUp} , but that doesn't matter because Photoshop loses focus...
« Last Edit: March 05, 2009, 06:29 PM by Coeluh »

yksyks

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 476
Re: [REQ]Zoom in and out in different programs.
« Reply #10 on: March 05, 2009, 08:14 PM »
... But it does not work in photoshop.

Don't want to intrude again, but it works like a charm with HotkeyP in Photoshop...  :P

Coeluh

  • Family Guy ^^
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 273
Re: [REQ]Zoom in and out in different programs.
« Reply #11 on: March 05, 2009, 11:52 PM »
Mmm....

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • Participated in NANY Challenge Twice
    • Coding Snacks
Re: [REQ]Zoom in and out in different programs.
« Reply #12 on: March 14, 2009, 10:55 PM »
@Coeluh:

:) Try adding
Code
WinActivateWait,Photoshop
WinWaitActive,Photoshop
before the Send command.

Skrommel

r0bertdenir0

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 50
    • Participated in NANY Challenge Once
Re: [REQ]Zoom in and out in different programs.
« Reply #13 on: April 30, 2009, 11:31 PM »
WinActivateWait,Photoshop

WinActivateWait ?

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: [REQ]Zoom in and out in different programs.
« Reply #14 on: May 03, 2009, 01:54 PM »
WinActivateWait

i think this is what Skrommel meant:
Code
WinWait, Photoshop
WinActivate, Photoshop

cmpm

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 2,026
Re: [REQ]Zoom in and out in different programs.
« Reply #15 on: May 03, 2009, 05:29 PM »
Could try systeminternals Zoomit.

http://technet.microsoft.com/en-us/sysinternals/bb897434.aspx

hot key zoom-move mouse to pan

Coeluh

  • Family Guy ^^
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 273
Re: [REQ]Zoom in and out in different programs.
« Reply #16 on: May 04, 2009, 11:27 AM »
Could try systeminternals Zoomit.

http://technet.microsoft.com/en-us/sysinternals/bb897434.aspx

hot key zoom-move mouse to pan
Thats a nice piece of software, but I wanted to use the internal zoom function of programs

Original address: https://www.donationcoder.com/forum/index.php?topic=17221.0