
bastel123
Members-
Posts
17 -
Joined
-
Last visited
About bastel123
- Birthday 08/13/1969
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
bastel123's Achievements

Seeker (1/7)
0
Reputation
-
Hi, it should working now with FB 0.17b. Sebastian Freebasic_au3plugin_sample.zip
-
Hi Uten, i compiled my code with FB 0.15 and FBIDE. I will look what's wrong. Sebastian
-
Hi, here my freebasic plugin code. I hope its working Sebastian plugin_src.zip
-
Hi, this dll exports only 2 functions : _WILExtender2@40 _WILExtenderQuery@12 Take a look to this site: http://techsupt.winbatch.com/webcgi/webbat...Description.txt There is the WIL extender sdk. I think its not possible to use the WIL extender dll with other applications. Sebastian
-
Hi, if you want to hibernate your system and wake it up at a specific time you can try this code : #include <date.au3> ;=============================================================================== ; ; Description: Sets a wakeup time to wake it up if the system / computer is hibernating or standby ; Parameter(s): $Hour - Hour Values : 0-23 ; $Minute - Minutes Values: 0-59 ; $Day - Days Values : 1-31 (optional) ; $Month - Month Values : 1-12 (optional) ; $Year - Year Values : > 0 (optional) ; ; Requirement(s): DllCall ; Return Value(s): On Success - 1 ; On Failure - 0 sets @ERROR = 1 and @EXTENDED (Windows API error code) ; ; Error code(s): [url=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/system_error_codes.asp]http://msdn.microsoft.com/library/default....error_codes.asp[/url] ; ; Author(s): Bastel123 aka Sebastian ; Note(s): - ; ;=============================================================================== func SetWakeUpTime($Hour,$Minute,$Day=@mday,$Month=@mon,$Year=@YEAR) $SYSTEMTIME = DllStructCreate("ushort;ushort;ushort;ushort;ushort;ushort;ushort;ushort") $lpSYSTEMTIME = DllStructGetPtr($SYSTEMTIME) $LOCALFILETIME=DllStructCreate("dword;dword") $lpLOCALFILETIME = DllStructGetPtr($LOCALFILETIME) $DueTime=DllStructCreate("dword;dword") $lpDueTime=DllStructGetPtr($DueTime) DllStructSetData($SYSTEMTIME, 1, $Year) DllStructSetData($SYSTEMTIME, 2, $Month) DllStructSetData($SYSTEMTIME, 3, _DateToDayOfWeek($Year,$Month,$Day)-1) DllStructSetData($SYSTEMTIME, 4, $Day) DllStructSetData($SYSTEMTIME, 5, $Hour) DllStructSetData($SYSTEMTIME, 6, $Minute) DllStructSetData($SYSTEMTIME, 7, 0) DllStructSetData($SYSTEMTIME, 8, 0) $result = DllCall("kernel32.dll", "long", "SystemTimeToFileTime", "ptr", $lpSystemTime, "ptr", $lpLocalFileTime) If $result[0] = 0 Then Local $lastError = DllCall("kernel32.dll", "int", "GetLastError") SetExtended($lastError[0]) SetError(1) Return 0 EndIf $result = DllCall("kernel32.dll", "long", "LocalFileTimeToFileTime", "ptr", $lpLocalFileTime, "ptr", $lpLocalFileTime) If $result[0] = 0 Then Local $lastError = DllCall("kernel32.dll", "int", "GetLastError") SetExtended($lastError[0]) SetError(1) Return 0 EndIf $result = DllCall("kernel32.dll", "long", "CreateWaitableTimer", "long", 0, "long", True, "str", "") If $result[0] = 0 Then Local $lastError = DllCall("kernel32.dll", "int", "GetLastError") SetExtended($lastError[0]) SetError(1) Return 0 EndIf DllCall("kernel32.dll", "none", "CancelWaitableTimer", "long",$result[0]) DllStructSetData($DueTime, 1, DllStructGetData($LocalFILETIME, 1)) DllStructSetData($DueTime, 2, DllStructGetData($LocalFILETIME, 2)) $result = DllCall("kernel32.dll", "long", "SetWaitableTimer", "long",$result[0], "ptr", $lpDueTime, "long", 1000, "long", 0, "long", 0, "long", true) If $result[0] = 0 Then Local $lastError = DllCall("kernel32.dll", "int", "GetLastError") SetExtended($lastError[0]) SetError(1) Return 0 EndIf return 1 EndFunc ;=============================================================================== ; ; Description: Set the computer in Hibernate or Standby Status ; Parameter(s): $Mode - Suspend mode : True=Hibernate, False=Suspend ; $Force - Force-Mode : True=the system suspends operation immediately ; False=FALSE, the system broadcasts a PBT_APMQUERYSUSPEND event to each application to request permission to suspend operation ; ; Requirement(s): DllCall ; ; Author(s): Bastel123 aka Sebastian ; Note(s): If the system does not support hibernate use the standby mode - ; ;=============================================================================== Func SetSuspend($mode=true,$force=true) $result = DllCall("PowrProf.dll", "long", "SetSuspendState", "long",$mode, "long",$force, "long", false) EndFunc SetWakeUpTime(@HOUR,@min+2); wakeup the system in 2 minutes from now SetSuspend(); go to hibernate mode I hope it works on your computer's Sebastian
-
Internet Explorer Automation UDF library
bastel123 replied to DaleHohm's topic in AutoIt Example Scripts
Hi Dale, should your sample really work? #include <IE.au3> $oIE = _IECreate() _IENavigate($oIE, "http://www.google.com") _IEQuit($oIE) ; Close the browser and remove the object refernce to it ---> $oIE=0 If _IEGetProperty($oIE, "visible") Then ; here i get an error because the requested action with this object has failed ---> $oIE=0 ---> the object does not exist ConsoleWrite("Browser Is Active" & @CR) Else ConsoleWrite("Browser Is Gone" & @CR) EndIf Exit Sebastian -
Hi, with "Virtual DAEMON Manager V3.47" this should work: DllCall("user32.dll", "int", "PostMessage", _ "hwnd", WinGetHandle( "Virtual DAEMON Manager V3.47" ), _ "int", 32868, _ "int", 1000, _ "int", 517) send("{up 5}{right 2}{down}{enter}") winwait("Set device parameters - Device","") ControlSend("Set device parameters - Device", "", 1032, "v") ControlClick("Set device parameters - Device", "", "Button5") Sebastian
-
you can change the boot.ini the /SAFEMODE option your friend
-
Disable startbutten and clock
bastel123 replied to Wb-FreeKill's topic in AutoIt General Help and Support
oops.... on my system it works. What OS do you use? -
Disable startbutten and clock
bastel123 replied to Wb-FreeKill's topic in AutoIt General Help and Support
Try this: Opt("WinTitleMatchMode", 4) Opt("WinDetectHiddenText", 1) Controlhide ( "classname=Shell_TrayWnd", "Start", "TrayClockWClass1") Controlhide ( "classname=Shell_TrayWnd", "Start", "Button1") sleep(5000) Controlshow ( "classname=Shell_TrayWnd", "Start", "TrayClockWClass1") Controlshow ( "classname=Shell_TrayWnd", "Start", "Button1") Sebastian -
ControlDisable and ControlHide Not Working
bastel123 replied to a topic in AutoIt General Help and Support
run("C:\AutoItScript Tutorials\WinZip 9.0 SR1\winzip90.exe",3); The ButtonText is "&Setup" and not "&setup" ; ########### WinWaitActive("WinZip® 9.0 SR-1 Setup","&Setup") ; ########### ControlDisable("WinZip® 9.0 SR-1 Setup","Cancel",2) send("!s") Sebastian -
You are right, but it's not possible without patching the msgina.dll. Changing the registry is much easier and he don't need a reboot.
-
Hi, if you use NT,W2K or XP it's not possible, because these OS's generate a non mascable interrupt (NMI) to trigger CTRL+ALT+DEL. Sebastian
-
Thank you
-
Hi, if i compile a script several times without any modification, i get always a different exe-size. Is this normal? Sebastian