Jump to content

olegsomphane

Members
  • Posts

    1
  • Joined

  • Last visited

olegsomphane's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I am having a problem with SendKeepActive where it does not properly send keystrokes. The problem is with GIMP: when the program loads, the script attempts to create a new image file with ctrl+n: SendKeepActive("GNU Image","") Send("{CTRLDOWN}n{CTRLUP}") I can observe that when these lines execute, the Gimp window blinks (focused state, non-focused state, focused state) and I do not see a new image window. When GIMP is started, the focus is on the GNU Image ... (main GIMP window), but the mouse is hovering over the GIMP tools window and is displaying the text tooltip. If I go over these steps by hand, the new image window does show up. If I also comment out the SendKeepActive line, the script also works correctly. If I change Send("{CTRLDOWN}n{CTRLUP}") to Send("^n"), the script also works correctly. If I move the mouse away from the tools window when those lines execute, the script also works correctly. My SendKeyDelay is set to 100. Does anyone know what the problem is?
×
×
  • Create New...