Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 03:48

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



RPE scripting error or bug? Multiple hotkeys won't register

Discussion on RPE scripting error or bug? Multiple hotkeys won't register within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2009
Posts: 1
Received Thanks: 0
Question RPE scripting error or bug? Multiple hotkeys won't register

Hello I was wondering if someone could please help with my RPE script. I'm trying to use the SetHotkey function to register multiple hotkeys. If I register one hotkey it works. But if I try register 2 or more I start having problems.

Here is the script I'm using for 1 hotkey:

Code:
procedure TestProc1;
begin
ShowMessage('Testing 1 2 3');
end;

procedure DLL_Load;
var
  Hot : THotKey;
begin

  Running := true;
         
  setlength(Hot, 1);
  Hot[0] := VK_F1;
  SetHotKey(@TestProc1, Hot);

  IntLog('C:\rpe_log.log');
end;
Now if I use that code it works perfect. Everytime I push F1 I get the RPE dialog with my message. However if I go to add 2 Hotkeys then I start having problems. The script I'm using for 2 hotkeys goes like this:

Code:
procedure TestProc1;
begin
ShowMessage('Testing 1 2 3');
end;

procedure TestProc2;
begin
ShowMessage('Testing a b c');
end;

procedure DLL_Load;
var
  Hot : THotKey;
  Hot2 : THotKey;
begin

  Running := true;
         
  setlength(Hot, 1);
  Hot[0] := VK_F1;
  SetHotKey(@TestProc1, Hot);

  setlength(Hot2, 1);
  Hot2[0] := VK_F2;
  SetHotKey(@TestProc2, Hot2);

  IntLog('C:\rpe_log.log');
end;
However when I use the above code only the last hotkey registers. So if I push F2 I get the dialog box but pushing F1 does nothing. So then I switched the order of the code - I put SetHotkey for F2 first followed by SetHotkey for F1. Now pushing the F1 key gives me a dialog box but pushing F2 does nothing.

I'm not sure if I'm doing something wrong or if this isn't possible. If anyone can please help me fix this so I can use multiple hotkeys that would be great. Thanks in advance.
Viscovio is offline  
Reply


Similar Threads Similar Threads
Multiple clients through vm error
07/11/2010 - Mabinogi - 11 Replies
Please done trash me too badly, seeing i tend not to post for that reason... Anyways. im running 3 game clients from my pc, using vmware workstation. runs fine enough for what i use it for, but i get the occasional random hshield speed mod detection error. anyone run into this before? it seems to only happen during high traffic times of the day... thnx in adv for any insight.
swsro 1 register error
05/10/2010 - SRO Private Server - 6 Replies
hi all , when i press comfirm i have this probleme Invitation code is invalid and can not be empty, please contact customer service! Re-fill pls help me
[error]cannot run multiple instance of soldier front(2)
09/01/2009 - Soldier Front Philippines - 8 Replies
mga boss! bat gnun kakainstall ko lng ng SF ko tapos pag mag loload na siya ung tapos na ilabas ung logo ng game guard saka siya mag lalabas ng alert na cannot run multiple instance of soldier front(2) i really don't know what will I effin do.
Register Error
07/29/2009 - EO PServer Hosting - 1 Replies
http://img34.imageshack.us/i/ihu.jpg/ anybody know why this error happen when i try open the register page? help me please and thanks for your attention.



All times are GMT +1. The time now is 03:49.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.