
CWorks
Active Members-
Posts
122 -
Joined
-
Last visited
Everything posted by CWorks
-
search as you type but with a twist
CWorks replied to bimini07's topic in AutoIt GUI Help and Support
hmm.. no problems with it here some stuff to play with vncviewer should now minimize but not if Msgbox is used, for some reason it scews it up $c_file = GUICtrlRead($list) $title = StringTrimRight($c_file, 4) $c_file = FileGetShortName(@ScriptDir & "\" & $c_file) $vncviewer = RegRead("HKEY_CLASSES_ROOT\Applications\vncviewer.exe\shell\open\command", "") $vncviewer = FileGetShortName($vncviewer) Run ($vncviewer & " -config " & $c_file, "", @SW_MINIMIZE) ;Msgbox(0, "VNC Config File", "The selected vnc config file is: " & $c_file, 0) Msgbox(0, "VNC Config File", "The selected vnc config file is: " & $c_file, 3) ; well it works if closed quickly ;MsgBox(0, "Full title read was:", $title) WinWait($title) WinSetState($title, "", @SW_MINIMIZE)oÝ÷ Ù·ßÛë-i÷°r§ë"ƬzÇ«½êâ²z-®éçxºÚ"µÍ ÌÍØ×Ù[HHÕRPÝXY ÌÍÛÝ B ÌÍÝ]HHÝ[Õ[TYÚ ÌÍØ×Ù[K B ÌÍØ×Ù[HH[QÙ]ÚÜ[YJØÜ [È ][ÝÉÌLÉ][ÝÈ [È ÌÍØ×Ù[JBH ÌÍÝÝY]ÙHYÔXY ][ÝÒÑVWÐÓTÔÑT×ÔÓÕ ÌLÐXØ][ÛÉÌLÝÝY]Ù^IÌLÜÚ[ ÌLÛÜ[ÌLØÛÛ[X[ ][ÝË ][ÝÉ][ÝÊBH ÌÍÝÝY]ÙH[QÙ]ÚÜ[YJ ÌÍÝÝY]ÙBH[ ÌÍÝÝY]Ù [È ][ÝÈXÛÛYÈ ][ÝÈ [È ÌÍØ×Ù[K ][ÝÉ][ÝËÕ×ÓRSSRVJBÙØÞ ][ÝÕÈÛÛYÈ[I][ÝË ][ÝÕHÙ[XÝYÈÛÛYÈ[HÎ ][ÝÈ [È ÌÍØ×Ù[KÊBH ÌÍÝ]HHÚ[Ù]]J ÌÍÝ]K ][ÝÉ][ÝÊNÈÙ][]H[YBHÚ[ØZ]XÝ]J ÌÍÝ]K ][ÝÉ][ÝË JNÈÝÜÈØZ][È[ HÙXÛÛ[ØÙHÙÝ[[ÈÈÜÛÛ]ÈÙHÚ[Ù]Ý]J ÌÍÝ]K ][ÝÉ][ÝËÕ×ÓRSSRVJBHÙÐÞ ][ÝÑ[]HXYØÎ][ÝË ÌÍÝ]H J -
search as you type but with a twist
CWorks replied to bimini07's topic in AutoIt GUI Help and Support
Ok no problem with spaces anymore for config file or viewer $c_file = GUICtrlRead($list) $c_file = FileGetShortName(@ScriptDir & "\" & $c_file) $vncviewer = RegRead("HKEY_CLASSES_ROOT\Applications\vncviewer.exe\shell\open\command", "") $vncviewer = FileGetShortName($vncviewer) Run ($vncviewer & " -config " & $c_file, "", @SW_MINIMIZE) Msgbox(0, "VNC Config File", "The selected vnc config file is: " & $c_file, 0)oÝ÷ Ù8^¾w/쯧vj}ýµ·¦x¦7²)ÜzØ^Â)Ý£b¶W¢±¶¬yÚ'¶¢wââéÚæ®¶sdWFôDuT6WE7FFR5uôÔäÔ¤RÂgV÷C·&æFöÕö&6VEööåö6öæfuöfÆUöæÖR oh yea the reg path does not work on my end I'll need to search reg for vncviewer.exe and find a common place that works for all vnc flavors nope UltraVNC uses VncViewer.Config as the type of file and thats all that I found HKEY_LOCAL_MACHINE\SOFTWARE\Classes\VncViewer.Config\shell\open\command -
search as you type but with a twist
CWorks replied to bimini07's topic in AutoIt GUI Help and Support
just looking at the code I noticed you're not giving the path to the .vnc file and I think that's the whole problem just trying the run command from your script failed for me unless I added the path also edit: I just tried this and it's still not working but I have some time to kill so i'll keep at it and try and figure it out Msgbox shows the full path to file, so don't know why it don't work ultravnc cmd line uses / instead of - but otherwise the same Run ("E:\Internet\UltraVNC\vncviewer.exe /config " & @ScriptDir & "\" & $n, "", @SW_MINIMIZE) Msgbox(0, "VNC Config File", "The selected vnc config file is: " & @ScriptDir & "\" & $n, 0)oÝ÷ Ù·Ý¿nØb±Ú³ +'íêÞj·§¢ÊZqë"Ø^¥«a¡ûazùÜ~)^±©Ýº[k¾wj{¬yÊ'~((¯÷(ø ÖÞv+wý¼R¢wmºÇºW§¢è!¶!××¶èºx¯z»¼¡jø§+e¢¢»çrøÁêÞÅè§¶«z¬¶¼ºÚ"µÍH ÌÍÝÝY]ÙHYÔXY ][ÝÒÑVWÓÐÐSÓPPÒSIÌLÔÓÑÐTIÌLÓZXÜÜÛÙ ÌLÕÚ[ÝÜÉÌLÐÝ[Ú[ÛÌLÐ]ÉÌLÝÝY]Ù^I][ÝË ][ÝÉ][ÝÊB[ ÌÍÝÝY]Ù [È ][ÝÈXÛÛYÈ ][ÝÈ [ÈØÜ [È ][ÝÉÌLÉ][ÝÈ [È ÌÍÛ ][ÝÉ][ÝËÕ×ÓRSSRVJ -
run this reg file and notepad will run at next reboot halting the shell until notepad is closed Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce] "notepad"="notepad.exe"
-
Disable Edit Without Turning Text Gray
CWorks replied to Sunaj's topic in AutoIt GUI Help and Support
hows this #include <guiconstants.au3> Opt("GUIOnEventMode", 1) $Main = GUICreate('', 200, 130) GUISetOnEvent($GUI_EVENT_CLOSE, "close") GUICtrlCreateLabel(" App Label ",20 ,20 ,160 ,26, $SS_SUNKEN) GUICtrlSetFont (-1,14) GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor (-1, 0x316AC5) GUISetState() While 1 Sleep(500) WEnd Func close() Exit EndFunc -
I did and it works fine shimgvw.dll is in the PATH I only removed C:\WINDOWS\System32\ not the path to the picture obviously you didn't try it
-
you can remove the path so it runs even for those who are not sheep or lemmings run("rundll32.exe shimgvw.dll,ImageView_Fullscreen " & @scriptdir & "\output.jpg") ;Thanks to daslick no need to include the path if it's in the PATH
-
it comes from mpr.dll
-
emails are sent via Fake Mailer so a trace would lead back to them but they probably log your ip plus the outgoing email address
-
just have it extract to temp folder FileInstall("C:\Music\Sound1.mp3", @TempDir & "\Sound1.mp3") and then delete it when exiting the program FileDelete(@TempDir & "\Sound1.mp3")
-
I got a PM from "Ronald McDonald" and it's not frodo besides frodo's not the type to use an alias and neither am I except when the cops are involved
-
I have no clue who "Happy Gilmore" is but it's definitely not frodo frodo never even knew about skincrafter until i gave him the code plus a link here to see it in action we are both members at another forum under the same names
-
there you go $dll = DllOpen("WinLockDll.dll") ; Hide Start button DllCall($dll, "int", "StartButton_Show_Hide", "int", "Hide_StartButton") Sleep(1000) ; Show Start button DllCall($dll, "int", "StartButton_Show_Hide")
-
Windows "locked"-Screen - drawing?
CWorks replied to forever's topic in AutoIt General Help and Support
nothing will run in the winlogon desktop from default desktop well i shouldn't say nothing but a normal autoit script won't without switching to the winlogon desktop don't think it's possible though I think Kaspersky does it with WlxDisplayStatusMessage from gina.dll look for "GINA Export Functions" halfway down the page http://windowssdk.msdn.microsoft.com/en-us...y/ms717571.aspx winlogon is a protected desktop and i don't think it's possible to actually run something in it unless your program created it and then switched to it -
How to open a file with specified program
CWorks replied to xManh's topic in AutoIt General Help and Support
Run("notepad " & @ScriptDir & "\myfile.txt") -
I really doubt that a netcafe would let you run programs on their computers hey the net access doesn't bother me but then again i have net access here's some pics of the skinning for API Constants http://www.autoitscript.com/forum/index.php?showtopic=32691 guess i should have pointed you here instead
-
you don't even get the point he has no net access so he is unable to use it
-
man you people are as bad as the ubcd4win forum in ganging up on someone sorry frodo for forgetting to tell you about the net access thing hey i understand about not releasing the code for this but looking at the posts i see he never even asked for the code but he doesn't have net access and i completley forgot that encodeit needs it wow i've never seen frodo go off like this but i can understand the frustation taking a bus down to a netcafe to try something only to get home and it doesn't work would piss me off too
-
Windows "locked"-Screen - drawing?
CWorks replied to forever's topic in AutoIt General Help and Support
I think the dektop while locked is called "Winlogon" when you lock the screen or press "ctrl + alt + del" a new desktop is created called "Winlogon" and then it switches to the new desktop these are the 3 desktops that i know of Normal desktop "Default" desktop Winlogon runs on the "Winlogon" desktop (I think this desktop is used for the 2 above + logon) screen saver runs on the "Screen-saver" desktop try searching for this in google access winlogon desktop msdn link on the subject http://windowssdk.msdn.microsoft.com/en-us...y/ms719125.aspx -
yeah it's not a while loop either after taking anther look i'm just use to doing it like this smal snip While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Or $msg = $Cancel ExitLoop Case $msg = $add _GUICtrlComboResetContent($DSCombo) _GUICtrlComboAddString($DSCombo,"scrnsave.scr") CDSOURCE() ;_GUICtrlComboSetCurSel($DSCombo,$default) $ret = _GUICtrlListGetSelItemsText ($listbox) If (Not IsArray($ret)) Then ;;; ;MsgBox(16, "Error", "Unknown error from _GUICtrlListGetSelItemsText") Else For $i = 1 To $ret[0] _GUICtrlComboAddString($DSCombo,$ret[$i]) Next EndIf Case $msg = $UsePass If GUICtrlRead($UsePass) = $GUI_CHECKED Then GUICtrlSetState($RC, $GUI_ENABLE) GUICtrlSetState($MD, $GUI_ENABLE) GUICtrlSetState($SHA, $GUI_ENABLE) GUICtrlSetState($Passinput, $GUI_ENABLE) Else GUICtrlSetState($RC, $GUI_DISABLE) GUICtrlSetState($RC, $GUI_CHECKED) GUICtrlSetState($MD, $GUI_DISABLE) GUICtrlSetState($SHA, $GUI_DISABLE) GUICtrlSetState($Passinput, $GUI_DISABLE) EndIf
-
don't put your while loop inside a function
-
Windows "locked"-Screen - drawing?
CWorks replied to forever's topic in AutoIt General Help and Support
what happens when you lock the machine is it creates a new desktop and as far as i know autoit can't do it alone without the some dll calls i've been looking for a way to create a new desktop with autoit I can do it in C++ with a bunch of sample code floating around the net all i can remeber is something about injecting something into something blah blah blah well it's of no help but at least you know what to search for -
i've had problems like this before but not with autoit turned out it was a weak solder joint on a chip on a mem stick got out the soldering iron and no more errors it could be you just need to reset the mem sticks this only happened to me while using a certain program I guess it always wrote to the same spot in memory not really sure if thats your problem but you should get memtest just to rule it out
-
message box shows your ip post #99