Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
O

OmegaExtern

@OmegaExtern
About
Posts
3
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • C# Keybind for Autoclicker
    O OmegaExtern

    Re-Edited my post, refresh your page. I glad I can help you :)

    C# csharp linq graphics help question

  • C# Keybind for Autoclicker
    O OmegaExtern

    First off all, you are dealing with deprecated method (mouse_event). Second, I think you will need KeyPreview enabled/set to true for your form (look on Form1 properties). Third, "if (e.KeyCode.ToString() == "F") ;" wtf? That "if" branch statement does nothing, why? You assigned it to empty (;) and by not using "{" and "}" it basically mean "if" is limited to single line.. code style.. Fourth, your if statement comparison should be made from "e.KeyCode.ToString() == "F" to "e.KeyCode == Keys.F". Fifth, are you sure your events (timer1_Tick/Form1_KeyDown) are assigned, that could be a main cause, "this code does nothing", as I don't see anything in your constructor, "InitializeComponent();", and you didn't posted code of your (*.Designer.cs) Form1.Designer.cs file in this case. Sixth, it is a lot of bad practice in here so I will jump to seventh. Seventh, you can't just copy/paste into C# always double-check everything such as Win32 native API you deal with, it maybe have wrong signature from my experience there are a lot of examples also 90% of all Windows native APIs from pinvoke.net are NOT correctly defined, so sad... I have fixed your code, and it works fine for me, all you need to do is keep up with my friendly warnings. If you are not that smart, well, here is my smart suggestion for you, why not do: "timer1.Enabled = Keys.F;" in Form1_KeyDown event (Keys.F will be 1/true when hold down; otherwise 0/false). And yeah, do not forget mouse_event() is deprecated method and is no longer officially supported (so I should not be even giving you away these nice warnings). Switch to SendInput function with structures, it is not that hard. Best regards, OmegaExtern.

    C# csharp linq graphics help question

  • C#/JS problematic iteration with table...
    O OmegaExtern

    Hi. I am trying to get "Command" values of each table with [table row(tr) and standard cell(td) which has valiagn="top"] tags defined from this website: Console Command List - Valve Developer Community[^]. So, at the end I want a whole list of "Commands" names stored in a string separated with a new line character (CR+LF). Here I took a screenshot[^]. Anyway to get them, all command names list using C++/C#/Java/VB/VB.NET/JavaScript/AutoIt/AutoHotkey, anything/anyhow? Please, I really need this, and I will appreciate your help A LOT!

    C# csharp javascript c++ java
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups