Jump to content

theholycow

Active Members
  • Posts

    53
  • Joined

  • Last visited

About theholycow

  • Birthday 11/12/1991

Profile Information

  • Location
    Washington
  • Interests
    Military Technologies<br />SCUBA<br />ROTC<br />Armed Drill<br />Computer Security

theholycow's Achievements

Wayfarer

Wayfarer (2/7)

0

Reputation

  1. I am creating a program that manages the schedules of a group of people. I have completed the part that saves and stores the peoples information i need, but I want to also read this information (mostly just the shift they are working) and represent it on a linear time graph. For example: name | |----| name | |-------------| name | |--------|___|--------| name | |-----------| name |__________________________________ increments of time (spaces didnt show, but the shifts do not line up, they are spread across the graph) But I haven't thought of a reasonable way to do it. At this stage I dont know how to approach it with autoit, though I may post back for actual script help when I find a way. Ideas? (prog saves to a .ini file with different keys representing start and end times and names, among other things)
  2. Yes this can easily be done, a few different ways. One, as you suggested, would be to automate a right click and the following clicks. This can be done with MouseClick, and the AutoIT window tool can tell you the coordinates for that tray icon. There is a tutorial for this. However, I've found that when I did anything coordinate based, within a week or two the coordinates would change for whatever reason, so you may consider using something like ProcessClose and simply ending Avast and then restarting it.
  3. I was wondering, seeing as there is a vast number of ipod docks and remotes and things available now, if there is a resource on controlling an ipod through an autoit program. I have seen people use C or C++ to program and control microprocessor devices and other homemade circuits and things, but I was wondering if anyone knows how to go about it with autoit (like knowing what to send through USB to the ipod). I want to start playing with making my own hardware and stuff, but I figured I would try to make a program to control an ipod first. I have a first gen nano
  4. Yeah nevermind that one is better, use that haha
  5. I have one that is set up to slide up vertically when you mouse over it, I am sure it could be tweaked to do that instead, though it will take some doing... I'll PM it to you?
  6. Well, for the record it was successful, and I still dont understand why it didnt work as is, but when I went back to try and figure out if it was working or not, I accidentally got it to work, so thanks to everyone haha. resolved.
  7. Not sure I understand what you mean... IniReadSectionNames() returns an array, according to the helpfile, so $NoItems is the array, so $NoItems[0] should be the 0th term in the array, which is the number of section names, right? and the $NoItems[1] through $NoItems[n] are the actual names themselves... right?
  8. Yeah as martin said it still doesn't work cause it's the same issue. I have tried declaring it a GLobal variable and then putting it in the While loop, seems to work, except now when it is called in the function, I get an error that $NoItems[0] (which used to work fine) is a non-array variable, but it is an array variable, $NoItems = IniReadSectionNames($ini) returns the names in an array, with [0] the number of names in the file. Dbzfanatic, I like the idea of only refreshing if there are new items because now I have it set up to clear the listview before it writes the info, otherwise you get a crazy long list really fast, but when it clears and writes in a while loop it flashes, so once I get the function itself to work I will do something like that.
  9. I am sure there is an easy fix for this but I haven't been able to figure it out. I made a function that reads an ini file and then writes it to a listview, but the function is dependent on the number of sections in the ini file (so that it knows how many times to read). Since the function variables are determined when the program launches, you cannot refresh the listview without closing the program, which is undesirable at very least. I also cannot put the entire function into a While loop because when I do so it writes the infinitely, which also is undesirable. How do I change the variable in the function after the program is running? (and I would prefer this to be real time, no timer delays or anything for updating it) Func _ListViewWrite($listview) $NoItems = IniReadSectionNames($ini) If $NoItems[0] = 0 Then GUICtrlCreateListViewItem("no content", $listview) ElseIf $NoItems[0] <> 0 Then For $n = 1 To $NoItems[0] $writeevent = IniReadSectionNames($ini) $eventa = IniRead($ini, $writeevent[$n], "a", "") $eventb = IniRead($ini, $writeevent[$n], "b", "") $eventc = IniRead($ini, $writeevent[$n], "c", "") GuiCtrlCreateListViewItem($writeevent[$n] &"|" &$eventa & "|" &$eventb & "|" &$eventc, $listview) Next EndIf
  10. Whew. Ok, using your advice, I figured out how to do it a slightly different way but it works and it works how I originally wanted, only thing left is a small deal, $NoItems changes while the program is open according to user input, and I would prefer to use a function to write to the listview, but the $NoItems variable in the function is determined when the program launches, and so if it changes while the program is open, it wont change in the function, so when it is called to display the data, it shows no new data. how can I refresh $NoItems for the function as well? Func _ListViewWrite($listview) $NoItems = IniReadSectionNames($ini) If $NoItems[0] = 0 Then GUICtrlCreateListViewItem("no content", $listview) ElseIf $NoItems[0] <> 0 Then For $n = 1 To $NoItems[0] $writeevent = IniReadSectionNames($ini) $eventa = IniRead($ini, $writeevent[$n], "a", "") $eventb = IniRead($ini, $writeevent[$n], "b", "") $eventc = IniRead($ini, $writeevent[$n], "c", "") GuiCtrlCreateListViewItem($writeevent[$n] &"|" &$eventa & "|" &$eventb & "|" &$eventc, $listview) Next EndIf EDIT: Sorry, forgot to add the code. so you can see how the whole thing is fairly dependent on the number of sections in the ini
  11. Yeah, I saw, I'm having some trouble with it though. I need it to write the Name of the section in one column, then keyA in the next column, keyB in the next, etc, for every section. Any examples I missed on this? When I replaced the variables in your example with the ones from my code, if the ini had no data, it would create an infinitely long listview with nothing in it, and when there was data in it, it would not be displayed in the listview at all. Here's a segment of it: $listview = GuiCtrlCreateListView("Name|key1|key2", 10, 10, 100, 400) $NoItems = Number(IniReadSectionNames($ini)) If $NoItems = 0 Then GUICtrlCreateListViewItem("no content", 1) Else For $n = 0 To $NoItems - 1 GUICtrlCreateListViewItem(IniRead($ini, "listviewitems", $n, ""),$listview);and I formatted the information nicely so you could do this Next EndIf I tried adding an If statement to yours to deal with the no content issue, didnt work either, even when the ini was empty. I also replaced your IniRead with IniReadSectionNames because when I tried your way it wanted me to tell it which sections to read, which defeats the purpose...
  12. No, I already looked in that one. It would but I can't figure out how to recover the data from the ini once it's saved and display it. I think I am doing the exact opposite of that one
  13. I am working on a function that will take user input and save it in an ini file, that part is easy and already works, but at the same time that the program can be writing to the file, I want a listview or some way to view the information in the file. I have already been playing with IniReadSectionNames and such, but can't quite get it to work. I just need it to read ALL the data in a section (sometimes 5 or 6 keys in a section) and write that to a listview or something similar, and do this for all the sections in the file, and all displayed at once in the Listview. Ideas?
  14. So in this thread, I was trying to find a way to block special keys, etc for a screen lock, essentially. Everything we tried wouldn't work quite right. It came to me later that if I could just not recognize the keys at all, there would be no problem with blocking them. I located the keyboard drivers, and could do nothing with them. Below is what you get when you try to edit it in a text editor. I am sure it can be done, I just don't know how, any ideas? I just need the system to ignore all keys other than letters, numbers, space, and enter button. Ideally I would make it so that the script edits the driver when it runs, and then changes it back when the user has passed. The tricky part is editing it. There are 4 files on my comp under the driver details for the keyboard: C:\WINDOWS\system32\drivers\ PS2.sys, kbdclass.sys, i8042prt.sys, and arkbcfltr.sys I don't know which one to mess with, but they all look similar: CODEMZ ÿÿ ¸ @ X º ´ Í!¸LÍ!This program cannot be run in DOS mode. $ S]Å23ØÅ23ØÅ23ØÅ22Øë23Ø=nØÀ23Ø=lØÇ23Ø1^ØÄ23Ø1OØÄ23Ø1KØÄ23ØRichÅ23Ø PE L c#C à = ë< - J ú½ ? < D H À- - ¸ .text 8( ( h.rdata Å - - @ H.data / / @ ÈPAGE / / `INIT à 9 9 â.rsrc D D @ B.reloc | H H @ B ÿUìM3Ò;ʸ ÀVðt_W};útHG(;Ât:·0fþuþA#A`$ÑHÿ¨- ðë0Q2Òfþu ¸» Àð븣 Àëõ¸ ÀðQ2ÒAÿ°- _Æ^] ÌÌÌÌÌÌÿUìMÉUt%Òt!B(Àtf8ua a 2Òÿ°- 3ÀëQRèCÿÿÿ] ÌÌÌÌÌÿUìEVuöWt+Àt'x(ÿt f?uVÿ - þF#F`$Vÿwÿ¤- ëVPè÷þÿÿ_^] ÌÌÌÌÌÿUìMÉVu°t.I( Òt!ÿu Vÿuÿuÿuÿuÿ± ÿÒÀt> tÆ^] ÌÌÌÌÌÌÿUìj j ÿuÿ4- ¸ À] ÌÌÌÌÌÿUìSVu¶F%WPÿ8- E@(XËÿ- NX~\yÐËÿ- f 2ÒÎÇF Àÿ°- _^[] ÌÌÌÌÌÌÿUìSVW}_Ëÿ- 3öEÇ;Ït'q¨N83Òxÿ<- Àu FX@ 3öötÓUËÿ- _Æ^[] ÌÌÌÌÌÿUìQQSV5- 3ÛW]ø]ü¿à. jdÿÖÈáu¨tÉt j2ÿ- ëj`ÿÖÿEü9}ür×9}üsKj jdÿ- jdÿÖ¨u¨u j2ÿ- C;ßrç;ßs$j`ÿÖM3ÛjdÿÖ¨t j2ÿ- C;ßrë;ßrÇEøµ ÀEø_^[É ÌÌÌÌÌÿUìQQS- VW3ÿ}ø¾à. jdÿ- ¨t j2ÿÓG;þrë;þsO=- j`jdÿ×eü jdÿ- ¨tj2ÿÓÿEü9uürè9uüs"ÿuj`ÿ×3ÿjdÿ- ¨t j2ÿÓG;þrë;þrÇEøµ ÀEø_^[É ÌÌÌÌÌÿUìQQeø eü S- VW=- ¾à. jdÿרuj2ÿÓÿEü9uürì9uüs&j`ÿ×Meü jdÿרtj2ÿÓÿEü9uürì9uür EÇEøµ ÀÆ Eø_^[É ÌÌÌÌÌÿUìQQeø S- VW¾à. 3ÿjdÿÓÈáu¨tÉt j2ÿ- ëj`ÿÓG;þrÚ;þsDÿuj`ÿ- 3ÿjdÿÓ¨t j2ÿ- G;þrë;þsEÿPèÿÿÿÀu#}ÿþuÿEø}ør븵 Àë}ÿút¸ À}ø_^[r¸µ ÀÉ ÌÌÌÌÌÿUìWFPP~TWhÿ ÿuÿP- À|F`PFVhÜ ÿpÿ7j jÿL- _] ÌÌÌÌÌÿUìSWFpP~tWhÿ ÿuÿP- ØÛ|6FxPFVh¼ ÿpÿ7j jÿL- ØÛ}Sh¶' ëh0' è¥ ëSh& è YY_Ã[] ÌÌÌÌÌÌF`ÀtPÿX- f` NTÉtÿH- fT fP 3ÀÃÌÌÌÌÌÌFxÀt-WPÿX- øÿ} WhL) è8 YYfx Wh¾( è' YY_NtÉtÿH- ft fp hx( è Y3ÀÃÌÌÌÌÌÿUìVuèfÿÿÿFdÀtPÿX- fd FlÀtPÿ0- fl 3À^] ÌÌÌÌÌÿUìVuèXÿÿÿÀ} PhÞ) è¡ YYF|ÀtPÿX- f| Æ Àt Pÿ0- & 3À^] ÌÌÌÌÌÌÿUìì ¡/ 3ÅEüMEìþÿÿMSèþÿÿMW}ðþÿÿÆüþÿÿÿÆýþÿÿCÆþþÿÿAÆÿþÿÿ?Æ ÿÿÿ=Æÿÿÿ;Æÿÿÿ<ÆÿÿÿXÆÿÿÿdÆÿÿÿDÆÿÿÿBÆÿÿÿ@Æÿÿÿ>Æ ÿÿÿÆ ÿÿÿ)ÆÿÿÿYÆÿÿÿeÆ ÿÿÿ8Æÿÿÿ*ÆÿÿÿpÆÿÿÿÆÿÿÿÆÿÿÿÆÿÿÿZÆÿÿÿfÆÿÿÿqÆÿÿÿ,ÆÿÿÿÆÿÿÿÆÿÿÿÆÿÿÿÆÿÿ ÿ[ÆÿÿÿgÆÿÿÿ.Æÿÿÿ-Æÿÿÿ Æ ÿÿÿÆ!ÿÿÿÆ"ÿÿÿÆ#ÿÿÿ\Æ$ÿÿÿhÆ%ÿÿÿ9Æ&ÿÿÿ/Æ'ÿÿÿ!Æ(ÿÿÿÆ)ÿÿÿÆ*ÿÿÿÆ+ÿÿÿ]Æ,ÿÿÿiÆ-ÿÿÿ1Æ.ÿÿÿ0Æ/ÿÿÿ#Æ0ÿÿÿ"Æ1ÿÿÿÆ2ÿÿÿÆ3ÿÿÿ^Æ4ÿÿÿjÆ5ÿÿÿrÆ6ÿÿÿ2Æ7ÿÿÿ$Æ8ÿÿÿÆ9ÿÿÿÆ:ÿÿÿ Æ;ÿÿÿ_Æ<ÿÿÿkÆ=ÿÿÿ3Æ>ÿÿÿ%Æ?ÿÿÿÆ@ÿÿÿÆAÿÿÿÆBÿÿÿ ÆCÿÿÿ`ÆDÿÿÿlÆEÿÿÿ4ÆFÿÿÿ5ÆGÿÿÿ&ÆHÿÿÿ'ÆIÿÿÿÆJÿÿÿÆKÿÿÿaÆLÿÿÿmÆMÿÿÿsÆNÿÿÿ(ÆOÿÿÿtÆPÿÿÿÆQÿÿÿ ÆRÿÿÿbÆSÿÿÿnÆTÿÿÿ:ÆUÿÿÿ6ÆVÿÿÿÆWÿÿÿÆXÿÿÿuÆYÿÿÿ+ÆZÿÿÿcÆ[ÿÿÿvÆ\ÿÿÿUÆ]ÿÿÿVÆ^ÿÿÿwÆ_ÿÿÿxÆ`ÿÿÿyÆaÿÿÿzÆbÿÿÿÆcÿÿÿ{Ædÿÿÿ|ÆeÿÿÿOÆfÿÿÿ}ÆgÿÿÿKÆhÿÿÿGÆiÿÿÿ~ÆjÿÿÿÆkÿÿÿoÆlÿÿÿRÆmÿÿÿSÆ nÿÿÿPÆoÿÿÿLÆpÿÿÿMÆqÿÿÿHÆrÿÿÿÆsÿÿÿEÆtÿÿÿWÆuÿÿÿNÆvÿÿÿQÆwÿÿÿJÆxÿÿÿ7ÆyÿÿÿIÆzÿÿÿFÆ{ÿÿÿTÆ| ÿÿÿÆ}ÿÿÿÆ~ÿÿÿÆÿÿÿAÆETÆEÆEÆEÆEÆEÆEÆEÆEÆEÆEÆEÆEÆEÆEÆEÆEÆEÆE ÆEÆEÆEÆEÆEÆEÆEÆEÆEÆE ÆE¡ÆE¢ÆE£ÆE ¤ÆE¡¥ÆE¢¦ÆE£§ÆE¤¨ÆE¥©ÆE¦ªÆE§«ÆE¨¬ÆE©­ÆEª®ÆE« ¯ÆE¬°ÆE­±ÆE®²ÆE¯³ÆE°´ÆE±µÆE²¶ÆE³·ÆE´¸ÆEµ¹ÆE¶ºÆE·»ÆE¸¼ÆE¹½ÆEº¾ÆE»¿ÆE¼ÀÆE½ÁÆE¾ÂÆE¿ÃÆEÀÄÆEÁÅÆEÂÆÆEÃÇÆEÄ ÈÆEÅÉÆEÆÊÆEÇËÆEÈÌÆEÉÍÆEÊÎÆEËÏÆEÌÐÆEÍÑÆEÎÒÆEÏÓÆEÐÔÆEÑÕÆEÒÖÆEÓׯEÔØÆEÕÙÆEÖÚÆE×ÛÆEØÜÆEÙÝÆEÚÞÆEÛ߯EÜàÆEÝ áÆEÞâÆEßãÆEàäÆEáåÆEâæÆEãçÆEäè3Û;ÃÆEåéÆEæêÆEçëÆEèìÆEéíÆEêîÆEëïÆEìðÆEíñÆEîòÆEïóÆEðôÆEñõÆEòöÆEó÷ÆEôøÆEõ ùÆEöúÆE÷ûÆEøüÆEùýÆEúþÆEûÿôþÿÿûþÿÿúþÿÿô Vp(;óç f>Ý f9^¨ hé èl÷ÿÿ;ÃôþÿÿuzûþÿÿPèØöÿÿ;Ãôþÿÿt!ûþÿÿ¶ûþÿÿf¶üþÿÿf;ÃfFt_ëP½ûþÿÿàuÜúþÿÿPèöÿÿ;Ãôþÿÿtúþÿÿ8úþÿÿt¸¶úþÿÿf¶üþÿÿf àë²=µ ÀufÇFÿ F;ÃtPèÈ ;Ãt!Wÿµðþÿÿÿµèþÿÿÿµìþÿÿÿ¶ ÿÐôþÿÿ^MüôþÿÿÆ_3Í[èe É ÌÌÌÌÌÿUììEMeø SX(CEìE E;ÈVWÆEÿ ÆEþ +ÁjqH3ÒY÷ñ@EäöFtm{L udeô ÆE ·Cf9EôsL·UôC ·>f¶f;øu/C$ÀÆEtÿEøf¶Èf;ùuÀuÆEÿC(< tÆEþÿEô} tª} uÿEøÆÿMäu}ÿ u$ À ÿuÿuÿuÿ³ ÿÐél }øeä ÿò ÿ³ uøvjXëÇkÀÆÿEðv%kÿhPs2-Wj ÿ,- ÀEøuuøëEøø}ðEøMEE;EðslöAtR2Òeô fEôf;Cs>s ·Àf¶4f9qu&s$<0 ²t}ñ¥¥¥s$f¶uEfFÿEôÒt¸Òu}Eñ¥¥¥Á;Mr ÀtMäQÿuðÿuøÿ³ ÿÐEøH`9MðvPÿ0- eø EMø;MäwNö@t52Ò3ö·Kf;ñs${ ·Îf¶<f9xu{$<9 ²tÿEøFÒtÓÒuÿEøMø;MäwÀ;Erª+EjY÷ùM}þ- f{ " E0Eköeø ð;Euð HMèAü;Æ< ö! eô ÆE Eôf;C S ·Àf¶f9Qþç K(ÀÆEÕ }øsMèö¶Àtf àëf àMøfDK,ÿEø}ø¥ }ìOÿ- Ç9?EE} u$MìÁXº ÿ<- OEìÀx8HG}ìUOÿ- } uNWèððÿÿë4x t/xjYs,ó¥` 2ÒÈÇ@ ÿ°- ÿuìè½ðÿÿuðÀuÈeø jY3À{,ó«ÿEô} MèçþÿÿÁAü;EMè¹þÿÿ}ø ® uìNÿ- ~9?EE} uNXº ÿ<- OFx8HGUNÿ- } u`EøÀEVë6x t6MxÑÁés,ó¥Êáó¤` ÊH2ÒÈÿ°- ÿuìèèïÿÿÀuÁMÑÁé3À{,ó«Êáóª_^[É ÌÌÌÌÌÿUìMì$y! tA`HAÀP Vj3Ò^÷öÒ? IkÀUr(eø eð Á;ÈS^MÜEàuìÆEþ WQ+ÁUèjH3ÒY÷ñ@EäEèö@; eô ÆE fEôf;F Mè·N ·Àf¶f;Ñø N$f¶ùf;ׯEuÉuÉÆEþtÿEøN(ÀÈ }ðsMèöA¶Àtf àëf àMðfDN,ÿEð}ð Kÿ- {9?EýEÿ}ÿ uKXº ÿ<- OCx8HGUýKÿ- }ÿ uLSè\îÿÿë2x t-xjYÆ,ó¥` 2ÒÈÇ@ ÿ°- Sè+îÿÿuìÀuÊeð jY3À~,ó«ÿEô} Óþÿÿ} uÿEøEèÿMä¨þÿÿ}ð ± Kÿ- {9?EýE} uKXº ÿ<- OCx8HGUýKÿ- } ufEðÀSEèíÿÿë<x t7MxÑÁéÆ,ó¥Êáó¤` ÊH2ÒÈÿ°- SèUíÿÿuìÀuÀMÑÁé3À~,ó«Êáóª}þÜ 3À9Eø¬ MÜEÙ;Mà öAtW2Òeô fEôf;FsC~ ·Àf¶<f9yu+~$<8 ²t ;Ùt ñû¥¥¥uì~$f¶8fCÃÿEÿEôÒt³Òu;Ùt ûñ¥¥¥uìÃÿEEÁ;EøwÿÿÿEà;Øs-+ÃH3ÒjY÷ñûÈAkÉë EH}ÜÑÁé3Àó«ÊáóªEøMkÀA_[^3ÀÉ ÌÌÌÌÌÿUìSVW}ÿ» Àótv} uIWèìÿÿðöudãîË@]ÿuèíÿÿðöuKEPè^ìÿÿðöu 8]t7¾ À¶Pèñìÿÿë'¶PèæìÿÿðöuEPè+ìÿÿðöu E:tó_Æ^[] ÌÌÌÌÌÿUìQSVW±ÿ- 5- Eþ3Û¿à. jdÿÖÈáu¨tÉt j2ÿ- ëj`ÿÖC;ßrÚ;ßr¾µ Àë{j EÿPÆEÿ èÿÿÿðöufuöÿuuèZíÿÿëHèSíÿÿÀu?EEPèÅìÿÿÀu+}àuEEPè¯ìÿÿÀuf¶Ef àëf¶Efëf& jEÿPèþÿÿðMþÿ - _Æ^[É ÌÌÌÌÌÿUìS]VWCjY¿\. ð3Òó§u=C$·@hARLNPjÿ,- ÀuFlu¸ Àë>ÿs$FhPÿ$- ÿs$èEíÿÿë'jðY¿L. 3Àó§uuFlÀtPÿ0- fl 3À_^[] ÌÌÌÌÌÿUìS]VWCjY¿\. ð3Òó§uXC$·@hARLNPjÿ,- Àu u¸ ÀëZÿs$ Pÿ$- ÿs$è÷ìÿÿðö} VhD* èâ YYÆë+jðY¿L. 3Àó§uuÆ Àt Pÿ0- & 3À_^[] ÌÌÌÌÌÌÿUìESVWPjY¿ì- ò3Ûó§uM·H Ñâðú¢ áù f`"ýÿ·@"Áu³Ãu2Ûu¶ÓN\ÿ<- ÛÀFLëgjY¿<. ò3Àó§uuNTÿH- !^T!^PëCjY¿,. ò3Àó§uuèuìÿÿÀ|)FhPè®ëÿÿëjY¿. ò3Àó§uuèNìÿÿÀ|3À_^[] ÌÌÌÌÌÿUìUSVWBjY¿Ü- ð3Ûó§u8ZMÀAL3À_^[] jY¿<. ð3Òó§uuNtÿH- !^t!^pëÓjY¿,. ð3Òó§uBuèýëÿÿøÿ}WhT+ èD YYÇë¦ Pè6ëÿÿðö} Vhö* è! YYÆëjðY¿. 3Àó§mÿÿÿuè§ëÿÿðö[ÿÿÿVh* ëÇÌÌÌÌÌÿUìUÒStKEÀtDX(Ût=f;u7Vr`WFÜjøYó¥MÆ@ B`è$Ç@¤ H Æ@@Kÿ¨- _^ë Rÿuèåÿÿ[] ÌÌÌÌÌÌÿUìMÉUð Òè B(ÀÝ f8Ó Q`Vrþ þ tuþÃ? uTzs¾ Àa 2Òqÿ°- ëLR2° p2röt° röÇB t° ÇB þA#A`$ÑHÿ¨- ðÆ^ëJ¾ Àë¸ t¾C ÀëzxÿÿÿR2° r° p2ÇB ë¤QRèxäÿÿ] ÌÌÌÌÌÌÿUìEHdQP@h ÿph. jjÿL- ] ÌÌÌÌÌÿUìEVH|QP@h. ÿphü- jjÿL- ðö}Vh , èÿ Yë h´+ èò YÆ^] ÌÌÌÌÌÌÿUìEìSVu3Ò;òW ; X(;Ú j_f9;ö N`A- " U èò ètÇE Àé° C; x y¶ {uF¶ PSè Eé RREèPÿ- CX3À;ØtmMøQMèQjPPPPShÇ? ÿ|- ÀtFN M MH`é$UQyÐËÿ¨- = Eu(3ÀPPPPEèPÿx- Eøé|ÿÿÿÇE ÀëÇE ÀEf FéË ÇE Àé¿ C;­ x£ y uÙKÇE Müÿ- EF`HCH<- ~XO9N8º xÿÓ~$ t3ÒN8ÿÓÀtxÇE ÀUMüÿ- ë4[;Út&{u 9yufKFf~Vë)ÇE ÀëÇE À} t3Ò9Ut EVF2ÒÎÿ°- EëVPè³áÿÿ_^[É ÌÌÌÌÌÌÿUìÿuè+ýÿÿÿuèSýÿÿÀ|3À] ÌÌÌÌÌÿUììS]VW3ÿ;ß E;Çý p(;÷uï f>å K`ÁEü¶@jZ; © +Ç Hü H Hî WWEìPÿ- s`FÜjøYó¥uÆ@ C`è$MìÇ@è H Æ@àNÓÿ¨- øÿ u3ÀPPPPEìPÿx- {ÿ ~ FFéþ FVFÇF è|æÿÿVè´æÿÿøFÀEt$Pë` 2ÒÈÇ@ Àÿ°- ÿuè,âÿÿÀußþC#C`$NÓÿ¨- ÿvÿ`- ÿuÿ\- é¹ FVé WWEìPÿ- s`FÜjøYó¥uÆ@ C`è$MìÇ@è H Æ@àNÓÿ¨- øÿ u3ÀPPPPEìPÿx- {ÿ| FFÇF { |ÿuüVèïýÿÿø2ÒË{ÿ°- é FFF;ÇÇF Et#Pë!x2ÒÈÇ@ Àÿ°- ÿuè+áÿÿÀuàþC#C`$NÓÿ¨- éÊ è Ht-ètÁ$K`é VèåÿÿVèDåÿÿøFFÇF ë°WWEìPÿ- s`FÜjøYó¥uÆ@ C`è$MìÇ@è H Æ@àNÓÿ¨- øÿ u3ÀPPPPEìPÿx- {ÿýþÿÿ~éåýÿÿFÇF FC`$þC#NÓÿ¨- øÇë SÿuèYÞÿÿ_^[É ÌÌÌÌÌÿUìQMüj ÿ5 / ÿ5/ ÿuüh÷ ÿ- ÌÌÌÌÌÌ; / u ÷Á ÿÿuÃé¿ÿÿÿÌÌÌÌÌÌÿ%¬- QRRegisterARPolicyCustomNotification: Cannot open ARPolicy device object! IoGetDeviceObjectPointer returned 0x%x. Notification of SMART-OFF events will not be supported QRRegisterARPolicyCustomNotification: Successfully registered for custom PnP notification! Will be notified of all smart off events ÌQRRegisterARPolicyCustomNotification: Cannot register for custom PnP notification callback. IoRegisterPlugPlayNotification returned 0x%x. Notification of SMART-OFF events will not be supported QRUnRegisterARPolicyCustomNotification: Dereference QRPolicyFileObj. ÌQRUnRegisterARPolicyCustomNotification: Unregistered from custom PnP notification callback. IoUnregisterPlugPlayNotification returned 0x%x. ÌQRUnRegisterARPolicyCustomNotification: Cannot unregister from custom PnP notification callback. IoUnregisterPlugPlayNotification returned 0x%x. QREnvUnRegisterAlwaysReadyNotification: UnRegisterARPolicyCustomNotification failed! Status - 0x%x. ÌQRPlugPlayCallback: QRRegisterARPolicyCustomNotification failed! Status - 0x%x. ÌAREnvCustomARNotificationCallback: UnRegisterARPolicyCustomNotification failed! Status - 0x%x. QREnvCustomARNotificationCallback: RegisterARPolicyCustomNotification failed! Status - 0x%x. QREnvCustomARNotificationCallback: UnRegisterARPolicyCustomNotification failed! Status - 0x%x. QREnvRegisterAlwaysReadyNotification: Successfully registered for PnP notification! ÌQREnvRegisterAlwaysReadyNotification: Cannot register for PnP callback. IoRegisterPlugPlayNotification returned 0x%x. Notification of SMART-OFF events will not be supported ¼C ªC C zC fC RC ÊC º@ Æ@ Þ@ ö@ A A *A DA ZA tA A ¤A ÆA ¨@ îA B $B 6B NB hB B B ªB ÂB âB öB C &C 4C @ j@ `@ J@ :@ *@ âA @ c#C Y l. l. 8ø`}f%ÄO´å®ö¾¨_DUNäýÄeàÃ%ÂÿOI<EÐTâ*¿æþI·<³beã@:ËðFа `?@:ËðFа `?@:ËðFа `?@:ËðFа `?@:ËðFа `?RSDSÜÌ8gFQl}¿Ò e:\vicky_work\driver\ps2sysqrardy\objfre_wxp_x86_vh\i386\ps2.pdb ¿Dÿÿ@» ÿUììl¡/ 3ÅEüESXC V3ö;ÆWfst Pÿ0- s C$;Æt Pÿ0- s$C(;Æt Pÿ0- s(C@ètHtHtHhPs2-jjÿ,- ø;þ}Ø CHéjt&ItItIYt¾8 ë¾8 ë¾j8 ë¾R8 ë¾:8 YhPs2-j(ó¥5,- jÿÖÐÒUÌ6 feÜ j 3ÀYúfÇEÞ( ó«f!EÐ}ô««=(- EôEÔh.8 E¬PUàfÇEÒ ÿ×E¬PEÜPÿ$- ÿuØE¤Pÿ×h8 EPÿ×h7 EPÿ×hPs2-3ÿh EjÇE´ }¸ÇEÀ@ E¼}Ä}ÈÿÖ;ÇEð }ð3À¹ ó«hPs2-h jf«ÿÖøÿ}äY 3À¹Ã ó«ªeè E´Ph EèPÿ - À' !EìEìP¿ WÿuðEjPÿuèÿT- 9}ìö Àî EðHùß öÁÖ 3ÀÉv}ð3ÒtT ·{f;út@@;Árä;Á¬ MÐQj ÑèPÿ- À =- EÐPEÜPÿ×À} E¤PEÜPÿ×Àk !EìEìP¿ WÿuäEÜjPÿuèÿT- 9}ìC À; Eä@ø, j3ÒY÷ñÒ fC·À¿Ps2-WPRÿÖC ·CWPj ÿÖC$·CWP3ÿWÿÖS ;×C(¯ 9{$¦ ;Ç ·KúÑÁé3Àó«Êáóª·K{$ÑÁé3Àó«Êáóª·K{(ÑÁé3Àó«Êáóª3Éf9K uäÆ º Fÿ:¶Àr+Â{ 9:¶Àr+Â{$9F:¶Àr+Â{(9·CAÆ;Èr¿ë4;×f{t Rÿ0- { C$;Çt Pÿ0- {$C(;Çt Pÿ0- {(ÿuèÿ- ÿuäÿ0- ÿuðÿ0- ÿuÌÿ0- ÿuØÿ0- Mü_^3Í[è·òÿÿÉ ÌÌÌÌÌÿUìEVpF ÀW=0- tPÿ×f F$ÀtPÿ×f$ F(ÀtPÿ×f( ff _^] ÌÌÌÌÌÌÿUìQQEÀ¶ @À« @(À ·fùVWtfù f;É xðötAëpøëó` 2ÒÈÇ@ Àÿ°- VèïÑÿÿÀuáh²8 EøPÿ(- EøPÿd- ÿtGÀtPÿ`- ötVèÿÿÿÿS\- tÿwÿÓötÿvÿÓ[_^É ÌÌÌÌÌÌÿUìQQMɸ ÀtyWyÿtpMüÿSVÇEøþÿÿ3Û¾à. jdÿ- Èáu¨t!Ét j2ÿ- ëEøPj j ÿh- C;ÞrÌ;Þ^[r¸µ Àë}éuÇWhé ëj ÿuè[åÿÿ_É ÌÌÌÌÌÌÿUìEìS3Û;Ãu ÇEø Àë9VWx;û}ôu5ÇEøÀ À;ût h²8 EìPÿ(- EìPÿd- Wÿ\- _^Eø[É w(;óu ÇEø ÀëÂf>t ÇEø£ Àë³MQSSjShü Pÿt- ;ÃEøu9]=(- ]üux~ufhÒ8 EäPÿ×EüPEäPÿuÿp- ;ÃEøt]üé MüIEá HEü@,MA,Eü@ MA E@(XE@(Xë{ÇEø À]üëoFøtøtøtøt ÇEø Àëÿuÿuÿl- È;ËMüu ÇEøÀ Àë1IEá` HE`ÿÿÿEü@,MA,Eü@ MA 9]ütaE@(3ÉA9]fUPUüPFpXLXXuXH8^þÿÿhé Vèýÿÿ;ÃEøuVè6øÿÿéiþÿÿÿuüÿ`- ÿu5\- ÿÖh²8 EìPÿ×EìPÿd- ÿuôÿÖé6þÿÿ\ R e g i s t r y \ M a c h i n e \ S y s t e m \ C u r r e n t C o n t r o l S e t \ S e r v i c e s \ P s 2 \ P a r a m e t e r s M o d e l s . M a p p i n g s M o d e l . M a p p i n g _ 9 8 . M a p p i n g _ S E . M a p p i n g _ M E . M a p p i n g _ N T . M a p p i n g _ 2 K \ D o s D e v i c e s \ P s 2 \ D e v i c e \ K e y b o a r d C l a s s 0 ÿUììLESV5(- W3ÿ8hÄ= EìPÆEÿ ÿÖEìEÔEÌP» SEô}Ð}Ü}à= - PÇEÌ ÇEØ@ ÿ×Àueh2= EäPÆEÿÿÖEäE¼E´P3öSEøPÇE´ u¸ÇEÀ@ uÄuÈÿ×À=- u]ÿuøÇ ÿ×ëEÇ Øÿuôÿ×ë]3ö93u9=@- jjÿ×ÀtÇ ëVjÿ×ÀtE@3Éf9pÁÁÆEÿEÿ_^[É ÌÌÌÌÌÿUììDV5(- Whv> EìPÆEÿ ÿÖEìEÄE¼P3ÿh EôPÇE¼ }ÀÇEÈ@ }Ì}Ðÿ - À ShPs2-j8jÿ,- Ø;ßtrjY3Àûó«hj> EäPÿÖeø EøPj8SjEäPÿuôÿT- }ø8u7Àu3{,u-CPEÔPÿÖh>> EÜPÿÖjEÜPEÔPÿD- ÀtÆEÿSÿ0- ÿuôÿ- [Eÿ_^ÉÃÌÌÌÌÌÌÿUììS]ÛWÇEü À¯ V5(- h? EìPÿÖEPj h j"EìPh Sÿt- ÀEüt hæ> EäPÿÖEìPEäPÿ- ÀEüG !EøEøPSèmýÿÿÀ! Eøøtøtøtøt ø Mq(fÇ MFFNÇF8 @ FPÿ- EHS8j¸ YúÇC44 ó«¸ C@EøøUôÇCp u5èèýÿÿFCÇ@l5 Ǥ # Ç L ~t-ÇCt ëzøu(j SÆFèùøÿÿÀEüt}ôjY3Àó«ëVÇCD ëMøt øtøu>ÆFCÇ@l5 Ǥ # Ç L ëEäPÇEü Àÿd- ÿuÿ\- ^Eü_[É ÌÌÌÌÌÿUì¡/ À¹@» t;Áu#- ¸/ Áè3%ÿÿ £/ uÁ£/ ÷У / ]éàýÿÿ\ R e g i s t r y \ M a c h i n e \ S y s t e m \ C u r r e n t C o n t r o l S e t \ S e r v i c e s \ i 8 0 4 2 p r t \ D e s c r i p t i o n \ R e g i s t r y \ M a c h i n e \ S y s t e m \ C u r r e n t C o n t r o l S e t \ S e r v i c e s \ i 8 0 4 2 p r t K e y b o a r d C l a s s F i l t e r G r o u p \ R e g i s t r y \ M a c h i n e \ S y s t e m \ C u r r e n t C o n t r o l S e t \ S e r v i c e s \ P s 2 \ D o s D e v i c e s \ P s 2 \ D e v i c e \ P s 2 ÌÌ|? DC - \? ØC - ¼C ªC C zC fC RC ÊC º@ Æ@ Þ@ ö@ A A *A DA ZA tA A ¤A ÆA ¨@ îA B $B 6B NB hB B B ªB ÂB âB öB C &C 4C @ j@ `@ J@ :@ *@ âA @ àIofCompleteRequest ßIofCallDriver 2PoCallDriver >PoStartNextPowerIrp ZwClose ¨RtlAppendUnicodeStringToString (RtlIntegerToUnicodeString MZwQueryValueKey -ZwOpenKey ÃRtlCopyUnicodeString RtlInitUnicodeString A ExAllocatePoolWithTag M ExFreePool SKeSetEvent IoReleaseCancelSpinLock InterlockedExchange IoIsWdmVersionAvailable èRtlEqualUnicodeString ,ObfDereferenceObject IoRegisterPlugPlayNotification kIoGetDeviceObjectPointer 0 DbgPrint ÄIoUnregisterPlugPlayNotification NIoDeleteDevice QIoDetachDevice PIoDeleteSymbolicLink ùKeDelayExecutionThread *IoAttachDeviceToDeviceStack (IoAttachDevice =IoCreateDevice jKeWaitForSingleObject -IoBuildDeviceIoControlRequest KeInitializeEvent KeInitializeSpinLock FIoCreateSymbolicLink cKeTickCount óKeBugCheckEx ntoskrnl.exe O KfReleaseSpinLock L KfAcquireSpinLock Y WRITE_PORT_UCHAR I KeStallExecutionProcessor S READ_PORT_UCHAR M KfLowerIrql N KfRaiseIrql HAL.dll 0 H `D 4 V S _ V E R S I O N _ I N F O ½ïþ ? ( ü S t r i n g F i l e I n f o Ø 0 0 0 0 0 4 b 0 C o m m e n t s P C o m p a n y N a m e H e w l e t t - P a c k a r d C o m p a n y 8 F i l e D e s c r i p t i o n P S 2 S Y S 0 F i l e V e r s i o n 1 . 0 . 2 . 0 0 I n t e r n a l N a m e P S 2 S Y S v ) L e g a l C o p y r i g h t C o p y r i g h t © H e w l e t t - P a c k a r d C o m p a n y 2 0 0 0 , L e g a l T r a d e m a r k s 8 O r i g i n a l F i l e n a m e P s 2 . s y s $ P r i v a t e B u i l d ` P r o d u c t N a m e H e w l e t t - P a c k a r d C o m p a n y P S 2 S Y S 4 P r o d u c t V e r s i o n 1 . 0 . 2 . 0 ( S p e c i a l B u i l d W 2 K D V a r F i l e I n f o $ T r a n s l a t i o n ° p Â4ö445q55ö56+6@6U6x66¸6Õ6þ67/7S777«7½7ã7 8(88¾8Ø8ê8V9g9v99°9¿9Ë9Ò9ß9::3:?:e:r::®:Ö:ë:;"; | 33 Clearly very useful to me.... Ideas? (I also realize that this is an extremely complicated way of going about this, but I plan on using a similar technique on some projects in the future, so any starters on this whole driver business would be great-why not start with the keyboard?)
  15. I tried the new timer, still didnt work. Ill include the whole massive thing at the end, just to see if anyone knows why. im starting to lose hope haha However, I had an idea to block the special keys. does anyone know how to edit the driver for the keyboard? I found the drivers, but I cant open them and see anything worthwhile. there is a little bit that says it WONT open in DOS, but it is an old dos file, so I'm not quite sure how to do it. If I could just edit the driver file when the script starts and then change it back when it closes it'd work beautifully. I just need to figure out how to edit the file... CODE#include <GUIConstants.au3> #include <windowsconstants.au3> #include <editconstants.au3> #include <Audio.au3> #Include <Misc.au3> #Include <Timers.au3> RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\system","DisableTaskMgr","REG_DWORD",1) Global $pass = IniRead(@ProgramFilesDir & "\AutoIt3\Scripts\Lockout\pass.ini", "Password", "pass", "autoit") ConsoleWrite($pass & @CRLF) Global $restore = False, $passed = False $GUI = GUICreate("PC-Lock", @DesktopWidth, @DesktopHeight, 0, 0, BitOR($WS_POPUP, $WS_CLIPSIBLINGS), $WS_EX_TOPMOST) $Label1 = GUICtrlCreateLabel("Please enter the correct password before entering the PC", @desktopwidth/2 - 100, @desktopheight/2 - 92, 277, 17) $Label2 = GUICtrlCreateLabel("Password: ", @desktopwidth/2 - 100,@desktopheight/2 - 52, 56, 17) $password = GUICtrlCreateInput("", @desktopwidth/2 - 36, @desktopheight/2 - 52, 217, 21) $submit = GUICtrlCreateButton("Submit", 100 + @desktopwidth/2, @desktopheight/2 - 28, 73, 25, 0) $okbutton = GUICtrlCreateButton("OK", 100 + @desktopwidth/2, 76 + @desktopheight/2, 73, 25, 0) $Label3 = GUICtrlCreateLabel("Original: ", @desktopwidth/2 - 100, 20 + @desktopheight/2, 45, 17) $Label4 = GUICtrlCreateLabel("New: ", @desktopwidth/2 - 100, 52 + @desktopheight/2, 32, 17) $oldpw = GUICtrlCreateInput("",@desktopwidth/2 - 36, 20 + @desktopheight/2, 217, 21) $newpw = GUICtrlCreateInput("",@desktopwidth/2 - 36, 52 + @desktopheight/2, 217, 21) $setnewpw = GuiCtrlCreateButton("Set New Password", 100, 100, 73, 25) $startvol = _SoundGetMasterVolume() GUISetState(@SW_SHOW) GUIRegisterMsg($WM_COMMAND, "WM_COMMAND") _SoundSetMasterVolume(0) #cs AdlibEnable("Disable",50) Dim $time, $diff, $limit While 1 $diff = _Timer_Diff($time) ToolTip($diff) WEnd Func _Start() $time = _Timer_Init() EndFunc Func Disable() If _IsPressed("11") = 1 Then $limit += 1 _Start() BlockInput(1) MsgBox(48,"Error","That key is not allowed. Input has been blocked for " & $limit & " minutes.",10) AdlibDisable() AdlibEnable("Enable",50) EndIf EndFunc Func Enable() If $diff >= ($limit * 60000) Then BlockInput(0) Send("{CTRLDOWN}") Send("{CTRLUP}") $diff = 0 AdlibDisable() AdlibEnable("Disable",50) Endif EndFunc #ce While 1 $nMsg = GUIGetMsg() ;Select ; Case _IsPressed("11") = 1 ; $ctrlpress = True ; Case _IsPressed("11") = 0 ; $ctrlpress = False ;Case _IsPressed("12") = 1 ; $altpress = True ;Case _IsPressed("12") = 0 ; $altpress = False ;EndSelect ;If ($ctrlpress = True) Or ($altpress = True) Then ; BlockInput(1) ;ElseIf ($ctrlpress = False) And ($altpress = False) Then ; BlockInput(0) ;EndIf If WinExists("Task Manager", "Task Manager has been disabled by your administrator") Then WinKill("Task Manager", "Task Manager has been disabled by your administrator") EndIf Switch $nMsg Case $GUI_EVENT_CLOSE If $passed Then Exit Case $submit $entered = GUICtrlRead($password) If $pass == $entered Then RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\system","DisableTaskMgr","REG_DWORD",0) _SoundSetMasterVolume($startvol) Exit $passed = True Else MsgBox(0, "Fail", "Fail") EndIf Case $okbutton If $passed Then $old = GUICtrlRead($oldpw) $new = GUICtrlRead($newpw) If $old == $pass Then IniWrite(@ProgramFilesDir & "\pass.ini", "Password", "pass", $new) MsgBox(0, "Done!", "Now please re-open PC-Lock") Exit Else MsgBox(0, "Fail", "The original password does not match.") EndIf EndIf ;Case $setnewpw ;MsgBox("", "test", "test") ; GUICreate("Set New Password", 200, 200, @desktopwidth/2 -100, @desktopheight/2 -100, $WS_CHILD, $WS_EX_TOPMOST) ; EndSwitch If $restore Then $restore = False WinActivate($GUI) WinSetOnTop($GUI, "", 1) EndIf WEnd Func WM_COMMAND($hWnd, $Msg, $wParam, $lParam) Local $iCode = BitShift($wParam, 16) Switch $lParam Case GUICtrlGetHandle($password) Switch $iCode Case $EN_KILLFOCUS Local $attempt = GUICtrlRead($password) If Not $passed And $attempt <> $pass Then $restore = True GUICtrlSetState($password, $GUI_FOCUS) EndIf EndSwitch EndSwitch Return $GUI_RUNDEFMSG EndFunc ;==>WM_COMMAND sorry, this is about the messiest code ive ever done, but i left it unedited to see if maybe anything's conflicting, etc.
×
×
  • Create New...