Reinhardt1julian Posted March 3, 2013 Share Posted March 3, 2013 (edited) I want to check is a button is pressed, and then run a function (Hotkey). But I don't want the normal function of this button to get "deleted" like When i press the m key i want to run a function and type the m normally (even in caps) and this with all keys (Exept F-Keys) I know this will sound suspicious, but i'm just trying to make a program, that counts how often a button got pressed (german letters ö, ä ,ü and ß are in there, too) . Thats what i got so far: <snip> Edited March 3, 2013 by Melba23 Removed code Link to comment Share on other sites More sharing options...
Nessie Posted March 3, 2013 Share Posted March 3, 2013 Take a look at _IsPressed function, but be carefull of what are you doing... My UDF: NetInfo UDF Play with your network, check your download/upload speed and much more! YTAPI Easy to use YouTube API, now you can easy retrive all needed info from a video. NavInfo Check if a specific browser is installed and retrive other usefull information. YWeather Easy to use Yahoo Weather API, now you can easily retrive details about the weather in a specific region. No-IP UDF Easily update your no-ip hostname(s). My Script: Wallpaper Changer Change you wallpaper dinamically, you can also download your wallpaper from your website and share it with all! My Snippet: _ImageSaveToBMPConvert an image to bmp format. _SciteGOTO Open a file in SciTE at specific fileline. _FileToHex Show the hex code of a specified file Link to comment Share on other sites More sharing options...
kylomas Posted March 3, 2013 Share Posted March 3, 2013 *** Warning *** I just ran this code and it caused me to have to re-boot kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
jchd Posted March 3, 2013 Share Posted March 3, 2013 I can see that. Not only the goal is questionable but the way it's coded is ugly and deemed to failure. This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) Link to comment Share on other sites More sharing options...
kylomas Posted March 3, 2013 Share Posted March 3, 2013 Yes, I was thinking about whether or not this was even worth responding to and stupidly hit F5. Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
Reinhardt1julian Posted March 3, 2013 Author Share Posted March 3, 2013 *** Warning ***I just ran this code and it caused me to have to re-bootkylomasI have no idea why, but maybe it's because you don't have the keys ö, ü, ä and ß? Link to comment Share on other sites More sharing options...
kylomas Posted March 3, 2013 Share Posted March 3, 2013 R1j, Possibly, don't know. Your thread borders on questionable content. I'll wait for a MOD to weigh in before responding again. kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
ileandros Posted March 3, 2013 Share Posted March 3, 2013 (edited) This code is so bad written. Use the help files. I think what you're trying to do could be used for keylogger... In any case i can't even understand your script Edit: Btw there are German forums. Go ask there because even your "english" is hard to understand Edited March 3, 2013 by ileandros I feel nothing.It feels great. Link to comment Share on other sites More sharing options...
Reinhardt1julian Posted March 3, 2013 Author Share Posted March 3, 2013 (edited) Yeah, i should probably ask there Please close this Thread! It's not helping anyone. Edited March 3, 2013 by Reinhardt1julian Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 3, 2013 Moderators Share Posted March 3, 2013 Reinhardt1julian,I know this will sound suspicious, but i'm just trying to make a program, that counts how often a button got pressedYou are quite corect - it sounds and looks like a keylogger and only its abysmal coding persuades me not to take more serious action. Please do not post anything like this again - thread locked. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts