BrewManNH Posted February 24, 2012 Share Posted February 24, 2012 If you leave out the position parameters (1200, 600) does it work? If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
iNvokeMePlz Posted February 24, 2012 Author Share Posted February 24, 2012 Tried with x=0, y=0 .. still same .. a friend suggested SplashImageOn("HotKey", @ScriptDir & "DMPPause.jpg", 300, 600, @DesktopWidth - 300, @DesktopHeight - 600, 1) Thanks again and again Link to comment Share on other sites More sharing options...
BrewManNH Posted February 24, 2012 Share Posted February 24, 2012 Can you post the complete code you're using now? I'm thinking there's something in there that's not right that has nothing to do with the splashimage. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
iNvokeMePlz Posted February 24, 2012 Author Share Posted February 24, 2012 Here is the code expandcollapse popupGlobal $Paused HotKeySet("!p", "TogglePause") ;Alt + P HotKeySet("!s", "Terminate") ;Alt + S MsgBox(48, "Microsoft Office Learning", "لقد اخترت تعليم برنامج مايكروسوفت اوفيس 2010 .. سيقوم البرنامج ببدء التعليم الآن", 5) SplashImageOn("HotKey", @ScriptDir & "DMPPause.jpg", 300, 600, @DesktopWidth - 300, @DesktopHeight - 600, 1) MouseClick("Left", 26, 748, 1, 50) MouseClick("Left", 98, 658, 1,50) MouseClickDrag("left", 253, 379, 254, 531, 50) MouseClick("Left", 112, 481, 1,50) MouseClick("Left", 112, 521, 1,50) WinWaitActive("Document1 - Microsoft Word Starter") MsgBox(48, "مرحبًا بكم في برنامج الوورد", "مرحبًا بكم في أول تشغيل لبرنامج الوورد، سنقوم بالتعلم معُا دون لمس شيء :)", 5) WinWaitActive("Document1 - Microsoft Word Starter") Send("أهلاً بكم في أول برنامج تعليمي اوتوماتيكي سوف يبدأ البرنامج بالتعليم الآنس") Send("{ENTER}") Send("الآن سوف نتعلم كيفية فتح وحفظ واغلاق المستندات") MouseMove(30, 40, 50) ToolTip("من هذه القائمة يمكنك اختيار بين عدة خيارات، فتح، حفظ، اغلاق المستندات", 30, 40, "ToolTip") sleep(5000) Send("{ENTER}") Send("2- الآن سوف نتعلم كيفية التحكم بخصائص الخط من تغيير الحجم ، اللون ، العرض إلخ ") Sleep(2000) MouseMove(282, 120, 50) ToolTip("يمكنك التحكم في خصائص الخط من الحجم والعرض واللون و عدة خصائص اخرى من هذه النافذة", 282, 120, "ToolTip") sleep(5000) Send("{ENTER}") Send("3- والآن سوف نتعلم عن كيفية ضبط تباعد الفقرات وحجمها و التنصيص إلخ") MouseMove(550, 120, 50) ToolTip("يمكنك التحكم في الفقرة والتنصيص وأشياء أخرى من خلال التحكم من هذه النافذة", 550, 120, "ToolTip") Sleep(5000) Send("{ENTER}") Send("4- يمكنك التحكم بخصائص الخط كمجموعة معينة أنت تنشئها كلون خط و حجمه و عرضه ودمجه بخيار واحد من خلال الذهاب الى هنا") MouseMove(911, 120, 50) ToolTip("هنا يمكنك القيام بما سبق في خصائص الخط ودمجها و يوجد خصائص مجهزة مسبقًا ", 911, 120, "ToolTip") Sleep(5000) Send("{ENTER}") Send("دعونا ننتقل الى القائمة الثانية") MouseClick("left", 143, 35, 1, 50) Send("{ENTER}") Send("في هذه القائمة سأكتفي بشرح بسيط وعام نظراً لضيق الوقت والسرعة في الأداء") Send("{ENTER}") Send("في هذه القائمة هناك العديد من الخيارات كـ ادخال صورة او انشاء رابط تشعبي ينقلك الى صفحة عند الضغط عليه وانشاء ترويسة وخلفية للصفحة و إنشاء الجداول وغلاف للصفحة و إنشاء الأشكال و ترقيم الصفحات إلخ ") MouseMove(65, 125, 50) ToolTip("للتحكم في خصائص الصفحة من هنا", 65, 125, "ToolTip") Sleep(5000) MouseMove(160, 125, 50) ToolTip("من هنا يمكنك إنشاء جداول واشكال", 160, 125, "ToolTip") Sleep(5000) MouseMove(400, 125, 50) ToolTip("من هنا يمكنك ادراج رابط تشعبي والتحكم بالترويسة", 400, 125, "ToolTip") Sleep(5000) MouseMove(666, 125, 50) ToolTip("من هنا يمكنك ادراج خط مزين وبأشكال متعددة", 666, 125, "ToolTip") Sleep(5000) MouseMove(780, 125, 50) ToolTip("من هنا يمكنك اضافة بعض الرموز الموجودة مسبقًا في البرنامج", 780, 125, "ToolTip") Sleep(5000) Send("{ENTER}") Send("دعونا ننتقل الى القائمة التالية") MouseClick("left", 217, 35, 1, 50) MouseMove(60, 125, 50) ToolTip("يمكنك التعديل على السمات واضافة تأثيرات جميلة من هنا", 60, 125, "ToolTip") Sleep(5000) MouseMove(267, 125, 50) ToolTip("من هنا يمكنك التعديل على حجم الصفحة وتنسيق الكلمات", 267, 125, "ToolTip") Sleep(5000) MouseMove(515, 125, 50) ToolTip("من هنا يمكنك التعديل على خلفيه الصفحة من خلال اللون و الطبعة المائية", 515, 125, "ToolTip") Sleep(5000) MouseMove(730, 125, 50) ToolTip("من هنا يمكنك التعديل على التباعد بين الكلمات والاسطر", 730, 125, "ToolTip") Sleep(5000) MouseClick("left", 300, 35, 1, 50) Send("{ENTER}") Send("القائمة الأخيرة عبارة عن نموذج وطرق لارسال المستند بعد الانتهاء منه") Send("{ENTER}") Send("إلى هنا نقف في نهاية هذه السلسلة التعليمية البسيطة، راجي من الله التوفيق في هذا العمل وأرجو أن ينال إعجابكم والحمدلله رب العالمين") SplashOff() Func TogglePause() $Paused = Not $Paused While $Paused Sleep(100) ToolTip('Script is "Paused"', 0, 0) WEnd ToolTip("") EndFunc ;==>TogglePause Func Terminate() Exit EndFunc ;==>Terminate I tried SplashTextOn and it worked perfectly So that would be weird Link to comment Share on other sites More sharing options...
BrewManNH Posted February 24, 2012 Share Posted February 24, 2012 That script worked for me, I saw the image file in the lower right corner of my screen. I'm even using dual monitors and it showed on my main screen. So I'm lost as to why it's not working for you unless your image file isn't where your script says it is, or isn't named what your script says it is. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
iNvokeMePlz Posted February 24, 2012 Author Share Posted February 24, 2012 (edited) So, what if i change Dir to same as the script's:? let me try again Now .. EDIT: Tried .. just the same .. can i have ur code? the 1 worked with u .. i will just copy paste .. got no time here EDIT2: i used SplashTextOn for an replacement .. it worked fine .. thanks all for ur huge assistance Edited February 24, 2012 by iNvokeMePlz Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 24, 2012 Moderators Share Posted February 24, 2012 iNvokeMePlz, I have recently dealt with a thread where a jpg image did not display - it showed in image viewers but not in AutoIt. Try opening it in Paint or similar and resaving it in a dfferent format. Perhaps it will work then. 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...
JohnQSmith Posted February 24, 2012 Share Posted February 24, 2012 (edited) EDIT2: i used SplashTextOn for an replacement .. it worked fine .. thanks all for ur huge assistance I guess that means we can apply some of the source code to this thread. Send("إلى هنا نقف في نهاية هذه السلسلة التعليمية البسيطة، راجي من الله التوفيق في هذا العمل وأرجو أن ينال إعجابكم والحمدلله رب العالمين") Which Google translates to... Send ("Here we stand at the end of this series simple educational, Raji from God for success in this business and I hope that you like and receive Praise be to Allah Lord of the Worlds") Edited February 24, 2012 by JohnQSmith Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes". Link to comment Share on other sites More sharing options...
iNvokeMePlz Posted February 24, 2012 Author Share Posted February 24, 2012 @John, Didn't get ur help :S @M23, wait let me try .. because im using Personal Desktop RightNow.. i'll tell u when i finish Link to comment Share on other sites More sharing options...
willichan Posted February 24, 2012 Share Posted February 24, 2012 Also, make sure the path to the JPG file is correct. The path currently specifies that there is a folder called "DMP" in the same folder as your script, and that the file "Pause.jpg" is in that sub-folder. If this is not the actual case, you will need to modify the path to the image file. AutoIt does not give an error message for a non-existent image file. My UDFs: Barcode Libraries, Automate creation of any type of project folder, File Locking with Cooperative Semaphores, Inline binary files, Continue script after reboot, WinWaitMulti, Name Aggregator, Enigma, CornedBeef Hash Link to comment Share on other sites More sharing options...
iNvokeMePlz Posted February 24, 2012 Author Share Posted February 24, 2012 Nevermind, i Used SplashTextOn And im done with my work Mod's can close this .. Thanks Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 24, 2012 Moderators Share Posted February 24, 2012 iNvokeMePlz,We do not close threads unless we decide to do so. But you can add [sOLVED] to the title if you edit the first post and select the "Use Full Editor" option. Let us know how you get on in the competition. 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...
iNvokeMePlz Posted February 25, 2012 Author Share Posted February 25, 2012 FInally, im just back from the competition, they liked the idea a lot and they might buy it .. hopefully i will win too Thanks M23 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