| View previous topic :: View next topic |
| Author |
Message |
Iampro Advanced Cheater
Reputation: 0
Joined: 07 Jun 2007 Posts: 89
|
Posted: Mon Jul 16, 2007 3:20 am Post subject: Help] DELPHI [Hotkeys in WB |
|
|
can this piece of code be used to make hotkeys
| Quote: |
procedure TForm1.WebBrowser1CommandStateChange(Sender: TObject; Command: Integer; Enable: WordBool);
begin
--case Command of
---CSC_NAVIGATEBACK: BackCtrl.Enabled := Enable;
---CSC_NAVIGATEFORWARD: FrwrdCtrl.Enabled := Enable;
---CSC_UPDATECOMMANDS: StopCtrl.Enabled := TWebBrowser(Sender).Busy;
--end;
end; |
backctrl = Left CTRL?
if this isnt right, could sum1 teach me
thanks ^^
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Mon Jul 16, 2007 4:26 am Post subject: |
|
|
that code is as you see for a webbrowser.
Its so you dont get an error, because usually you can click Back/Foward without even doing something on the webbrowser (visiting sites).
so that does so if you go to a site, it will enable the back button.
if you go back, it will enable the foward button.
i dont know about the last command (Stop)
I think Ctrl is instead of Button or Btn.
i use timers to make hotkeys.
Procedure ... (double click timer)
Begin
If Odd(GetAsyncKey VK_11) then
begin
BackButton.click; //Webbrowser1.Back;
end;
VK_F11 is the key = F11
VK_RETURN = Enter
VK_ESCAPE = Esc
VK_F1-12 = F1-F12 Keys
i made a topic where someone answered with a link, which linked to a website with all the keys. look for it (Should be 1-2 page)
|
|
| Back to top |
|
 |
Iampro Advanced Cheater
Reputation: 0
Joined: 07 Jun 2007 Posts: 89
|
Posted: Mon Jul 16, 2007 4:58 am Post subject: |
|
|
ok ty
btw im skylla
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Mon Jul 16, 2007 5:00 am Post subject: |
|
|
| also a code like this (not the same, but something which looks alike) can be found on sythes site (the runescape one, with all the bots, they got a closed sub-forum for delphi on how to make a webbrowser, google it)
|
|
| Back to top |
|
 |
Iampro Advanced Cheater
Reputation: 0
Joined: 07 Jun 2007 Posts: 89
|
Posted: Mon Jul 16, 2007 5:11 am Post subject: |
|
|
| Kevinnn wrote: | that code is as you see for a webbrowser.
Its so you dont get an error, because usually you can click Back/Foward without even doing something on the webbrowser (visiting sites).
so that does so if you go to a site, it will enable the back button.
if you go back, it will enable the foward button.
i dont know about the last command (Stop)
I think Ctrl is instead of Button or Btn.
i use timers to make hotkeys.
Procedure ... (double click timer)
Begin
If Odd(GetAsyncKey VK_11) then
begin
BackButton.click; //Webbrowser1.Back;
end;
VK_F11 is the key = F11
VK_RETURN = Enter
VK_ESCAPE = Esc
VK_F1-12 = F1-F12 Keys
i made a topic where someone answered with a link, which linked to a website with all the keys. look for it (Should be 1-2 page) |
what do u mean double click timer?
where is it?
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Mon Jul 16, 2007 5:21 am Post subject: |
|
|
| drop a timer (from the system tab) and double click it. i dont remember what the procedure is called.
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
|
| Back to top |
|
 |
|