mlloz Posted July 19, 2008 Share Posted July 19, 2008 hello there.. is it possible to shake the form? Link to comment Share on other sites More sharing options...
BrettF Posted July 19, 2008 Share Posted July 19, 2008 hello there..is it possible to shake the form?How do you mean? Like an MSN nudge? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
mlloz Posted July 19, 2008 Author Share Posted July 19, 2008 yes.. Link to comment Share on other sites More sharing options...
BrettF Posted July 19, 2008 Share Posted July 19, 2008 Well explain what you want, adding an example code goes a long way to getting help faster. expandcollapse popup#include <WinAPI.au3> #include <GUIConstantsEx.au3> $case = 1 $Form1 = GUICreate("Shake Me", 373, 264, 193, 115) $shake = GUICtrlCreateButton("Shake me baby, shake me!", 88, 80, 187, 105, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $shake _ShakeGUI($Form1) EndSwitch WEnd Func _ShakeGUI($form, $duration = 1000) _WinAPI_FlashWindow ($form) $timer = TimerInit() $win = WinGetPos($form) Do Switch $case Case 1 $x = $win[0] + 20 $y = $win[1] Case 2 $x = $win[0] + 20 $y = $win[1] + 20 Case 3 $x = $win[0] $y = $win[1] + 20 Case 4 $x = $win[0] $y = $win[1] EndSwitch WinMove($form, "", $x, $y) $case += 1 If $case = 5 Then $case = 1 Until TimerDiff($timer) >= $duration WinMove($form, "", $win[0], $win[1]) EndFunc ;==>_ShakeGUI Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
mlloz Posted July 19, 2008 Author Share Posted July 19, 2008 sorry, I'm bit confused.. thanks alot. muttley Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now