Send a "Ctrl" key to 2nd Window

Using HotkeyNet with EverQuest II.

Send a "Ctrl" key to 2nd Window

Postby torrigzz on Sun Mar 07, 2010 6:54 pm

I have script that work great if I only need to have both of the windows use 1-9 key, but I'm trying to get the second window to act as thought I typr Ctrl 1 (Second Hotbar)

here is my code, all it does is act as if 1 is pressed.

<Hotkey Oem3 2>
<SendWin AltWin>
<wait 50>
<KeyDown alt>
<Wait 50>
<Key 1>
<Wait 50>
<KeyUp alt>
<Restore>

not sure where to go from here ...
torrigzz
 
Posts: 4
Joined: Sun Mar 07, 2010 6:20 pm

Re: Send a "Ctrl" key to 2nd Window

Postby HotkeyNet on Mon Mar 08, 2010 1:30 am

The hotkey sends Alt.
-- Freddie
HotkeyNet
Site Admin
 
Posts: 5177
Joined: Fri Mar 28, 2008 8:36 pm

Re: Send a "Ctrl" key to 2nd Window

Postby torrigzz on Mon Mar 08, 2010 7:49 pm

my apologies, it is the "ALT" key I want to send to the next window with the corresponding number,
example:
I press ~2 in the main window, I want to send Alt 2 to the second window.
I use Ctrl in the header as a reference to a controlled key sequence.
torrigzz
 
Posts: 4
Joined: Sun Mar 07, 2010 6:20 pm

Re: Send a "Ctrl" key to 2nd Window

Postby HotkeyNet on Tue Mar 09, 2010 4:16 am

The definition looks right to me. The only thing I can suggest is making the delays longer.
-- Freddie
HotkeyNet
Site Admin
 
Posts: 5177
Joined: Fri Mar 28, 2008 8:36 pm

Re: Send a "Ctrl" key to 2nd Window

Postby torrigzz on Wed Mar 10, 2010 11:29 pm

even with scaling the time to 1000, is still acts like onlt the 1 is being press. Does haveing a programable keyboard effect they way some scripts run? I have noticed it I try to use the ScrollLockOn feature my keyboard does not respond.

Keyboard type is a Microsoft Sidewinder X6
torrigzz
 
Posts: 4
Joined: Sun Mar 07, 2010 6:20 pm

Re: Send a "Ctrl" key to 2nd Window

Postby HotkeyNet on Thu Mar 11, 2010 7:50 am

I suppose it might. You might try removing Oem3 and see what happens. What messages does HotkeyNet display when you press this hotkey?
-- Freddie
HotkeyNet
Site Admin
 
Posts: 5177
Joined: Fri Mar 28, 2008 8:36 pm

Re: Send a "Ctrl" key to 2nd Window

Postby torrigzz on Fri Mar 12, 2010 3:54 am

Here is the output from HotKeyNet

From this pc: <SendWin AltWin><wait 200><KeyDown Alt><Wait 500><Key 1><Wait 200><KeyUp Alt><Restore>
<SendWin AltWin> completed: Window found. Target set to 0x703A8 "AltWin"
<wait 200> completed: 200 milliseconds
<KeyDown Alt> completed
<Wait 500> completed: 500 milliseconds
<Key 1> completed
<Wait 200> completed: 200 milliseconds
<KeyUp Alt> completed
<Restore> completed

All this does is act as though the 1 key is pressed
torrigzz
 
Posts: 4
Joined: Sun Mar 07, 2010 6:20 pm


Return to EverQuest II

Who is online

Users browsing this forum: No registered users and 1 guest